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 constructor
func (*Argument) Attributes ¶
Attributes returns node attributes as map
type ArgumentList ¶ added in v0.5.0
type ArgumentList struct {
Arguments []Node
}
ArgumentList node
func NewArgumentList ¶ added in v0.5.0
func NewArgumentList(Arguments []Node) *ArgumentList
NewArgumentList node constructor
func (*ArgumentList) Attributes ¶ added in v0.5.0
func (n *ArgumentList) Attributes() map[string]interface{}
Attributes returns node attributes as map
func (*ArgumentList) Walk ¶ added in v0.5.0
func (n *ArgumentList) Walk(v walker.Visitor)
Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true
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.Walkable 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 constructor
func (*Parameter) Attributes ¶
Attributes returns node attributes as map
type Root ¶ added in v0.5.0
type Root struct {
Stmts []Node
}
Root node
func (*Root) Attributes ¶ added in v0.5.0
Attributes returns node attributes as map
Source Files
¶
Click to show internal directories.
Click to hide internal directories.