type go/ast.Field
47 uses
go/ast (current package)
ast.go#L197: type Field struct {
ast.go#L205: func (f *Field) Pos() token.Pos {
ast.go#L212: func (f *Field) End() token.Pos {
ast.go#L222: 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#L318: func fields(typ ast.Expr) (list []*ast.Field, isStruct bool) {
reader.go#L360: var list []*ast.Field
reader.go#L628: newFieldList.List = []*ast.Field{&newField}
go/parser
parser.go#L704: func (p *parser) parseFieldDecl(scope *ast.Scope) *ast.Field {
parser.go#L750: field := &ast.Field{Doc: doc, Names: idents, Type: typ, Tag: tag, Comment: p.lineComment}
parser.go#L765: var list []*ast.Field
parser.go#L824: func (p *parser) parseParameterList(scope *ast.Scope, ellipsisOk bool) (params []*ast.Field) {
parser.go#L847: field := &ast.Field{Names: idents, Type: typ}
parser.go#L860: field := &ast.Field{Names: idents, Type: typ}
parser.go#L875: params = make([]*ast.Field, len(list))
parser.go#L878: params[i] = &ast.Field{Type: typ}
parser.go#L888: var params []*ast.Field
parser.go#L909: list := make([]*ast.Field, 1)
parser.go#L910: list[0] = &ast.Field{Type: typ}
parser.go#L940: func (p *parser) parseMethodSpec(scope *ast.Scope) *ast.Field {
parser.go#L962: spec := &ast.Field{Doc: doc, Names: idents, Type: typ, Comment: p.lineComment}
parser.go#L976: var list []*ast.Field
go/printer
nodes.go#L417: func (p *printer) isOneLineFieldList(list []*ast.Field) bool {
printer.go#L1033: case *ast.Field:
printer.go#L1053: case *ast.Field:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1335: func encode_ast_Field(e *codec.Encoder, x *ast.Field) {
encode_ast.gen.go#L1362: func decode_ast_Field(d *codec.Decoder, p **ast.Field) {
encode_ast.gen.go#L1368: *p = ref.(*ast.Field)
encode_ast.gen.go#L1371: var x ast.Field
encode_ast.gen.go#L1397: codec.Register(&ast.Field{},
encode_ast.gen.go#L1398: func(e *codec.Encoder, x interface{}) { encode_ast_Field(e, x.(*ast.Field)) },
encode_ast.gen.go#L1400: var x *ast.Field
encode_ast.gen.go#L3560: func encode_slice_ast_Field(e *codec.Encoder, s []*ast.Field) {
encode_ast.gen.go#L3571: func decode_slice_ast_Field(d *codec.Decoder, p *[]*ast.Field) {
encode_ast.gen.go#L3576: s := make([]*ast.Field, n)
encode_ast.gen.go#L3584: codec.Register([]*ast.Field(nil),
encode_ast.gen.go#L3585: func(e *codec.Encoder, x interface{}) { encode_slice_ast_Field(e, x.([]*ast.Field)) },
encode_ast.gen.go#L3586: func(d *codec.Decoder) interface{} { var x []*ast.Field; decode_slice_ast_Field(d, &x); return x })
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
linkify.go#L527: case *ast.Field:
linkify.go#L614: var fs []*ast.Field
short_synopsis.go#L76: func shortOneLineField(fset *token.FileSet, field *ast.Field, depth int) (string, error) {
synopsis.go#L192: func OneLineField(fset *token.FileSet, field *ast.Field, depth int) string {
golang.org/x/pkgsite/internal/godoc/internal/doc
reader.go#L322: func fields(typ ast.Expr) (list []*ast.Field, isStruct bool) {
reader.go#L364: var list []*ast.Field
reader.go#L632: newFieldList.List = []*ast.Field{&newField}
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |