MCPcopy Create free account
hub / github.com/DAddYE/igo / NewCommentMap

Function NewCommentMap

ast/commentmap.go:143–240  ·  view source on GitHub ↗

NewCommentMap creates a new comment map by associating comment groups of the comments list with the nodes of the AST specified by node. A comment group g is associated with a node n if: - g starts on the same line as n ends - g starts on the line immediately following n, and there is at least one

(fset *token.FileSet, node Node, comments []*CommentGroup)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 10

nextMethod · 0.95
eolMethod · 0.95
sortCommentsFunction · 0.85
nodeListFunction · 0.85
popMethod · 0.80
addCommentMethod · 0.80
pushMethod · 0.80
PosMethod · 0.65
EndMethod · 0.65
PositionMethod · 0.45

Tested by

no test coverage detected