Documentation
¶
Overview ¶
Package test brings z7zmey/php-parser nodes to the p package.
Index ¶
- func BinaryOp(left node.Node, op string, right node.Node) node.Node
- func Float(value string) *scalar.Dnumber
- func Func(name string) *stmt.Function
- func HTML(value string) *stmt.InlineHtml
- func Int(value string) *scalar.Lnumber
- func List(nodes []node.Node) *stmt.StmtList
- func Minus(e node.Node) *expr.UnaryMinus
- func Name(parts ...string) *name.Name
- func Nop() *stmt.Nop
- func Plus(e node.Node) *expr.UnaryPlus
- func String(value string) *scalar.String
- func Variable(name string) *expr.Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTML ¶
func HTML(value string) *stmt.InlineHtml
HTML returns node representing HTML outside <?php ?>.
func Name ¶
Name turns array of string to a name node. This is used around constants and return types, for instance.
func Nop ¶
Nop creates empty statement, in a script it is represented by semicolon or empty <?php ?>.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.