comment

package module
v0.0.0-...-5ca9d2d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: MIT Imports: 3 Imported by: 3

README

tenntenn/comment

godoc.org

comment provides utilities for ast.CommentMap.

Documentation

Index

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 New

func New(fset *token.FileSet, files []*ast.File) Maps

New creates new a CommentMap slice from specified files.

func (Maps) Annotated

func (maps Maps) Annotated(n ast.Node, annotation string) bool

Annotated checks either specified AST node is annotated or not.

func (Maps) Comments

func (maps Maps) Comments(n ast.Node) []*ast.CommentGroup

Comments returns correspond a CommentGroup slice to specified AST node.

Directories

Path Synopsis
passes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL