Expand description
Tree-Sitter Parser for Code Graph Generation
This module provides tree-sitter based parsing for extracting code entities and their relationships from source files.
§Supported Languages
- Python (.py)
- JavaScript (.js, .mjs, .cjs)
- TypeScript (.ts, .tsx)
- Rust (.rs)
- Go (.go)
- C (.c, .h)
- C++ (.cpp, .hpp, .cc, .cxx)
- C# (.cs)
Structs§
- Code
Parser - A tree-sitter based code parser with query support.
- Containment
Context - Tracks containment context during graph generation.
- Containment
Entry - Entry in the containment stack.
- Extracted
Tag - A tag extracted from source code via tree-sitter query.
- Metadata
Extractor - Extracts metadata from AST nodes for a specific language.
- Query
Manager - Manages tree-sitter queries for extracting code entities.
- TagExtractor
- Extracts tags from source code using tree-sitter queries.
Enums§
- Manifest
Language - Manifest file languages for component extraction.
- Parser
Error - Errors that can occur during parsing.
- Supported
Language - Supported programming languages for parsing.
Functions§
- generate_
node_ id - Generate a hierarchical node ID for an entity.
- parse_
node_ id - Parse a node ID into its components.