Skip to content

Commit

Permalink
Merge pull request c2nes#28 from sandeshc/master
Browse files Browse the repository at this point in the history
SuperMethodInvocation on empty args, misregarded as SuperMemberReference now fixed
  • Loading branch information
c2nes authored Jun 29, 2016
2 parents 6d3e65e + 7ee43f9 commit 43dde31
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 @@ -1999,11 +1999,11 @@ def parse_super_suffix(self):
else:
arguments = self.parse_arguments()

if identifier and arguments:
if identifier and arguments is not None:
return tree.SuperMethodInvocation(member=identifier,
arguments=arguments,
type_arguments=type_arguments)
elif arguments:
elif arguments is not None:
return tree.SuperConstructorInvocation(arguments=arguments)
else:
return tree.SuperMemberReference(member=identifier)
Expand Down

0 comments on commit 43dde31

Please sign in to comment.