node

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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 constuctor

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 constuctor

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 constuctor

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 constuctor

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