type go/ast.Spec
44 uses
go/ast (current package)
ast.go#L872: Spec interface {
ast.go#L970: Specs []Spec
commentmap.go#L234: case *File, *Field, Decl, Spec, Stmt:
filter.go#L185: func filterSpec(spec Spec, f Filter, export bool) bool {
filter.go#L215: func filterSpecList(list []Spec, f Filter, export bool) []Spec {
import.go#L59: func importPath(s Spec) string {
import.go#L67: func importName(s Spec) string {
import.go#L75: func importComment(s Spec) string {
import.go#L84: func collapse(prev, next Spec) bool {
import.go#L101: func sortSpecs(fset *token.FileSet, f *File, specs []Spec) []Spec {
go/doc
example.go#L271: var blankImports []ast.Spec // _ imports
exports.go#L196: func (r *reader) filterSpec(spec ast.Spec) bool {
exports.go#L253: func (r *reader) filterSpecList(list []ast.Spec, tok token.Token) []ast.Spec {
reader.go#L231: func specNames(specs []ast.Spec) []string {
reader.go#L553: Specs: []ast.Spec{s},
go/parser
parser.go#L2278: type parseSpecFunction func(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec
parser.go#L2291: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
parser.go#L2330: func (p *parser) parseValueSpec(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec {
parser.go#L2377: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
parser.go#L2409: var list []ast.Spec
go/printer
nodes.go#L1446: func keepTypeColumn(specs []ast.Spec) []bool {
nodes.go#L1557: func (p *printer) spec(spec ast.Spec, n int, doIndent bool) {
printer.go#L1138: case ast.Spec:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3618: func encode_slice_ast_Spec(e *codec.Encoder, s []ast.Spec) {
encode_ast.gen.go#L3629: func decode_slice_ast_Spec(d *codec.Decoder, p *[]ast.Spec) {
encode_ast.gen.go#L3634: s := make([]ast.Spec, n)
encode_ast.gen.go#L3636: s[i] = d.DecodeAny().(ast.Spec)
encode_ast.gen.go#L3642: codec.Register([]ast.Spec(nil),
encode_ast.gen.go#L3643: func(e *codec.Encoder, x interface{}) { encode_slice_ast_Spec(e, x.([]ast.Spec)) },
encode_ast.gen.go#L3644: func(d *codec.Decoder) interface{} { var x []ast.Spec; decode_slice_ast_Spec(d, &x); return x })
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L205: var blankImports []ast.Spec // _ imports
example.go#L387: var specs []ast.Spec
example.go#L440: func hasIota(s ast.Spec) bool {
example.go#L459: func synthesizeImportDecl(namedImports map[string]string, blankImports []ast.Spec, tfile *token.File) *ast.GenDecl {
example.go#L465: var stds, others []ast.Spec
example.go#L474: specs *[]ast.Spec
exports.go#L196: func (r *reader) filterSpec(spec ast.Spec) bool {
exports.go#L253: func (r *reader) filterSpecList(list []ast.Spec, tok token.Token) []ast.Spec {
reader.go#L233: func specNames(specs []ast.Spec) []string {
reader.go#L557: Specs: []ast.Spec{s},
 |
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. |