Documentation
¶
Index ¶
- type Maps
- func (maps Maps) Annotated(n ast.Node, annotation string) bool
- func (maps Maps) Comments(n ast.Node) []*ast.CommentGroup
- func (maps Maps) CommentsByPos(pos token.Pos) []*ast.CommentGroup
- func (maps Maps) Ignore(n ast.Node, check string) bool
- func (maps Maps) IgnorePos(pos token.Pos, check string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Maps ¶
type Maps []ast.CommentMap
Maps is slice of ast.CommentMap.
func (Maps) Comments ¶
func (maps Maps) Comments(n ast.Node) []*ast.CommentGroup
Comments returns correspond a CommentGroup slice to specified AST node.
func (Maps) CommentsByPos ¶ added in v1.2.0
func (maps Maps) CommentsByPos(pos token.Pos) []*ast.CommentGroup
CommentsByPos returns correspond a CommentGroup slice to specified pos.
Click to show internal directories.
Click to hide internal directories.