Skip to content

Commit 43e9d11

Browse files
committed
inline definition of importIdentifier
1 parent 76d4db2 commit 43e9d11

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

javascript/extractor/src/com/semmle/jcorn/ESNextParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ protected Statement parseImport(Position startLoc) {
420420
* Parses an import.meta expression, assuming that the initial "import" and "." has been consumed.
421421
*/
422422
private MetaProperty parseImportMeta(Position loc) {
423-
Identifier importIdentifier = new Identifier(new SourceLocation(loc), "import");
424423
Position propertyLoc = this.startLoc;
425424
Identifier property = this.parseIdent(true);
426425
if (!property.getName().equals("meta")) {
427426
this.unexpected(propertyLoc);
428427
}
429-
return this.finishNode(new MetaProperty(new SourceLocation(loc), importIdentifier, property));
428+
return this.finishNode(
429+
new MetaProperty(new SourceLocation(loc), new Identifier(new SourceLocation(loc), "import"), property));
430430
}
431431

432432
/**

0 commit comments

Comments
 (0)