go/ast.Field.Type (field)

79 uses

	go/ast (current package)
		ast.go#L200: 	Type    Expr          // field/method/parameter type; or nil
		ast.go#L209: 	if f.Type != nil {
		ast.go#L210: 		return f.Type.Pos()
		ast.go#L219: 	if f.Type != nil {
		ast.go#L220: 		return f.Type.End()
		filter.go#L84: 			name := fieldName(f.Type)
		filter.go#L96: 				filterType(f.Type, filter, export)
		filter.go#L143: 		if filterType(f.Type, filter, export) {
		filter.go#L315: 		t := r.List[0].Type
		walk.go#L54: 		if n.Type != nil {
		walk.go#L55: 			Walk(v, n.Type)

	go/doc
		example.go#L173: 					t := d.Recv.List[0].Type
		example.go#L380: 				ast.Inspect(f.Type, inspectFunc)
		exports.go#L88: 			if fname, _ := baseTypeName(field.Type); fname == name {
		exports.go#L117: 			fname := r.recordAnonymousField(parent, field.Type)
		exports.go#L146: 			r.filterType(nil, field.Type)
		exports.go#L162: 			r.filterType(nil, f.Type)
		reader.go#L86: 			typ = list[0].Type
		reader.go#L392: 			r.recordAnonymousField(typ, field.Type)
		reader.go#L417: 		recvTypeName, imp := baseTypeName(fun.Recv.List[0].Type)
		reader.go#L440: 			factoryType := res.Type
		reader.go#L704: 	origPos := newField.Type.Pos()
		reader.go#L705: 	_, origRecvIsPtr := newField.Type.(*ast.StarExpr)
		reader.go#L712: 	newField.Type = typ

	go/parser
		parser.go#L735: 	field := &ast.Field{Doc: doc, Names: names, Type: typ, Tag: tag, Comment: comment}
		parser.go#L1015: 			params = append(params, &ast.Field{Type: par.typ})
		parser.go#L1026: 		field := &ast.Field{Names: names, Type: typ}
		parser.go#L1090: 		list[0] = &ast.Field{Type: typ}
		parser.go#L1191: 	return &ast.Field{Doc: doc, Names: idents, Type: typ}
		parser.go#L1253: 				f.Type = p.embeddedElem(f.Type)
		parser.go#L1260: 			list = append(list, &ast.Field{Type: typ, Comment: comment})
		parser.go#L1265: 				list = append(list, &ast.Field{Type: typ, Comment: comment})
		resolver.go#L528: 		if f.Type != nil {
		resolver.go#L529: 			ast.Walk(r, f.Type)
		resolver.go#L550: 	typ := recv.List[0].Type
		resolver.go#L583: 		if f.Type != nil {
		resolver.go#L584: 			ast.Walk(r, f.Type)

	go/printer
		nodes.go#L374: 			p.expr(stripParensAlways(par.Type))
		nodes.go#L383: 		} else if mode == typeTParam && fields.NumFields() == 1 && combinesWithName(stripParensAlways(fields.List[0].Type)) {
		nodes.go#L451: 			p.expr(stripParensAlways(res.List[0].Type))
		nodes.go#L485: 	typeSize := p.nodeSize(f.Type, maxSize)
		nodes.go#L526: 				p.expr(f.Type)
		nodes.go#L531: 					p.signature(f.Type.(*ast.FuncType)) // don't print "func"
		nodes.go#L534: 					p.expr(f.Type)
		nodes.go#L570: 				p.expr(f.Type)
		nodes.go#L574: 				p.expr(f.Type)
		nodes.go#L624: 				p.signature(f.Type.(*ast.FuncType)) // don't print "func"
		nodes.go#L628: 				p.expr(f.Type)

	go/types
		decl.go#L691: 		if f.Type != nil {
		decl.go#L692: 			bound = check.bound(f.Type)
		decl.go#L698: 				check.error(f.Type, MisplacedTypeParam, "cannot use a type parameter as constraint")
		decl.go#L723: 		x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
		exprstring.go#L185: 		WriteExpr(buf, res.List[0].Type)
		exprstring.go#L205: 		if sig, _ := f.Type.(*ast.FuncType); sig != nil && iface {
		exprstring.go#L215: 		WriteExpr(buf, f.Type)
		interface.go#L170: 			addEmbedded(f.Type.Pos(), parseUnion(check, f.Type))
		interface.go#L182: 		typ := check.typ(f.Type)
		interface.go#L186: 				check.errorf(f.Type, InvalidSyntaxTree, "%s is not a method signature", typ)
		interface.go#L193: 			var at positioner = f.Type
		interface.go#L194: 			if ftyp, _ := f.Type.(*ast.FuncType); ftyp != nil && ftyp.TypeParams != nil {
		resolver.go#L444: 					ptr, base, _ := check.unpackRecv(d.decl.Recv.List[0].Type, false)
		signature.go#L169: 	rptr, rbase, rtparams := check.unpackRecv(rparam.Type, true)
		signature.go#L180: 		recvType = check.varType(rparam.Type)
		signature.go#L265: 			recvType = check.instance(rparam.Type.Pos(), baseType, targs, nil, check.context())
		signature.go#L273: 			check.recordParenthesizedRecvTypes(rparam.Type, recvType)
		signature.go#L361: 		ftype := field.Type
		signature.go#L408: 		check.recordTypeAndValue(list.List[len(list.List)-1].Type, typexpr, last.typ, nil)
		struct.go#L114: 		typ = check.varType(f.Type)
		struct.go#L126: 			pos := f.Type.Pos() // position of type, for errors
		struct.go#L127: 			name := embeddedFieldIdent(f.Type)
		struct.go#L129: 				check.errorf(f.Type, InvalidSyntaxTree, "embedded field type %s has no name", f.Type)
		struct.go#L144: 			embeddedPos := f.Type

	golang.org/x/tools/internal/typesinternal
		zerovalue.go#L274: 				Type: TypeExpr(t.Params().At(i).Type(), qual),
		zerovalue.go#L284: 			last.Type = &ast.Ellipsis{Elt: last.Type.(*ast.ArrayType).Elt}
		zerovalue.go#L289: 				Type: TypeExpr(t.Results().At(i).Type(), qual),