Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(reporter func(IdentifierInfo) error, options Options) *extractor
New creates a new identiifer extractor.
Types ¶
type IdentifierInfo ¶
type IdentifierInfo struct {
Identifier string // Just the identifier.
Symbol string // Name as seen by linker.
FQName string // Fully qualified name in C++.
Linkage string // Linkage string (can be stuff like 'extern "C"' or "static").
Tag string // Tag (`struct`, `union`, `var` etc.)
File string // File where the identifier is declared.
Line uint // Line in the file.
Start uint // Start byte position in the file.
End uint // End byte position in the file.
FunctionArgs []string // List of function arguments by name.
}
type Options ¶
type Options struct {
// DumpTree prints the tree as it is parsed, but only for BoringSSL code.
DumpTree bool
// DumpFullTree prints the tree as it is parsed, even for system headers.
DumpFullTree bool
// KeepGoing does not bail out on parse errors.
KeepGoing bool
// Language is the langauge to parse the AST as.
Language string
}
Options are the options for tree walking.
Click to show internal directories.
Click to hide internal directories.