Versions in this module Expand all Collapse all v0 v0.6.1 Aug 20, 2019 v0.6.0 Feb 25, 2019 Changes in this version type Parser + WithFreeFloating func() v0.5.1 Jun 26, 2018 Changes in this version type PositionBuilder + PositionPool *sync.Pool v0.5.0 Jun 7, 2018 Changes in this version + type Comments map[node.Node][]*comment.Comment + func (c Comments) AddComments(node node.Node, comments []*comment.Comment) + func (c Comments) AddFromChildNode(n node.Node, ch node.Node) + func (c Comments) AddFromToken(node node.Node, token *scanner.Token, tokenName comment.TokenName) + type Parser interface + GetComments func() Comments + GetErrors func() []*errors.Error + GetPath func() string + GetPositions func() Positions + GetRootNode func() node.Node + Parse func() int + type PositionBuilder struct + Positions *Positions + 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 map[node.Node]*position.Position + func (p Positions) AddPosition(node node.Node, position *position.Position)