go/ast.Field.Type (field)
73 uses
go/ast (current package)
ast.go#L199: Type Expr // field/method/parameter type; or nil
ast.go#L208: if f.Type != nil {
ast.go#L209: return f.Type.Pos()
ast.go#L218: if f.Type != nil {
ast.go#L219: return f.Type.End()
filter.go#L87: name := fieldName(f.Type)
filter.go#L99: filterType(f.Type, filter, export)
filter.go#L146: if filterType(f.Type, filter, export) {
filter.go#L322: t := r.List[0].Type
walk.go#L74: if n.Type != nil {
walk.go#L75: Walk(v, n.Type)
go/doc
example.go#L172: t := d.Recv.List[0].Type
example.go#L231: ast.Inspect(p.Type, inspectFunc)
example.go#L236: ast.Inspect(r.Type, inspectFunc)
exports.go#L90: if fname, _ := baseTypeName(field.Type); fname == name {
exports.go#L120: fname := r.recordAnonymousField(parent, field.Type)
exports.go#L149: r.filterType(nil, field.Type)
exports.go#L166: r.filterType(nil, f.Type)
reader.go#L85: typ = list[0].Type
reader.go#L397: r.recordAnonymousField(typ, field.Type)
reader.go#L424: recvTypeName, imp := baseTypeName(fun.Recv.List[0].Type)
reader.go#L447: factoryType := res.Type
reader.go#L670: origPos := newField.Type.Pos()
reader.go#L671: _, origRecvIsPtr := newField.Type.(*ast.StarExpr)
reader.go#L678: newField.Type = typ
go/parser
parser.go#L667: field := &ast.Field{Doc: doc, Names: names, Type: typ, Tag: tag, Comment: p.lineComment}
parser.go#L907: params = append(params, &ast.Field{Type: par.typ})
parser.go#L917: field := &ast.Field{Names: names, Type: typ}
parser.go#L981: list[0] = &ast.Field{Type: typ}
parser.go#L1082: return &ast.Field{Doc: doc, Names: idents, Type: typ}
parser.go#L1144: f.Type = p.embeddedElem(f.Type)
parser.go#L1153: list = append(list, &ast.Field{Type: typ, Comment: comment})
parser.go#L1159: list = append(list, &ast.Field{Type: typ, Comment: comment})
resolver.go#L524: if f.Type != nil {
resolver.go#L525: ast.Walk(r, f.Type)
resolver.go#L546: typ := recv.List[0].Type
resolver.go#L579: if f.Type != nil {
resolver.go#L580: ast.Walk(r, f.Type)
go/printer
nodes.go#L375: p.expr(stripParensAlways(par.Type))
nodes.go#L391: if t, _ := fields.List[0].Type.(*ast.StarExpr); t != nil && !isTypeLit(t.X) {
nodes.go#L436: p.expr(stripParensAlways(res.List[0].Type))
nodes.go#L470: typeSize := p.nodeSize(f.Type, maxSize)
nodes.go#L507: p.expr(f.Type)
nodes.go#L512: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L515: p.expr(f.Type)
nodes.go#L547: p.expr(f.Type)
nodes.go#L551: p.expr(f.Type)
nodes.go#L601: p.signature(f.Type.(*ast.FuncType)) // don't print "func"
nodes.go#L605: p.expr(f.Type)
go/types
decl.go#L631: if f.Type != nil {
decl.go#L632: bound = check.bound(f.Type)
decl.go#L638: check.error(f.Type, _MisplacedTypeParam, "cannot use a type parameter as constraint")
decl.go#L663: x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
exprstring.go#L183: WriteExpr(buf, res.List[0].Type)
exprstring.go#L203: if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
exprstring.go#L213: WriteExpr(buf, f.Type)
interface.go#L169: addEmbedded(f.Type.Pos(), parseUnion(check, f.Type))
interface.go#L181: typ := check.typ(f.Type)
interface.go#L185: check.invalidAST(f.Type, "%s is not a method signature", typ)
interface.go#L194: var at positioner = f.Type
interface.go#L195: if ftyp, _ := f.Type.(*ast.FuncType); ftyp != nil && ftyp.TypeParams != nil {
resolver.go#L433: ptr, recv, _ := check.unpackRecv(d.decl.Recv.List[0].Type, false)
signature.go#L113: _, rname, rparams := check.unpackRecv(recvPar.List[0].Type, true)
signature.go#L283: ftype := field.Type
signature.go#L328: check.recordTypeAndValue(list.List[len(list.List)-1].Type, typexpr, last.typ, nil)
struct.go#L112: typ = check.varType(f.Type)
struct.go#L124: pos := f.Type.Pos()
struct.go#L125: name := embeddedFieldIdent(f.Type)
struct.go#L127: check.invalidAST(f.Type, "embedded field type %s has no name", f.Type)
struct.go#L142: embeddedPos := f.Type