Documentation ¶
Index ¶
- func Walk(node *Node, visitor Visitor)
- type ArrayNode
- 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 ArrayNode ¶
type ArrayNode struct { Nodes []Node // contains filtered or unexported fields }
func (*ArrayNode) GetLocation ¶
func (*ArrayNode) SetLocation ¶
type BinaryNode ¶
type BinaryNode struct { Operator string Left Node Right Node // contains filtered or unexported fields }
func (*BinaryNode) GetLocation ¶
func (n *BinaryNode) GetLocation() file.Location
func (*BinaryNode) GetType ¶
func (n *BinaryNode) GetType() reflect.Type
func (*BinaryNode) SetLocation ¶
func (n *BinaryNode) SetLocation(l file.Location)
func (*BinaryNode) SetType ¶
func (n *BinaryNode) SetType(t reflect.Type)
type BoolNode ¶
type BoolNode struct { Value bool // contains filtered or unexported fields }
func (*BoolNode) GetLocation ¶
func (*BoolNode) SetLocation ¶
type BuiltinNode ¶
func (*BuiltinNode) GetLocation ¶
func (n *BuiltinNode) GetLocation() file.Location
func (*BuiltinNode) GetType ¶
func (n *BuiltinNode) GetType() reflect.Type
func (*BuiltinNode) SetLocation ¶
func (n *BuiltinNode) SetLocation(l file.Location)
func (*BuiltinNode) SetType ¶
func (n *BuiltinNode) SetType(t reflect.Type)
type ClosureNode ¶
type ClosureNode struct { Node Node // contains filtered or unexported fields }
func (*ClosureNode) GetLocation ¶
func (n *ClosureNode) GetLocation() file.Location
func (*ClosureNode) GetType ¶
func (n *ClosureNode) GetType() reflect.Type
func (*ClosureNode) SetLocation ¶
func (n *ClosureNode) SetLocation(l file.Location)
func (*ClosureNode) SetType ¶
func (n *ClosureNode) SetType(t reflect.Type)
type ConditionalNode ¶
type ConditionalNode struct { Cond Node Exp1 Node Exp2 Node // contains filtered or unexported fields }
func (*ConditionalNode) GetLocation ¶
func (n *ConditionalNode) GetLocation() file.Location
func (*ConditionalNode) GetType ¶
func (n *ConditionalNode) GetType() reflect.Type
func (*ConditionalNode) SetLocation ¶
func (n *ConditionalNode) SetLocation(l file.Location)
func (*ConditionalNode) SetType ¶
func (n *ConditionalNode) SetType(t reflect.Type)
type ConstantNode ¶
type ConstantNode struct { Value interface{} // contains filtered or unexported fields }
func (*ConstantNode) GetLocation ¶
func (n *ConstantNode) GetLocation() file.Location
func (*ConstantNode) GetType ¶
func (n *ConstantNode) GetType() reflect.Type
func (*ConstantNode) SetLocation ¶
func (n *ConstantNode) SetLocation(l file.Location)
func (*ConstantNode) SetType ¶
func (n *ConstantNode) SetType(t reflect.Type)
type FloatNode ¶
type FloatNode struct { Value float64 // contains filtered or unexported fields }
func (*FloatNode) GetLocation ¶
func (*FloatNode) SetLocation ¶
type FunctionNode ¶
func (*FunctionNode) GetLocation ¶
func (n *FunctionNode) GetLocation() file.Location
func (*FunctionNode) GetType ¶
func (n *FunctionNode) GetType() reflect.Type
func (*FunctionNode) SetLocation ¶
func (n *FunctionNode) SetLocation(l file.Location)
func (*FunctionNode) SetType ¶
func (n *FunctionNode) SetType(t reflect.Type)
type IdentifierNode ¶
type IdentifierNode struct { Value string // contains filtered or unexported fields }
func (*IdentifierNode) GetLocation ¶
func (n *IdentifierNode) GetLocation() file.Location
func (*IdentifierNode) GetType ¶
func (n *IdentifierNode) GetType() reflect.Type
func (*IdentifierNode) SetLocation ¶
func (n *IdentifierNode) SetLocation(l file.Location)
func (*IdentifierNode) SetType ¶
func (n *IdentifierNode) SetType(t reflect.Type)
type IntegerNode ¶
type IntegerNode struct { Value int // contains filtered or unexported fields }
func (*IntegerNode) GetLocation ¶
func (n *IntegerNode) GetLocation() file.Location
func (*IntegerNode) GetType ¶
func (n *IntegerNode) GetType() reflect.Type
func (*IntegerNode) SetLocation ¶
func (n *IntegerNode) SetLocation(l file.Location)
func (*IntegerNode) SetType ¶
func (n *IntegerNode) SetType(t reflect.Type)
type MapNode ¶
type MapNode struct { Pairs []Node // contains filtered or unexported fields }
func (*MapNode) GetLocation ¶
func (*MapNode) SetLocation ¶
type MatchesNode ¶
type MatchesNode struct { Regexp *regexp.Regexp Left Node Right Node // contains filtered or unexported fields }
func (*MatchesNode) GetLocation ¶
func (n *MatchesNode) GetLocation() file.Location
func (*MatchesNode) GetType ¶
func (n *MatchesNode) GetType() reflect.Type
func (*MatchesNode) SetLocation ¶
func (n *MatchesNode) SetLocation(l file.Location)
func (*MatchesNode) SetType ¶
func (n *MatchesNode) SetType(t reflect.Type)
type MethodNode ¶
type MethodNode struct { Node Node Method string Arguments []Node // contains filtered or unexported fields }
func (*MethodNode) GetLocation ¶
func (n *MethodNode) GetLocation() file.Location
func (*MethodNode) GetType ¶
func (n *MethodNode) GetType() reflect.Type
func (*MethodNode) SetLocation ¶
func (n *MethodNode) SetLocation(l file.Location)
func (*MethodNode) SetType ¶
func (n *MethodNode) SetType(t reflect.Type)
type NilNode ¶
type NilNode struct {
// contains filtered or unexported fields
}
func (*NilNode) GetLocation ¶
func (*NilNode) SetLocation ¶
type Node ¶
type Node interface { GetLocation() file.Location SetLocation(file.Location) GetType() reflect.Type SetType(reflect.Type) }
Node represents items of abstract syntax tree.
type PointerNode ¶
type PointerNode struct {
// contains filtered or unexported fields
}
func (*PointerNode) GetLocation ¶
func (n *PointerNode) GetLocation() file.Location
func (*PointerNode) GetType ¶
func (n *PointerNode) GetType() reflect.Type
func (*PointerNode) SetLocation ¶
func (n *PointerNode) SetLocation(l file.Location)
func (*PointerNode) SetType ¶
func (n *PointerNode) SetType(t reflect.Type)
type PropertyNode ¶
func (*PropertyNode) GetLocation ¶
func (n *PropertyNode) GetLocation() file.Location
func (*PropertyNode) GetType ¶
func (n *PropertyNode) GetType() reflect.Type
func (*PropertyNode) SetLocation ¶
func (n *PropertyNode) SetLocation(l file.Location)
func (*PropertyNode) SetType ¶
func (n *PropertyNode) SetType(t reflect.Type)
type StringNode ¶
type StringNode struct { Value string // contains filtered or unexported fields }
func (*StringNode) GetLocation ¶
func (n *StringNode) GetLocation() file.Location
func (*StringNode) GetType ¶
func (n *StringNode) GetType() reflect.Type
func (*StringNode) SetLocation ¶
func (n *StringNode) SetLocation(l file.Location)
func (*StringNode) SetType ¶
func (n *StringNode) SetType(t reflect.Type)
Click to show internal directories.
Click to hide internal directories.