Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when parsing something like Arrays.<Object> asList ( "a" , "b" ) #126

Open
ztw33 opened this issue Oct 26, 2022 · 0 comments
Open

Comments

@ztw33
Copy link

ztw33 commented Oct 26, 2022

When use javalang.parser.Parser to parse some statements like Arrays.<Object> asList ( "a" , "b" ), the node is printed as:

MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="a"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="b")], member=Arrays, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))])

While the qualifier of this MethodInvocation should be Arrays and the member should be asList.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant