Skip to content

Conversation

lihebi
Copy link
Collaborator

@lihebi lihebi commented May 5, 2023

Introduced in #268, where the node.children is replaced with node.namedChildren but forgets to update the receiving variable list.

@@ -694,11 +694,11 @@ function compileExpression(node: Parser.SyntaxNode, st) {
     case "await":
       return compileExpression(node.firstNamedChild!, st);
     ...
     case "binary_operator":
     case "boolean_operator": {
-      let [left, , right] = node.namedChildren.filter(notComment);
+      let [left, , right] = node.children;
       compileExpression(left, st);
       compileExpression(right, st);

Now, both a() and b() can be recognized.

Screenshot from 2023-05-05 12-02-36

@lihebi lihebi merged commit e6130eb into codepod-io:main May 5, 2023
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

Successfully merging this pull request may close these issues.

1 participant