Documentation ¶
Index ¶
- func Dump(node Node) string
- func Patch(node *Node, newNode Node)
- func Walk(node *Node, v Visitor)
- type ArrayNode
- type BinaryNode
- type BoolNode
- type BuiltinNode
- type CallNode
- type ChainNode
- type ClosureNode
- type ConditionalNode
- type ConstantNode
- type FloatNode
- type IdentifierNode
- type IntegerNode
- type MapNode
- type MemberNode
- type NilNode
- type Node
- type PairNode
- type PointerNode
- type SliceNode
- type StringNode
- type UnaryNode
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayNode ¶
type ArrayNode struct { Nodes []Node // contains filtered or unexported fields }
func (*ArrayNode) SetLocation ¶
type BinaryNode ¶
type BinaryNode struct { Regexp *regexp.Regexp Operator string Left Node Right Node // contains filtered or unexported fields }
func (*BinaryNode) SetLocation ¶
type BoolNode ¶
type BoolNode struct { Value bool // contains filtered or unexported fields }
func (*BoolNode) SetLocation ¶
type BuiltinNode ¶
func (*BuiltinNode) SetLocation ¶
type CallNode ¶ added in v1.10.0
type CallNode struct { Callee Node Arguments []Node Typed int Fast bool // contains filtered or unexported fields }
func (*CallNode) SetLocation ¶ added in v1.10.0
type ChainNode ¶ added in v1.10.0
type ChainNode struct { Node Node // contains filtered or unexported fields }
func (*ChainNode) SetLocation ¶ added in v1.10.0
type ClosureNode ¶
type ClosureNode struct { Node Node // contains filtered or unexported fields }
func (*ClosureNode) SetLocation ¶
type ConditionalNode ¶
type ConditionalNode struct { Cond Node Exp1 Node Exp2 Node // contains filtered or unexported fields }
func (*ConditionalNode) SetLocation ¶
type ConstantNode ¶
type ConstantNode struct { Value interface{} // contains filtered or unexported fields }
func (*ConstantNode) SetLocation ¶
type FloatNode ¶
type FloatNode struct { Value float64 // contains filtered or unexported fields }
func (*FloatNode) SetLocation ¶
type IdentifierNode ¶
type IdentifierNode struct { Value string Deref bool FieldIndex []int Method bool MethodIndex int // contains filtered or unexported fields }
func (*IdentifierNode) SetLocation ¶
type IntegerNode ¶
type IntegerNode struct { Value int // contains filtered or unexported fields }
func (*IntegerNode) SetLocation ¶
type MapNode ¶
type MapNode struct { Pairs []Node // contains filtered or unexported fields }
func (*MapNode) SetLocation ¶
type MemberNode ¶ added in v1.10.0
type MemberNode struct { Node Node Property Node Name string Optional bool Deref bool FieldIndex []int Method bool MethodIndex int // contains filtered or unexported fields }
func (*MemberNode) SetLocation ¶ added in v1.10.0
type NilNode ¶
type NilNode struct {
// contains filtered or unexported fields
}
func (*NilNode) SetLocation ¶
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 PairNode ¶
func (*PairNode) SetLocation ¶
type PointerNode ¶
type PointerNode struct {
// contains filtered or unexported fields
}
func (*PointerNode) SetLocation ¶
type SliceNode ¶
func (*SliceNode) SetLocation ¶
type StringNode ¶
type StringNode struct { Value string // contains filtered or unexported fields }
func (*StringNode) SetLocation ¶
type UnaryNode ¶
func (*UnaryNode) SetLocation ¶
Click to show internal directories.
Click to hide internal directories.