Documentation ¶
Index ¶
- type Comments
- type Parser
- type PositionBuilder
- func (b *PositionBuilder) NewNodeListNodePosition(list []node.Node, n node.Node) *position.Position
- func (b *PositionBuilder) NewNodeListPosition(list []node.Node) *position.Position
- func (b *PositionBuilder) NewNodeListTokenPosition(list []node.Node, t *scanner.Token) *position.Position
- func (b *PositionBuilder) NewNodeNodeListPosition(n node.Node, list []node.Node) *position.Position
- func (b *PositionBuilder) NewNodePosition(n node.Node) *position.Position
- func (b *PositionBuilder) NewNodeTokenPosition(n node.Node, t *scanner.Token) *position.Position
- func (b *PositionBuilder) NewNodesPosition(startNode node.Node, endNode node.Node) *position.Position
- func (b *PositionBuilder) NewOptionalListTokensPosition(list []node.Node, t *scanner.Token, endToken *scanner.Token) *position.Position
- func (b *PositionBuilder) NewTokenNodeListPosition(t *scanner.Token, list []node.Node) *position.Position
- func (b *PositionBuilder) NewTokenNodePosition(t *scanner.Token, n node.Node) *position.Position
- func (b *PositionBuilder) NewTokenPosition(t *scanner.Token) *position.Position
- func (b *PositionBuilder) NewTokensPosition(startToken *scanner.Token, endToken *scanner.Token) *position.Position
- type Positions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comments ¶
Comments a collection of comment groups assigned to nodes
func (Comments) AddComments ¶
AddComments add comment group to the collection
type Parser ¶
type Parser interface { Parse() int GetPath() string GetRootNode() node.Node GetErrors() []*errors.Error GetComments() Comments GetPositions() Positions }
Parser interface
type PositionBuilder ¶
PositionBuilder provide functions to constuct positions
func (*PositionBuilder) NewNodeListNodePosition ¶
NewNodeListNodePosition returns new Position
func (*PositionBuilder) NewNodeListPosition ¶
func (b *PositionBuilder) NewNodeListPosition(list []node.Node) *position.Position
NewNodeListPosition returns new Position
func (*PositionBuilder) NewNodeListTokenPosition ¶
func (b *PositionBuilder) NewNodeListTokenPosition(list []node.Node, t *scanner.Token) *position.Position
NewNodeListTokenPosition returns new Position
func (*PositionBuilder) NewNodeNodeListPosition ¶
NewNodeNodeListPosition returns new Position
func (*PositionBuilder) NewNodePosition ¶
func (b *PositionBuilder) NewNodePosition(n node.Node) *position.Position
NewNodePosition returns new Position
func (*PositionBuilder) NewNodeTokenPosition ¶
NewNodeTokenPosition returns new Position
func (*PositionBuilder) NewNodesPosition ¶
func (b *PositionBuilder) NewNodesPosition(startNode node.Node, endNode node.Node) *position.Position
NewNodesPosition returns new Position
func (*PositionBuilder) NewOptionalListTokensPosition ¶
func (b *PositionBuilder) NewOptionalListTokensPosition(list []node.Node, t *scanner.Token, endToken *scanner.Token) *position.Position
NewOptionalListTokensPosition returns new Position
func (*PositionBuilder) NewTokenNodeListPosition ¶
func (b *PositionBuilder) NewTokenNodeListPosition(t *scanner.Token, list []node.Node) *position.Position
NewTokenNodeListPosition returns new Position
func (*PositionBuilder) NewTokenNodePosition ¶
NewTokenNodePosition returns new Position
func (*PositionBuilder) NewTokenPosition ¶
func (b *PositionBuilder) NewTokenPosition(t *scanner.Token) *position.Position
NewTokenPosition returns new Position
func (*PositionBuilder) NewTokensPosition ¶
func (b *PositionBuilder) NewTokensPosition(startToken *scanner.Token, endToken *scanner.Token) *position.Position
NewTokensPosition returns new Position