Skip to content

Commit

Permalink
Use QualifiedIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimm committed Mar 1, 2021
1 parent 6512daa commit 7e75934
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javalang/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def parse_import_declaration(self):
self.accept(';')
break

return tree.Import(path=qualified_identifier,
return tree.Import(path=tree.QualifiedIdentifier(values=qualified_identifier),
static=static,
wildcard=import_all)

Expand Down Expand Up @@ -2018,7 +2018,7 @@ def parse_primary(self):
identifier_suffix.type = tree.ReferenceType(name=qualified_identifier.pop())

identifier_suffix._position = token.position
identifier_suffix.qualifier = qualified_identifier
identifier_suffix.qualifier = tree.QualifiedIdentifier(values=qualified_identifier)

return identifier_suffix

Expand Down

0 comments on commit 7e75934

Please sign in to comment.