Skip to main content

Module parser

Module parser 

Source

Structs§

CommentTag
A structured annotation extracted from a source comment (e.g. @todo, @deprecated).
EdgeDef
A directed edge as produced by a language parser or the resolver.
NodeDef
A node as produced by a language parser, before being written to the graph DB.
ParseResult
The output of parsing a single source file.
ParserRegistry
Registry that maps Language variants to their LanguageParser implementations.

Enums§

CommentKind
EdgeKind
The semantic relationship represented by a graph edge.
NodeKind
The semantic category of a graph node.

Traits§

LanguageParser
Trait implemented by every language-specific Tree-sitter parser.

Functions§

collect_doc_block_above
Walk back through item’s preceding siblings, collecting consecutive comments that pass is_doc. Attributes/annotations directly above the item (e.g. Rust #[derive], Java @Override, PHP #[Attr]) are skipped so the comment search can reach the actual doc block above them.
enclosing_node
Walk up node’s parents until one of kinds is found.
meta_set
Set key on node.metadata (treating it as a JSON object, replacing Null with {}).