type go/ast.ImportSpec
44 uses
go/ast (current package)
ast.go#L878: ImportSpec struct {
ast.go#L909: func (s *ImportSpec) Pos() token.Pos {
ast.go#L918: func (s *ImportSpec) End() token.Pos {
ast.go#L939: func (*ImportSpec) specNode() {}
ast.go#L1039: Imports []*ImportSpec // imports in this file
filter.go#L457: var imports []*ImportSpec
import.go#L60: t, err := strconv.Unquote(s.(*ImportSpec).Path.Value)
import.go#L68: n := s.(*ImportSpec).Name
import.go#L76: c := s.(*ImportSpec).Comment
import.go#L88: return prev.(*ImportSpec).Comment == nil
import.go#L151: importComments := map[*ImportSpec][]cgPos{}
import.go#L166: s := specs[specIndex].(*ImportSpec)
import.go#L204: s := s.(*ImportSpec)
scope.go#L101: case *ImportSpec:
walk.go#L288: case *ImportSpec:
go/build
read.go#L421: spec, ok := dspec.(*ast.ImportSpec)
go/doc
example.go#L309: if c := s.(*ast.ImportSpec).Doc; c != nil {
example.go#L346: s := &ast.ImportSpec{Path: &ast.BasicLit{Value: strconv.Quote(p)}}
exports.go#L198: case *ast.ImportSpec:
reader.go#L513: if s, ok := spec.(*ast.ImportSpec); ok {
go/parser
parser.go#L65: imports []*ast.ImportSpec // list of imports
parser.go#L2319: spec := &ast.ImportSpec{
go/printer
nodes.go#L1559: case *ast.ImportSpec:
printer.go#L1035: case *ast.ImportSpec:
printer.go#L1055: case *ast.ImportSpec:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1938: func encode_ast_ImportSpec(e *codec.Encoder, x *ast.ImportSpec) {
encode_ast.gen.go#L1965: func decode_ast_ImportSpec(d *codec.Decoder, p **ast.ImportSpec) {
encode_ast.gen.go#L1971: *p = ref.(*ast.ImportSpec)
encode_ast.gen.go#L1974: var x ast.ImportSpec
encode_ast.gen.go#L2000: codec.Register(&ast.ImportSpec{},
encode_ast.gen.go#L2001: func(e *codec.Encoder, x interface{}) { encode_ast_ImportSpec(e, x.(*ast.ImportSpec)) },
encode_ast.gen.go#L2003: var x *ast.ImportSpec
encode_ast.gen.go#L3998: func encode_slice_ast_ImportSpec(e *codec.Encoder, s []*ast.ImportSpec) {
encode_ast.gen.go#L4009: func decode_slice_ast_ImportSpec(d *codec.Decoder, p *[]*ast.ImportSpec) {
encode_ast.gen.go#L4014: s := make([]*ast.ImportSpec, n)
encode_ast.gen.go#L4022: codec.Register([]*ast.ImportSpec(nil),
encode_ast.gen.go#L4023: func(e *codec.Encoder, x interface{}) { encode_slice_ast_ImportSpec(e, x.([]*ast.ImportSpec)) },
encode_ast.gen.go#L4025: var x []*ast.ImportSpec
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L675: if spec, _ := obj.Decl.(*ast.ImportSpec); spec != nil {
synopsis.go#L49: pkg := n.Specs[0].(*ast.ImportSpec).Path.Value
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L243: if c := s.(*ast.ImportSpec).Doc; c != nil {
example.go#L483: s := &ast.ImportSpec{
exports.go#L198: case *ast.ImportSpec:
reader.go#L517: if s, ok := spec.(*ast.ImportSpec); ok {
 |
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. |