mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-09 03:17:54 +00:00
fix(csharp): remove invalid simple_base_type from heritage queries
tree-sitter-c-sharp v0.21 does not have a simple_base_type node in base_list — identifiers appear directly under base_list. The invalid node type caused the entire CSHARP_QUERIES to fail at query compilation time (TSQueryErrorNodeType), which meant processFileGroup silently returned early and no C# symbols were extracted at all. Fixes #173
This commit is contained in:
parent
4de40e4011
commit
8ca25fe753
1 changed files with 2 additions and 2 deletions
|
|
@ -282,9 +282,9 @@ export const CSHARP_QUERIES = `
|
|||
|
||||
; Heritage
|
||||
(class_declaration name: (identifier) @heritage.class
|
||||
(base_list (simple_base_type (identifier) @heritage.extends))) @heritage
|
||||
(base_list (identifier) @heritage.extends)) @heritage
|
||||
(class_declaration name: (identifier) @heritage.class
|
||||
(base_list (simple_base_type (generic_name (identifier) @heritage.extends)))) @heritage
|
||||
(base_list (generic_name (identifier) @heritage.extends))) @heritage
|
||||
`;
|
||||
|
||||
// Rust queries - works with tree-sitter-rust
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue