ast

package
v0.0.0-...-6320ad3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	ID       NodeID         `json:"id"`
	NodeType NodeType       `json:"node_type"`
	FileID   int32          `json:"file_id"`
	Name     string         `json:"name,omitempty"`
	Range    base.Range     `json:"range"`
	Version  int32          `json:"version,omitempty"`
	ScopeID  NodeID         `json:"scope_id,omitempty"`
	MetaData map[string]any `json:"metadata,omitempty"`
}

func NewNode

func NewNode(
	id NodeID, nodeType NodeType, fileID int32,
	name string, rng base.Range, version int32, scopeID NodeID,
) *Node

type NodeID

type NodeID int64
const (
	InvalidNodeID NodeID = 0
)

type NodeType

type NodeType int8
const (
	NodeTypeModuleScope  NodeType = 1
	NodeTypeFileScope    NodeType = 2
	NodeTypeBlock        NodeType = 3
	NodeTypeVariable     NodeType = 4
	NodeTypeExpression   NodeType = 5
	NodeTypeConditional  NodeType = 6
	NodeTypeFunction     NodeType = 7
	NodeTypeClass        NodeType = 8
	NodeTypeField        NodeType = 9
	NodeTypeFunctionCall NodeType = 10
	NodeTypeFileNumber   NodeType = 11
	NodeTypeLoop         NodeType = 12
	NodeTypeImport       NodeType = 13
)

Jump to

Keyboard shortcuts

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