type go/ast.Decl
54 uses
go/ast (current package)
ast.go#L51: type Decl interface {
ast.go#L602: Decl Decl // *GenDecl with CONST, TYPE, or VAR token
ast.go#L1037: Decls []Decl // top-level declarations; or nil
commentmap.go#L234: case *File, *Field, Decl, Spec, Stmt:
filter.go#L233: func FilterDecl(decl Decl, f Filter) bool {
filter.go#L237: func filterDecl(decl Decl, f Filter, export bool) bool {
filter.go#L397: var decls []Decl
filter.go#L399: decls = make([]Decl, ndecls)
walk.go#L36: func walkDeclList(v Visitor, list []Decl) {
go/doc
example.go#L162: topDecls := make(map[*ast.Object]ast.Decl)
example.go#L163: typMethods := make(map[string][]ast.Decl)
example.go#L193: var depDecls []ast.Decl
example.go#L194: hasDepDecls := make(map[ast.Decl]bool)
example.go#L361: decls := make([]ast.Decl, 0, 2+len(depDecls))
example.go#L392: var decls []ast.Decl
exports.go#L283: func (r *reader) filterDecl(decl ast.Decl) bool {
go/parser
parser.go#L2492: func (p *parser) parseDecl(sync map[token.Token]bool) ast.Decl {
parser.go#L2551: var decls []ast.Decl
go/printer
nodes.go#L1784: func (p *printer) decl(decl ast.Decl) {
nodes.go#L1800: func declToken(decl ast.Decl) (tok token.Token) {
nodes.go#L1811: func (p *printer) declList(list []ast.Decl) {
printer.go#L1136: case ast.Decl:
printer.go#L1149: case []ast.Decl:
golang.org/x/pkgsite/internal/godoc
encode_ast.gen.go#L1040: x.Decl = d.DecodeAny().(ast.Decl)
encode_ast.gen.go#L3969: func encode_slice_ast_Decl(e *codec.Encoder, s []ast.Decl) {
encode_ast.gen.go#L3980: func decode_slice_ast_Decl(d *codec.Decoder, p *[]ast.Decl) {
encode_ast.gen.go#L3985: s := make([]ast.Decl, n)
encode_ast.gen.go#L3987: s[i] = d.DecodeAny().(ast.Decl)
encode_ast.gen.go#L3993: codec.Register([]ast.Decl(nil),
encode_ast.gen.go#L3994: func(e *codec.Encoder, x interface{}) { encode_slice_ast_Decl(e, x.([]ast.Decl)) },
encode_ast.gen.go#L3995: func(d *codec.Decoder) interface{} { var x []ast.Decl; decode_slice_ast_Decl(d, &x); return x })
godoc.go#L78: var decls []ast.Decl
golang.org/x/pkgsite/internal/godoc/dochtml
dochtml.go#L154: Decl ast.Decl // GenDecl for consts, vars and types; FuncDecl for functions
golang.org/x/pkgsite/internal/godoc/dochtml/internal/render
idents.go#L38: func forEachPackageDecl(pkg *doc.Package, fnc func(decl ast.Decl)) {
idents.go#L105: forEachPackageDecl(pkg, func(decl ast.Decl) {
idents.go#L113: forEachPackageDecl(pkg, func(decl ast.Decl) {
idents.go#L143: func newDeclIDs(decl ast.Decl) *declIDs {
linkify.go#L80: func (r *Renderer) declHTML(doc string, decl ast.Decl, extractLinks bool) (out struct{ Doc, Decl safehtml.HTML }) {
linkify.go#L378: func (r *Renderer) formatDeclHTML(decl ast.Decl, idr *identifierResolver) safehtml.HTML {
linkify.go#L511: func rewriteDecl(n ast.Decl, maxStringSize, maxElements int) ast.Decl {
linkify.go#L596: func generateAnchorPoints(decl ast.Decl) map[*ast.Ident]idKind {
linkify.go#L663: func generateAnchorLinks(idr *identifierResolver, decl ast.Decl) map[*ast.Ident]string {
render.go#L200: func (r *Renderer) DeclHTML(doc string, decl ast.Decl) (out struct{ Doc, Decl safehtml.HTML }) {
golang.org/x/pkgsite/internal/godoc/internal/doc
example.go#L162: topDecls := make(map[*ast.Object]ast.Decl)
example.go#L163: typMethods := make(map[string][]ast.Decl)
example.go#L282: decls := make([]ast.Decl, 0, 2+len(depDecls))
example.go#L303: func findDeclsAndUnresolved(body ast.Node, topDecls map[*ast.Object]ast.Decl, typMethods map[string][]ast.Decl) ([]ast.Decl, map[string]bool) {
example.go#L304: var depDecls []ast.Decl
example.go#L306: hasDepDecls := make(map[ast.Decl]bool)
example.go#L509: var decls []ast.Decl
exports.go#L283: func (r *reader) filterDecl(decl ast.Decl) bool {
 |
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. |