| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6fbf0ba commit c13969e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1378,16 +1378,8 @@ ImportAssertions* Parser::ParseImportAssertClause() { | |||
| 1378 | 1378 | Expect(Token::LBRACE); | |
| 1379 | 1379 | ||
| 1380 | 1380 | while (peek() != Token::RBRACE) { | |
| 1381 | - const AstRawString* attribute_key = nullptr; | ||
| 1382 | - if (Check(Token::STRING) || Check(Token::SMI)) { | ||
| 1383 | - attribute_key = GetSymbol(); | ||
| 1384 | - } else if (Check(Token::NUMBER)) { | ||
| 1385 | - attribute_key = GetNumberAsSymbol(); | ||
| 1386 | - } else if (Check(Token::BIGINT)) { | ||
| 1387 | - attribute_key = GetBigIntAsSymbol(); | ||
| 1388 | - } else { | ||
| 1389 | - attribute_key = ParsePropertyName(); | ||
| 1390 | - } | ||
| 1381 | + const AstRawString* attribute_key = | ||
| 1382 | + Check(Token::STRING) ? GetSymbol() : ParsePropertyName(); | ||
| 1391 | 1383 | ||
| 1392 | 1384 | Scanner::Location location = scanner()->location(); | |
| 1393 | 1385 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments