name

package
v0.0.0-...-6a25f69 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT, MIT Imports: 4 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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	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) GetFreeFloating

func (n *FullyQualified) GetFreeFloating() *freefloating.Collection

func (*FullyQualified) GetParts

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

GetParts returns the name parts

func (*FullyQualified) GetPosition

func (n *FullyQualified) GetPosition() *position.Position

GetPosition returns node positions

func (*FullyQualified) SetPosition

func (n *FullyQualified) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	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) GetFreeFloating

func (n *Name) GetFreeFloating() *freefloating.Collection

func (*Name) GetParts

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

GetParts returns the name parts

func (*Name) GetPosition

func (n *Name) GetPosition() *position.Position

GetPosition returns node positions

func (*Name) SetPosition

func (n *Name) SetPosition(p *position.Position)

SetPosition sets node position

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 {
	FreeFloating freefloating.Collection
	Position     *position.Position
	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) GetFreeFloating

func (n *NamePart) GetFreeFloating() *freefloating.Collection

func (*NamePart) GetPosition

func (n *NamePart) GetPosition() *position.Position

GetPosition returns node positions

func (*NamePart) SetPosition

func (n *NamePart) SetPosition(p *position.Position)

SetPosition sets node position

func (*NamePart) Walk

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

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

type Names

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

Names is generalizing the Name types

type Relative

type Relative struct {
	FreeFloating freefloating.Collection
	Position     *position.Position
	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) GetFreeFloating

func (n *Relative) GetFreeFloating() *freefloating.Collection

func (*Relative) GetParts

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

GetParts returns the name parts

func (*Relative) GetPosition

func (n *Relative) GetPosition() *position.Position

GetPosition returns node positions

func (*Relative) SetPosition

func (n *Relative) SetPosition(p *position.Position)

SetPosition sets node position

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