Open kaisucode opened 3 years ago
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 functionApp
s, and I'm not sure that's the right way to do it.)
Code such as
foo.get(x).get(y)
is incorrectly represented as a single method in the editor.The parser treats the
foo.get(x).get
portion as a single method call, and onlyy
is registered as a parameter in this situation.