name

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullyQualified

type FullyQualified struct {
	Parts []node.Node
}

FullyQualified node

func NewFullyQualified

func NewFullyQualified(Parts []node.Node) *FullyQualified

NewFullyQualified node constructor

func (*FullyQualified) Attributes

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

Attributes returns node attributes as map

func (*FullyQualified) GetParts added in v0.3.0

func (n *FullyQualified) GetParts() []node.Node

GetParts returns the name parts

func (*FullyQualified) Walk

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

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

type Name

type Name struct {
	Parts []node.Node
}

Name node

func NewName

func NewName(Parts []node.Node) *Name

NewName node constructor

func (*Name) Attributes

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

Attributes returns node attributes as map

func (*Name) GetParts added in v0.3.0

func (n *Name) GetParts() []node.Node

GetParts returns the name parts

func (*Name) Walk

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

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

type NamePart

type NamePart struct {
	Value string
}

NamePart node

func NewNamePart

func NewNamePart(Value string) *NamePart

NewNamePart node constructor

func (*NamePart) Attributes

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

Attributes returns node attributes as map

func (*NamePart) Walk

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

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

type Names added in v0.3.0

type Names interface {
	node.Node
	GetParts() []node.Node
}

Names is generalizing the Name types

type Relative

type Relative struct {
	Parts []node.Node
}

Relative node

func NewRelative

func NewRelative(Parts []node.Node) *Relative

NewRelative node constructor

func (*Relative) Attributes

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

Attributes returns node attributes as map

func (*Relative) GetParts added in v0.3.0

func (n *Relative) GetParts() []node.Node

GetParts returns the name parts

func (*Relative) Walk

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

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

Jump to

Keyboard shortcuts

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