type go/ast.FieldList
41 uses
go/ast (current package)
ast.go#L229: type FieldList struct {
ast.go#L235: func (f *FieldList) Pos() token.Pos {
ast.go#L247: func (f *FieldList) End() token.Pos {
ast.go#L260: func (f *FieldList) NumFields() int {
ast.go#L443: Fields *FieldList // list of field declarations
ast.go#L452: TypeParams *FieldList // type parameters; or nil
ast.go#L453: Params *FieldList // (incoming) parameters; non-nil
ast.go#L454: Results *FieldList // (outgoing) results; or nil
ast.go#L460: Methods *FieldList // list of embedded interfaces, methods, or types
ast.go#L917: TypeParams *FieldList // type parameters; or nil
ast.go#L994: Recv *FieldList // receiver (methods); or nil (functions)
filter.go#L77: func filterFieldList(fields *FieldList, filter Filter, export bool) (removedFields bool) {
filter.go#L140: func filterParamList(fields *FieldList, filter Filter, export bool) bool {
walk.go#L84: case *FieldList:
go/doc
exports.go#L110: func (r *reader) filterFieldList(parent *namedType, fields *ast.FieldList, ityp *ast.InterfaceType) (removedFields bool) {
exports.go#L163: func (r *reader) filterParamList(fields *ast.FieldList) {
filter.go#L11: func matchFields(fields *ast.FieldList, f Filter) bool {
reader.go#L352: var fields *ast.FieldList
reader.go#L482: func lookupTypeParam(name string, tparams *ast.FieldList) *ast.Ident {
go/parser
parser.go#L689: Fields: &ast.FieldList{
parser.go#L936: func (p *parser) parseParameters(acceptTParams bool) (tparams, params *ast.FieldList) {
parser.go#L947: tparams = &ast.FieldList{Opening: opening, List: list, Closing: rbrack}
parser.go#L963: params = &ast.FieldList{Opening: opening, List: fields, Closing: rparen}
parser.go#L968: func (p *parser) parseResult() *ast.FieldList {
parser.go#L982: return &ast.FieldList{List: list}
parser.go#L1174: Methods: &ast.FieldList{
parser.go#L2586: spec.TypeParams = &ast.FieldList{Opening: openPos, List: list, Closing: closePos}
parser.go#L2764: var recv *ast.FieldList
resolver.go#L519: func (r *resolver) resolveList(list *ast.FieldList) {
resolver.go#L530: func (r *resolver) declareList(list *ast.FieldList, kind ast.ObjKind) {
resolver.go#L539: func (r *resolver) walkRecv(recv *ast.FieldList) {
resolver.go#L585: func (r *resolver) walkFieldList(list *ast.FieldList, kind ast.ObjKind) {
resolver.go#L596: func (r *resolver) walkTParams(list *ast.FieldList) {
go/printer
nodes.go#L330: func (p *printer) parameters(fields *ast.FieldList, mode paramMode) {
nodes.go#L478: func (p *printer) fieldList(fields *ast.FieldList, isStruct, isIncomplete bool) {
go/types
decl.go#L599: func (check *Checker) collectTypeParams(dst **TypeParamList, list *ast.FieldList) {
decl.go#L663: x = &ast.InterfaceType{Methods: &ast.FieldList{List: []*ast.Field{{Type: x}}}}
signature.go#L102: func (check *Checker) funcType(sig *Signature, recvPar *ast.FieldList, ftyp *ast.FuncType) {
signature.go#L276: func (check *Checker) collectParams(scope *Scope, list *ast.FieldList, variadicOk bool) (params []*Var, variadic bool) {
golang.org/x/tools/internal/typeparams
typeparams_go118.go#L19: func ForTypeSpec(n *ast.TypeSpec) *ast.FieldList {
typeparams_go118.go#L27: func ForFuncType(n *ast.FuncType) *ast.FieldList {