metadata

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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 (m *Metadata) AddFunction(identifier string)

func (*Metadata) AddIdentifier

func (m *Metadata) AddIdentifier(identifier string)

Jump to

Keyboard shortcuts

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