- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for filterDecl (0.31 sec)
-
src/go/ast/filter.go
} } return list[0:j] } // FilterDecl trims the AST for a Go declaration in place by removing // all names (including struct field and interface method names, but // not from parameter lists) that don't pass through the filter f. // // FilterDecl reports whether there are any declared names left after // filtering. func FilterDecl(decl Decl, f Filter) bool { return filterDecl(decl, f, false) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/doc/exports.go
prevType = spec.Type } } } j := 0 for _, s := range list { if r.filterSpec(s) { list[j] = s j++ } } return list[0:j] } func (r *reader) filterDecl(decl ast.Decl) bool { switch d := decl.(type) { case *ast.GenDecl: d.Specs = r.filterSpecList(d.Specs, d.Tok) return len(d.Specs) > 0 case *ast.FuncDecl: // ok to filter these methods early because any
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 8.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"File.Imports", Field, 0}, {"File.Name", Field, 0}, {"File.Package", Field, 0}, {"File.Scope", Field, 0}, {"File.Unresolved", Field, 0}, {"FileExports", Func, 0}, {"Filter", Type, 0}, {"FilterDecl", Func, 0}, {"FilterFile", Func, 0}, {"FilterFuncDuplicates", Const, 0}, {"FilterImportDuplicates", Const, 0}, {"FilterPackage", Func, 0}, {"FilterUnassociatedComments", Const, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
api/go1.txt
pkg go/ast, const Pkg ObjKind pkg go/ast, const RECV ChanDir pkg go/ast, const SEND ChanDir pkg go/ast, const Typ ObjKind pkg go/ast, const Var ObjKind pkg go/ast, func FileExports(*File) bool pkg go/ast, func FilterDecl(Decl, Filter) bool pkg go/ast, func FilterFile(*File, Filter) bool pkg go/ast, func FilterPackage(*Package, Filter) bool pkg go/ast, func Fprint(io.Writer, *token.FileSet, interface{}, FieldFilter) error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)