ast

package
v0.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AstIndex

type AstIndex string

AstIndex represents a unique identifier for AST nodes.

type Comment

type Comment struct {
	Text string
}

Comment node.

type Node

type Node interface {
	Pos() Pos
	Index() string
}

Node is the file, line, and column number information that all AST nodes need to contain.

type Pos

type Pos struct {
	Filename  string `json:"filename"`
	Line      uint64 `json:"line"`
	Column    uint64 `json:"column"`
	EndLine   uint64 `json:"end_line"`
	EndColumn uint64 `json:"end_column"`
}

Pos denotes the struct tuple (filename, line, column, end_line, end_column).

Jump to

Keyboard shortcuts

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