Documentation
¶
Index ¶
- func Dump(node Node) string
- func Walk(node *Node, visitor Visitor)
- type ArrayNode
- type Base
- type BinaryNode
- type BoolNode
- type BuiltinNode
- type ClosureNode
- type ConditionalNode
- type ConstantNode
- type FloatNode
- type FunctionNode
- type IdentifierNode
- type IndexNode
- type IntegerNode
- type MapNode
- type MatchesNode
- type MethodNode
- type NilNode
- type Node
- type PairNode
- type PointerNode
- type PropertyNode
- type SliceNode
- type StringNode
- type UnaryNode
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base ¶ added in v1.5.0
type Base struct {
// contains filtered or unexported fields
}
func (*Base) SetLocation ¶ added in v1.5.0
type BuiltinNode ¶
type ClosureNode ¶
type ConstantNode ¶
type ConstantNode struct { Base Value interface{} }
type IdentifierNode ¶
type IntegerNode ¶
type Node ¶
type Node interface { Location() file.Location SetLocation(file.Location) Type() reflect.Type SetType(reflect.Type) }
Node represents items of abstract syntax tree.
type PointerNode ¶
type PointerNode struct {
Base
}
type PropertyNode ¶
type StringNode ¶
Click to show internal directories.
Click to hide internal directories.