go/ast.ValueSpec.Type (field)
31 uses
go/ast (current package)
ast.go#L908: Type Expr // value type; or nil
ast.go#L946: if s.Type != nil {
ast.go#L947: return s.Type.End()
filter.go#L192: filterType(s.Type, f, export)
walk.go#L316: if n.Type != nil {
walk.go#L317: Walk(v, n.Type)
go/doc
example.go#L252: if s.Type != nil {
example.go#L253: ast.Inspect(s.Type, inspectFunc)
exports.go#L221: if len(s.Values) > 0 || s.Type == nil && len(s.Values) == 0 {
exports.go#L229: r.filterType(nil, s.Type)
exports.go#L235: r.filterType(nil, s.Type)
exports.go#L282: if spec.Type == nil && len(spec.Values) == 0 && prevType != nil {
exports.go#L284: spec.Type = copyConstType(prevType, spec.Pos())
exports.go#L290: prevType = spec.Type
reader.go#L293: case s.Type != nil:
reader.go#L295: if n, imp := baseTypeName(s.Type); !imp {
go/parser
parser.go#L2572: Type: typ,
resolver.go#L456: if spec.Type != nil {
resolver.go#L457: ast.Walk(r, spec.Type)
go/printer
nodes.go#L1535: if t.Type != nil {
nodes.go#L1551: if s.Type != nil || keepType {
nodes.go#L1555: if s.Type != nil {
nodes.go#L1556: p.expr(s.Type)
nodes.go#L1636: if s.Type != nil {
nodes.go#L1638: p.expr(s.Type)
go/types
decl.go#L389: case s.Type != nil || len(s.Values) > 0:
decl.go#L397: f(constDecl{spec: s, iota: iota, typ: last.Type, init: last.Values, inherited: inherited})
decl.go#L871: check.varDecl(obj, lhs, d.spec.Type, init)
resolver.go#L64: if s.Type == nil {
resolver.go#L363: d1 = &declInfo{file: fileScope, lhs: lhs, vtyp: d.spec.Type, init: d.spec.Values[0]}
resolver.go#L378: di = &declInfo{file: fileScope, vtyp: d.spec.Type, init: init}