- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for CommentGroup (0.39 seconds)
-
src/cmd/cgo/ast.go
f.Comments = ast1.Comments f.AST = ast2 } // Like ast.CommentGroup's Text method but preserves // leading blank lines, so that line numbers line up. func commentText(g *ast.CommentGroup) string { pieces := make([]string, 0, len(g.List)) for _, com := range g.List { c := com.Text // Remove comment markers. // The parser has given us exactly the comment text. switch c[1] {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Jan 08 17:58:59 GMT 2026 - 14.4K bytes - Click Count (0) -
src/cmd/api/main_test.go
if err != nil { log.Fatalf("unexpected api file: %v", name) } return n >= 19 // started tracking approvals in Go 1.19 } func (w *Walker) collectDeprecated() { isDeprecated := func(doc *ast.CommentGroup) bool { if doc != nil { for _, c := range doc.List { if strings.HasPrefix(c.Text, "// Deprecated:") { return true } } } return false }Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Mar 02 13:20:41 GMT 2026 - 31.4K bytes - Click Count (0)