idextractor

package
v0.0.0-...-2a7ca54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL