go/ast.ImportSpec.Comment (field)
11 uses
go/ast (current package)
ast.go#L882: Comment *CommentGroup // line comments; or nil
import.go#L76: c := s.(*ImportSpec).Comment
import.go#L88: return prev.(*ImportSpec).Comment == nil
walk.go#L296: if n.Comment != nil {
walk.go#L297: Walk(v, n.Comment)
go/parser
parser.go#L2323: Comment: p.lineComment,
go/printer
nodes.go#L1566: p.setComment(s.Comment)
printer.go#L1056: return n.Comment
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1954: if x.Comment != nil {
encode_ast.gen.go#L1956: encode_ast_CommentGroup(e, x.Comment)
encode_ast.gen.go#L1989: decode_ast_CommentGroup(d, &x.Comment)
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |