Documentation
¶
Overview ¶
Package cpp implements a tree-sitter-based parser for C++ source files. It reuses helper functions from the C parser for shared constructs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct {
Path string
Type string // "include" | "using"
LineNumber int
IsLocal bool
}
Dependency represents an #include or using directive.
type Entity ¶
type Entity struct {
Name string
Type string // "function" | "method" | "class" | "struct" | "enum" | "namespace" | "type"
Kind string
Signature string
StartLine int
EndLine int
Docs string
Parent string
}
Entity represents a named code element.
type ParseResult ¶
type ParseResult struct {
FilePath string
Entities []*Entity
Dependencies []*Dependency
}
ParseResult is the output of Parse.
Click to show internal directories.
Click to hide internal directories.