type go/ast.Spec
26 uses
go/ast (current package)
ast.go#L888: Spec interface {
ast.go#L987: 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#L274: var blankImports []ast.Spec // _ imports
exports.go#L214: func (r *reader) filterSpec(spec ast.Spec) bool {
exports.go#L275: func (r *reader) filterSpecList(list []ast.Spec, tok token.Token) []ast.Spec {
reader.go#L264: func specNames(specs []ast.Spec) []string {
reader.go#L607: Specs: []ast.Spec{s},
go/parser
parser.go#L2490: type parseSpecFunction func(doc *ast.CommentGroup, pos token.Pos, keyword token.Token, iota int) ast.Spec
parser.go#L2503: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Pos, _ token.Token, _ int) ast.Spec {
parser.go#L2542: func (p *parser) parseValueSpec(doc *ast.CommentGroup, _ token.Pos, keyword token.Token, iota int) ast.Spec {
parser.go#L2597: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Pos, _ token.Token, _ int) ast.Spec {
parser.go#L2733: var list []ast.Spec
go/printer
nodes.go#L1507: func keepTypeColumn(specs []ast.Spec) []bool {
nodes.go#L1618: func (p *printer) spec(spec ast.Spec, n int, doIndent bool) {
printer.go#L1145: case ast.Spec: