type go/ast.FieldList
42 uses
go/ast (current package)
ast.go#L230: type FieldList struct {
ast.go#L236: func (f *FieldList) Pos() token.Pos {
ast.go#L248: func (f *FieldList) End() token.Pos {
ast.go#L261: func (f *FieldList) NumFields() int {
ast.go#L453: Fields *FieldList // list of field declarations
ast.go#L462: TypeParams *FieldList // type parameters; or nil
ast.go#L463: Params *FieldList // (incoming) parameters; non-nil
ast.go#L464: Results *FieldList // (outgoing) results; or nil
ast.go#L470: Methods *FieldList // list of embedded interfaces, methods, or types
ast.go#L921: TypeParams *FieldList // type parameters; or nil
ast.go#L996: Recv *FieldList // receiver (methods); or nil (functions)
filter.go#L74: func filterFieldList(fields *FieldList, filter Filter, export bool) (removedFields bool) {
filter.go#L137: func filterParamList(fields *FieldList, filter Filter, export bool) bool {
walk.go#L64: case *FieldList:
go/doc
example.go#L377: inspectFieldList := func(fl *ast.FieldList) {
exports.go#L107: func (r *reader) filterFieldList(parent *namedType, fields *ast.FieldList, ityp *ast.InterfaceType) (removedFields bool) {
exports.go#L159: func (r *reader) filterParamList(fields *ast.FieldList) {
filter.go#L11: func matchFields(fields *ast.FieldList, f Filter) bool {
reader.go#L348: var fields *ast.FieldList
reader.go#L475: func lookupTypeParam(name string, tparams *ast.FieldList) *ast.Ident {
go/parser
parser.go#L757: Fields: &ast.FieldList{
parser.go#L1045: func (p *parser) parseParameters(acceptTParams bool) (tparams, params *ast.FieldList) {
parser.go#L1056: tparams = &ast.FieldList{Opening: opening, List: list, Closing: rbrack}
parser.go#L1072: params = &ast.FieldList{Opening: opening, List: fields, Closing: rparen}
parser.go#L1077: func (p *parser) parseResult() *ast.FieldList {
parser.go#L1091: return &ast.FieldList{List: list}
parser.go#L1278: Methods: &ast.FieldList{
parser.go#L2577: spec.TypeParams = &ast.FieldList{Opening: openPos, List: list, Closing: closePos}
parser.go#L2772: var recv *ast.FieldList
resolver.go#L523: func (r *resolver) resolveList(list *ast.FieldList) {
resolver.go#L534: func (r *resolver) declareList(list *ast.FieldList, kind ast.ObjKind) {
resolver.go#L543: func (r *resolver) walkRecv(recv *ast.FieldList) {
resolver.go#L589: func (r *resolver) walkFieldList(list *ast.FieldList, kind ast.ObjKind) {
resolver.go#L600: func (r *resolver) walkTParams(list *ast.FieldList) {
go/printer
nodes.go#L328: func (p *printer) parameters(fields *ast.FieldList, mode paramMode) {
nodes.go#L493: func (p *printer) fieldList(fields *ast.FieldList, isStruct, isIncomplete bool) {
go/types
decl.go#L656: func (check *Checker) collectTypeParams(dst **TypeParamList, list *ast.FieldList) {
decl.go#L723: x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
signature.go#L108: func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
signature.go#L354: func (check *Checker) collectParams(list *ast.FieldList, variadicOk bool) (names []*ast.Ident, params []*Var, variadic bool) {
golang.org/x/tools/internal/typesinternal
zerovalue.go#L293: Params: &ast.FieldList{
zerovalue.go#L296: Results: &ast.FieldList{