type go/ast.ImportSpec
41 uses
go/ast (current package)
ast.go#L909: ImportSpec struct {
ast.go#L941: func (s *ImportSpec) Pos() token.Pos {
ast.go#L950: func (s *ImportSpec) End() token.Pos {
ast.go#L970: func (*ImportSpec) specNode() {}
ast.go#L1072: Imports []*ImportSpec // imports in this file
filter.go#L469: var imports []*ImportSpec
import.go#L60: f.Imports = append(f.Imports, spec.(*ImportSpec))
import.go#L71: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L79: n := s.(*ImportSpec).Name
import.go#L87: c := s.(*ImportSpec).Comment
import.go#L99: return prev.(*ImportSpec).Comment == nil
import.go#L162: importComments := map[*ImportSpec][]cgPos{}
import.go#L177: s := specs[specIndex].(*ImportSpec)
import.go#L221: s := s.(*ImportSpec)
scope.go#L112: case *ImportSpec:
walk.go#L275: case *ImportSpec:
go/build
read.go#L326: spec, ok := dspec.(*ast.ImportSpec)
go/doc
example.go#L207: groupStart := func(s *ast.ImportSpec) token.Pos {
example.go#L265: if c := s.(*ast.ImportSpec).Doc; c != nil {
example.go#L508: func findImportGroupStarts(imps []*ast.ImportSpec) []token.Pos {
example.go#L518: func findImportGroupStarts1(origImps []*ast.ImportSpec) []*ast.ImportSpec {
example.go#L520: imps := make([]*ast.ImportSpec, len(origImps))
example.go#L523: slices.SortFunc(imps, func(a, b *ast.ImportSpec) int {
example.go#L528: var groupStarts []*ast.ImportSpec
exports.go#L211: case *ast.ImportSpec:
reader.go#L579: if s, ok := spec.(*ast.ImportSpec); ok {
go/parser
parser.go#L72: imports []*ast.ImportSpec // list of imports
parser.go#L2540: spec := &ast.ImportSpec{
go/printer
nodes.go#L1687: case *ast.ImportSpec:
printer.go#L1053: case *ast.ImportSpec:
printer.go#L1073: case *ast.ImportSpec:
go/types
api.go#L378: func (info *Info) PkgNameOf(imp *ast.ImportSpec) *PkgName {
decl.go#L339: importDecl struct{ spec *ast.ImportSpec }
decl.go#L372: case *ast.ImportSpec:
golang.org/x/tools/go/ast/edge
edge.go#L247: ImportSpec_Comment: info[*ast.ImportSpec]("Comment"),
edge.go#L248: ImportSpec_Doc: info[*ast.ImportSpec]("Doc"),
edge.go#L249: ImportSpec_Name: info[*ast.ImportSpec]("Name"),
edge.go#L250: ImportSpec_Path: info[*ast.ImportSpec]("Path"),
golang.org/x/tools/go/ast/inspector
typeof.go#L166: case *ast.ImportSpec:
walk.go#L265: case *ast.ImportSpec: