- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AddComment (0.07 sec)
-
src/go/ast/commentmap.go
} // A CommentMap maps an AST node to a list of comment groups // associated with it. See [NewCommentMap] for a description of // the association. type CommentMap map[Node][]*CommentGroup func (cmap CommentMap) addComment(n Node, c *CommentGroup) { list := cmap[n] if len(list) == 0 { list = []*CommentGroup{c} } else { list = append(list, c) } cmap[n] = list } type byInterval []Node
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
} } else { f.Module.Mod.Path = path f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path)) } return nil } func (f *File) AddComment(text string) { if f.Syntax == nil { f.Syntax = new(FileSyntax) } f.Syntax.Stmt = append(f.Syntax.Stmt, &CommentBlock{ Comments: Comments{ Before: []Comment{ { Token: text, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0)