mirror of
https://github.com/DeusData/codebase-memory-mcp.git
synced 2026-11-04 08:13:37 +08:00
22 lines
614 B
Go
22 lines
614 B
Go
package lang
|
|
|
|
func init() {
|
|
Register(&LanguageSpec{
|
|
Language: Java,
|
|
FileExtensions: []string{".java"},
|
|
FunctionNodeTypes: []string{"method_declaration", "constructor_declaration"},
|
|
ClassNodeTypes: []string{
|
|
"class_declaration",
|
|
"interface_declaration",
|
|
"enum_declaration",
|
|
"annotation_type_declaration",
|
|
"record_declaration",
|
|
},
|
|
FieldNodeTypes: []string{"field_declaration"},
|
|
ModuleNodeTypes: []string{"program"},
|
|
CallNodeTypes: []string{"method_invocation"},
|
|
ImportNodeTypes: []string{"import_declaration"},
|
|
ImportFromTypes: []string{"import_declaration"},
|
|
})
|
|
}
|