Documentation ¶
Index ¶
- type Builder
- func (b *Builder) NewNodeListPosition(list []node.Node) *Position
- func (b *Builder) NewNodeListTokenPosition(list []node.Node, t token.Token) *Position
- func (b *Builder) NewNodeNodeListPosition(n node.Node, list []node.Node) *Position
- func (b *Builder) NewNodePosition(n node.Node) *Position
- func (b *Builder) NewNodeTokenPosition(n node.Node, t token.Token) *Position
- func (b *Builder) NewNodesPosition(startNode node.Node, endNode node.Node) *Position
- func (b *Builder) NewOptionalListTokensPosition(list []node.Node, t token.Token, endToken token.Token) *Position
- func (b *Builder) NewTokenNodeListPosition(t token.Token, list []node.Node) *Position
- func (b *Builder) NewTokenNodePosition(t token.Token, n node.Node) *Position
- func (b *Builder) NewTokenPosition(t token.Token) *Position
- func (b *Builder) NewTokensPosition(startToken token.Token, endToken token.Token) *Position
- type Position
- type Positions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
Positions *Positions
}
Builder provide functions to constuct positions
func (*Builder) NewNodeListPosition ¶
NewNodeListPosition returns new Position
func (*Builder) NewNodeListTokenPosition ¶
NewNodeListTokenPosition returns new Position
func (*Builder) NewNodeNodeListPosition ¶
NewNodeNodeListPosition returns new Position
func (*Builder) NewNodePosition ¶
NewNodePosition returns new Position
func (*Builder) NewNodeTokenPosition ¶
NewNodeTokenPosition returns new Position
func (*Builder) NewNodesPosition ¶
NewNodesPosition returns new Position
func (*Builder) NewOptionalListTokensPosition ¶
func (b *Builder) NewOptionalListTokensPosition(list []node.Node, t token.Token, endToken token.Token) *Position
NewOptionalListTokensPosition returns new Position
func (*Builder) NewTokenNodeListPosition ¶
NewTokenNodeListPosition returns new Position
func (*Builder) NewTokenNodePosition ¶
NewTokenNodePosition returns new Position
func (*Builder) NewTokenPosition ¶
NewTokenPosition returns new Position
Click to show internal directories.
Click to hide internal directories.