package
Version:
v0.10.0-alpha.1
Opens a new window with list of versions in this module.
Published: Jul 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
AstIndex represents a unique identifier for AST nodes.
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 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).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.