Files
tkmind_go/crates/goose-mcp/src/developer/analyze/languages/java.rs
T
tlongwell-block 6970cd850c Add analyze tool to Developer extension (#4530)
Adds an analyze tool to the developer MCP extension that provides code structure analysis and symbol tracking capabilities across multiple programming languages.
2025-09-12 20:02:26 -04:00

18 lines
521 B
Rust

/// Tree-sitter query for extracting Java code elements
pub const ELEMENT_QUERY: &str = r#"
(method_declaration name: (identifier) @func)
(class_declaration name: (identifier) @class)
(import_declaration) @import
"#;
/// Tree-sitter query for extracting Java function calls
pub const CALL_QUERY: &str = r#"
; Method invocations
(method_invocation
name: (identifier) @method.call)
; Constructor calls
(object_creation_expression
type: (type_identifier) @constructor.call)
"#;