go/ast.ValueSpec.Type (field)
35 uses
go/ast (current package)
ast.go#L923: Type Expr // value type; or nil
ast.go#L961: if s.Type != nil {
ast.go#L962: return s.Type.End()
filter.go#L192: filterType(s.Type, f, export)
walk.go#L292: if n.Type != nil {
walk.go#L293: Walk(v, n.Type)
go/doc
example.go#L412: if s.Type != nil {
example.go#L413: ast.Inspect(s.Type, inspectFunc)
exports.go#L216: if len(s.Values) > 0 || s.Type == nil && len(s.Values) == 0 {
exports.go#L224: r.filterType(nil, s.Type)
exports.go#L230: r.filterType(nil, s.Type)
exports.go#L276: if spec.Type == nil && len(spec.Values) == 0 && prevType != nil {
exports.go#L278: spec.Type = copyConstType(prevType, spec.Pos())
exports.go#L284: prevType = spec.Type
reader.go#L290: case s.Type != nil:
reader.go#L292: if n, imp := baseTypeName(s.Type); !imp {
go/parser
parser.go#L2585: Type: typ,
resolver.go#L460: if spec.Type != nil {
resolver.go#L461: ast.Walk(r, spec.Type)
go/printer
nodes.go#L1603: if t.Type != nil {
nodes.go#L1619: if s.Type != nil || keepType {
nodes.go#L1623: if s.Type != nil {
nodes.go#L1624: p.expr(s.Type)
nodes.go#L1703: if s.Type != nil {
nodes.go#L1705: p.expr(s.Type)
go/types
decl.go#L380: case s.Type != nil || len(s.Values) > 0:
decl.go#L388: f(constDecl{spec: s, iota: iota, typ: last.Type, init: last.Values, inherited: inherited})
decl.go#L902: check.varDecl(obj, lhs, d.spec.Type, init)
resolver.go#L66: if s.Type == nil {
resolver.go#L377: d1 = &declInfo{file: fileScope, version: check.version, lhs: lhs, vtyp: d.spec.Type, init: d.spec.Values[0]}
resolver.go#L392: di = &declInfo{file: fileScope, version: check.version, vtyp: d.spec.Type, init: init}
go.pact.im/x/plumb/internal/discover
discover.go#L439: if s.Type == nil {
discover.go#L442: targetType := pkg.Info.TypeOf(s.Type)
golang.org/x/tools/go/ast/inspector
walk.go#L282: if n.Type != nil {
walk.go#L283: walk(v, edge.ValueSpec_Type, -1, n.Type)