node

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2018 License: MIT Imports: 1 Imported by: 0

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

func NewArgument(Expression Node, Variadic bool, IsReference bool) *Argument

NewArgument node constructor

func (*Argument) Attributes

func (n *Argument) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Argument) Walk

func (n *Argument) 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 NewIdentifier

func NewIdentifier(Value string) *Identifier

NewIdentifier node constructor

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 NewNullable

func NewNullable(Expression Node) *Nullable

NewNullable node constructor

func (*Nullable) Attributes

func (n *Nullable) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Nullable) Walk

func (n *Nullable) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

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

func (n *Parameter) Attributes() map[string]interface{}

Attributes returns node attributes as map

func (*Parameter) Walk

func (n *Parameter) Walk(v walker.Visitor)

Walk traverses nodes Walk is invoked recursively until v.EnterNode returns true

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL