go/ast.ValueSpec.Type (field)
31 uses
go/ast (current package)
ast.go#L912: Type Expr // value type; or nil
ast.go#L950: if s.Type != nil {
ast.go#L951: return s.Type.End()
filter.go#L189: filterType(s.Type, f, export)
walk.go#L292: if n.Type != nil {
walk.go#L293: Walk(v, n.Type)
go/doc
example.go#L410: if s.Type != nil {
example.go#L411: 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#L2563: 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#L404: case s.Type != nil || len(s.Values) > 0:
decl.go#L412: f(constDecl{spec: s, iota: iota, typ: last.Type, init: last.Values, inherited: inherited})
decl.go#L932: 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}