Skip to content
New issue

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

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

Already on GitHub? # to your account

Chained methods display as one single method #14

Open
kaisucode opened this issue Feb 7, 2021 · 1 comment
Open

Chained methods display as one single method #14

kaisucode opened this issue Feb 7, 2021 · 1 comment

Comments

@kaisucode
Copy link
Collaborator

Code such as foo.get(x).get(y) is incorrectly represented as a single method in the editor.

Screen Shot 2021-02-07 at 2 23 28 PM

The parser treats the foo.get(x).get portion as a single method call, and only y is registered as a parameter in this situation.

@schanzer
Copy link
Member

schanzer commented Apr 9, 2021

It's doing the right thing, but with the wrong parse tree. This is an error in the parse-translator itself, since calling editor.getAst() shows that CMB is being handed an AST with one function application, whose func is foo.get(x).get.

(Related, but not the cause of the bug: I see that method calls are being treated as functionApps, and I'm not sure that's the right way to do it.)

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

No branches or pull requests

2 participants