type go/ast.Field
45 uses
go/ast (current package)
ast.go#L201: type Field struct {
ast.go#L209: func (f *Field) Pos() token.Pos {
ast.go#L219: func (f *Field) End() token.Pos {
ast.go#L236: List []*Field // field list; or nil
commentmap.go#L218: case *File, *Field, Decl, Spec, Stmt:
scope.go#L106: case *Field:
walk.go#L49: case *Field:
go/doc
reader.go#L347: func fields(typ ast.Expr) (list []*ast.Field, isStruct bool) {
reader.go#L388: var list []*ast.Field
reader.go#L716: newFieldList.List = []*ast.Field{&newField}
go/parser
parser.go#L648: func (p *parser) parseFieldDecl() *ast.Field {
parser.go#L735: field := &ast.Field{Doc: doc, Names: names, Type: typ, Tag: tag, Comment: comment}
parser.go#L746: var list []*ast.Field
parser.go#L875: func (p *parser) parseParameterList(name0 *ast.Ident, typ0 ast.Expr, closing token.Token, dddok bool) (params []*ast.Field) {
parser.go#L1035: params = append(params, &ast.Field{Type: par.typ})
parser.go#L1046: field := &ast.Field{Names: names, Type: typ}
parser.go#L1071: var list []*ast.Field
parser.go#L1092: var list []*ast.Field
parser.go#L1101: list := make([]*ast.Field, 1)
parser.go#L1102: list[0] = &ast.Field{Type: typ}
parser.go#L1128: func (p *parser) parseMethodSpec() *ast.Field {
parser.go#L1207: return &ast.Field{Doc: doc, Names: idents, Type: typ}
parser.go#L1261: var list []*ast.Field
parser.go#L1276: list = append(list, &ast.Field{Type: typ, Comment: comment})
parser.go#L1281: list = append(list, &ast.Field{Type: typ, Comment: comment})
go/printer
nodes.go#L471: func (p *printer) isOneLineFieldList(list []*ast.Field) bool {
printer.go#L1051: case *ast.Field:
printer.go#L1071: case *ast.Field:
go/types
decl.go#L533: var tparam0 *ast.Field
decl.go#L702: x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
exprstring.go#L195: func writeFieldList(buf *bytes.Buffer, list []*ast.Field, sep string, iface bool) {
signature.go#L210: func (check *Checker) collectRecv(rparam *ast.Field, scopePos token.Pos) (*Var, *TypeParamList) {
go.pact.im/x/plumb/internal/discover
discover.go#L600: var fields []*ast.Field
golang.org/x/tools/go/ast/edge
edge.go#L218: Field_Comment: info[*ast.Field]("Comment"),
edge.go#L219: Field_Doc: info[*ast.Field]("Doc"),
edge.go#L220: Field_Names: info[*ast.Field]("Names"),
edge.go#L221: Field_Tag: info[*ast.Field]("Tag"),
edge.go#L222: Field_Type: info[*ast.Field]("Type"),
golang.org/x/tools/go/ast/inspector
typeof.go#L144: case *ast.Field:
walk.go#L39: case *ast.Field:
golang.org/x/tools/internal/typesinternal
fx.go#L26: *ast.Field,
zerovalue.go#L260: var params []*ast.Field
zerovalue.go#L266: params = append(params, &ast.Field{
zerovalue.go#L275: var returns []*ast.Field
zerovalue.go#L277: returns = append(returns, &ast.Field{