Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // Identifiers is a list of all identifiers found in the program. // Except for function names. Identifiers []string // FunctionIdentifiers is a list of all function names found in the program. FunctionIdentifiers []string }
Metadata contains informations about a parsed program.
func ExtractMetadata ¶
func ExtractMetadata(expr *ast.Expression) Metadata
ExtractMetadata extracts metadata from an expression.
func (*Metadata) AddFunction ¶
func (*Metadata) AddIdentifier ¶
Click to show internal directories.
Click to hide internal directories.