-
Previous Value Current Value Bug: function bodies are not nested under the node
Bug: function bodies are not nested under the function node
-
| Type |
Bug
|
| Priority |
Major
|
| Assignees |
Not assigned
|
Issue Votes (0)
Summary
func name(...) -> Type: <body>parses the body as a sibling top-level statement, not as a child offunction. Verified onexamples/Plain.gate:The
returnnode is a sibling offunction, outside its span. Thefunctionrule stops at::Impact
functionchildren will see an empty body.tree-sitter queryfor locals will not associate definitions with their scope.Expected
functionshould own afunction_blockcontaining statements (assignments, expressions, control flow, nested returns). Body delimiters need to be defined — Gate appears to use:indentation blocks (GDScript style), so a newline+indent terminator is likely needed.Files
grammar.js—functionrule