mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-03 08:03:38 +08:00
Pipeline quality: - 17 import parsers (ES modules, Java, Kotlin, Scala, C#, C, C++, PHP, Ruby, Rust, Lua, Elixir, Bash, Zig, Erlang, Haskell, OCaml) - Language-aware isClassDeclaration() for TS, Java, C#, Scala, Kotlin, PHP - Route test filtering (isTestNode + containsTestSegment) - Haskell/OCaml/Elixir callee extraction for apply/infix/application nodes - JSX component refs via extractJSXComponentRefs() - Typed + dynamic type inference split - Extraction test coverage (1679 lines) Snippet tool optimization for AI coding agents: - Replace "error" key with "status"/"message" in disambiguation responses - Add auto_resolve param (opt-in, picks best from <=2 candidates) - Add include_neighbors param (opt-in, returns caller/callee names) - Fix fuzzy fallback to extract last dot-segment from qualified names - Add NodeNeighborNames store method for neighbor name lookups
22 lines
530 B
Go
22 lines
530 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: SQL,
|
|
FileExtensions: []string{".sql"},
|
|
ModuleNodeTypes: []string{"program"},
|
|
FunctionNodeTypes: []string{
|
|
"create_function",
|
|
},
|
|
ClassNodeTypes: []string{},
|
|
FieldNodeTypes: []string{"column_definition"},
|
|
CallNodeTypes: []string{"function_call", "invocation"},
|
|
ImportNodeTypes: []string{},
|
|
VariableNodeTypes: []string{
|
|
"create_table",
|
|
"create_view",
|
|
},
|
|
BranchingNodeTypes: []string{"if_statement", "case_expression"},
|
|
})
|
|
}
|