Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Argument ¶
type Argument struct { Variadic bool // if ... before variable IsReference bool // if & before variable Expr Node // Exression }
Argument node
func NewArgument ¶
NewArgument node constuctor
func (*Argument) Attributes ¶
Attributes returns node attributes as map
type Identifier ¶
type Identifier struct {
Value string
}
Identifier node
func (*Identifier) Attributes ¶
func (n *Identifier) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*Identifier) Walk ¶
func (n *Identifier) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
type Node ¶
type Node interface { walker.Walker Attributes() map[string]interface{} // Attributes returns node attributes as map }
Node interface
type Nullable ¶
type Nullable struct {
Expr Node
}
Nullable node
func (*Nullable) Attributes ¶
Attributes returns node attributes as map
type Parameter ¶
type Parameter struct { ByRef bool Variadic bool VariableType Node Variable Node DefaultValue Node }
Parameter node
func NewParameter ¶
func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter
NewParameter node constuctor
func (*Parameter) Attributes ¶
Attributes returns node attributes as map
Click to show internal directories.
Click to hide internal directories.