- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CommentGroup (0.08 sec)
-
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] {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Oct 14 15:47:06 UTC 2024 - 14.3K bytes - Viewed (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 }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 04 18:16:59 UTC 2024 - 31.4K bytes - Viewed (0)