type go/ast.Field
29 uses
go/ast (current package)
ast.go#L196: type Field struct {
ast.go#L204: func (f *Field) Pos() token.Pos {
ast.go#L214: func (f *Field) End() token.Pos {
ast.go#L231: List []*Field // field list; or nil
commentmap.go#L234: case *File, *Field, Decl, Spec, Stmt:
scope.go#L95: case *Field:
walk.go#L69: case *Field:
go/doc
reader.go#L351: func fields(typ ast.Expr) (list []*ast.Field, isStruct bool) {
reader.go#L393: var list []*ast.Field
reader.go#L682: newFieldList.List = []*ast.Field{&newField}
go/parser
parser.go#L616: func (p *parser) parseFieldDecl() *ast.Field {
parser.go#L667: field := &ast.Field{Doc: doc, Names: names, Type: typ, Tag: tag, Comment: p.lineComment}
parser.go#L678: var list []*ast.Field
parser.go#L807: func (p *parser) parseParameterList(name0 *ast.Ident, typ0 ast.Expr, closing token.Token) (params []*ast.Field) {
parser.go#L907: params = append(params, &ast.Field{Type: par.typ})
parser.go#L917: field := &ast.Field{Names: names, Type: typ}
parser.go#L957: var fields []*ast.Field
parser.go#L980: list := make([]*ast.Field, 1)
parser.go#L981: list[0] = &ast.Field{Type: typ}
parser.go#L1003: func (p *parser) parseMethodSpec() *ast.Field {
parser.go#L1082: return &ast.Field{Doc: doc, Names: idents, Type: typ}
parser.go#L1136: var list []*ast.Field
parser.go#L1153: list = append(list, &ast.Field{Type: typ, Comment: comment})
parser.go#L1159: list = append(list, &ast.Field{Type: typ, Comment: comment})
go/printer
nodes.go#L456: func (p *printer) isOneLineFieldList(list []*ast.Field) bool {
printer.go#L1038: case *ast.Field:
printer.go#L1058: case *ast.Field:
go/types
decl.go#L663: x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
exprstring.go#L193: func writeFieldList(buf *bytes.Buffer, list []*ast.Field, sep string, iface bool) {