Cleanup: dead grammar rules (pattern, inline_function, function_block, equal, symbols) #23
Clément DELALANDE opened 2 days ago

Summary

grammar.js contains several rules that are defined but never used:

RuleStatus
patternEmpty body () => "" — never referenced
inline_functionCommented out in definition, still declared
function_blockDeclared, never referenced
function_inline_blockDeclared, never referenced
equalDeclared, never referenced
symbolsDeclared, never referenced

These bloat the grammar, confuse readers, and generate phantom node types in src/node-types.json.

Expected

Delete each unused rule after confirming it is unreferenced (grep grammar.js for each name). Keep arrow (used by function) and _operation (used by return).

Files

  • grammar.js
1/1
Type
Improvement
Priority
Minor
Assignees
Not assigned
Issue Votes (0)
Watchers (1)
Reference
gate/tree-sitter-gate#23
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover