-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Problem
Groovy method extraction returns 0 results because FunctionNodeTypes is configured with the wrong tree-sitter node type name.
Root Cause
The Groovy language spec uses function_definition but the tree-sitter-groovy grammar uses a different node type for method declarations. This means the pipeline never matches any Groovy methods.
Fix
- Run the AST dump test on a Groovy file to see actual node types:
go test ./internal/pipeline/ -run TestASTDump -v - Update
FunctionNodeTypesininternal/lang/groovy.goto match the actual tree-sitter node type - Verify with the benchmark repo (Spock: https://github.com/spockframework/spock)
Impact
Unlocks method extraction for all Groovy code. Currently scores 29% — fixing this should jump to 50%+.
References
- Benchmark report:
BENCHMARK_REPORT.md(Groovy section) - Language spec:
internal/lang/groovy.go
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers