go/ast.ValueSpec.Type (field)
38 uses
go/ast (current package)
ast.go#L892: Type Expr // value type; or nil
ast.go#L929: if s.Type != nil {
ast.go#L930: return s.Type.End()
filter.go#L192: filterType(s.Type, f, export)
walk.go#L305: if n.Type != nil {
walk.go#L306: Walk(v, n.Type)
go/doc
example.go#L249: if s.Type != nil {
example.go#L250: ast.Inspect(s.Type, inspectFunc)
exports.go#L203: if len(s.Values) > 0 || s.Type == nil && len(s.Values) == 0 {
exports.go#L211: r.filterType(nil, s.Type)
exports.go#L217: r.filterType(nil, s.Type)
exports.go#L260: if spec.Type == nil && len(spec.Values) == 0 && prevType != nil {
exports.go#L262: spec.Type = copyConstType(prevType, spec.Pos())
exports.go#L268: prevType = spec.Type
reader.go#L260: case s.Type != nil:
reader.go#L262: if n, imp := baseTypeName(s.Type); !imp {
go/parser
parser.go#L2364: Type: typ,
go/printer
nodes.go#L1474: if t.Type != nil {
nodes.go#L1490: if s.Type != nil || keepType {
nodes.go#L1494: if s.Type != nil {
nodes.go#L1495: p.expr(s.Type)
nodes.go#L1575: if s.Type != nil {
nodes.go#L1577: p.expr(s.Type)
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L3358: if x.Type != nil {
encode_ast.gen.go#L3360: e.EncodeAny(x.Type)
encode_ast.gen.go#L3395: x.Type = d.DecodeAny().(ast.Expr)
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
synopsis.go#L178: if valueSpec.Type != nil {
synopsis.go#L179: typ = fmt.Sprintf(" %s", OneLineNodeDepth(fset, valueSpec.Type, depth))
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L362: if s.Type != nil {
example.go#L363: ast.Inspect(s.Type, inspectFunc)
exports.go#L203: if len(s.Values) > 0 || s.Type == nil && len(s.Values) == 0 {
exports.go#L211: r.filterType(nil, s.Type)
exports.go#L217: r.filterType(nil, s.Type)
exports.go#L260: if spec.Type == nil && len(spec.Values) == 0 && prevType != nil {
exports.go#L262: spec.Type = copyConstType(prevType, spec.Pos())
exports.go#L268: prevType = spec.Type
reader.go#L262: case s.Type != nil:
reader.go#L264: if n, imp := baseTypeName(s.Type); !imp {
 |
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. |