- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 94 for decls (0.04 sec)
-
src/go/types/decl.go
func (d typeDecl) node() ast.Node { return d.spec } func (d funcDecl) node() ast.Node { return d.decl } func (check *Checker) walkDecls(decls []ast.Decl, f func(decl)) { for _, d := range decls { check.walkDecl(d, f) } } func (check *Checker) walkDecl(d ast.Decl, f func(decl)) { switch d := d.(type) { case *ast.BadDecl: // ignore case *ast.GenDecl:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
src/go/ast/import.go
// SortImports sorts runs of consecutive import lines in import blocks in f. // It also removes duplicate imports when it is possible to do so without data loss. func SortImports(fset *token.FileSet, f *File) { for _, d := range f.Decls { d, ok := d.(*GenDecl) if !ok || d.Tok != token.IMPORT { // Not an import declaration, so we're done. // Imports are always first. break } if !d.Lparen.IsValid() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.7K bytes - Viewed (0) -
src/go/types/eval_test.go
fset := token.NewFileSet() f := mustParse(fset, src) var conf types.Config pkg, err := conf.Check(pkgName(src), fset, []*ast.File{f}, nil) if err != nil { t.Fatal(err) } for _, d := range f.Decls { if fun, _ := d.(*ast.FuncDecl); fun != nil { // type parameter A is not found at the start of the function type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/BUILD
deps = [":quant_td_files"], ) gentbl_cc_library( name = "tf_quant_ops_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( ["-gen-op-decls"], "passes/tf_quant_ops.h.inc", ), ( ["-gen-op-defs"], "passes/tf_quant_ops.cc.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 22:58:42 UTC 2024 - 21.7K bytes - Viewed (0) -
src/go/doc/reader.go
for _, f := range pkg.Files { for _, decl := range f.Decls { if d, ok := decl.(*ast.FuncDecl); ok { r.readFunc(d) } } } } // ---------------------------------------------------------------------------- // Types func customizeRecv(f *Func, recvTypeName string, embeddedIsPtr bool, level int) *Func { if f == nil || f.Decl == nil || f.Decl.Recv == nil || len(f.Decl.Recv.List) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/BUILD
"@tf_runtime//:OpBaseTdFiles", ], ) gentbl_cc_library( name = "runtime_fallback_ops_inc_gen", tbl_outs = [ ( ["-gen-op-decls"], "runtime_fallback_ops.h.inc", ), ( ["-gen-op-defs"], "runtime_fallback_ops.cc.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 19:04:21 UTC 2024 - 23.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/tests/tests.go
} func run(pass *analysis.Pass) (interface{}, error) { for _, f := range pass.Files { if !strings.HasSuffix(pass.Fset.File(f.Pos()).Name(), "_test.go") { continue } for _, decl := range f.Decls { fn, ok := decl.(*ast.FuncDecl) if !ok || fn.Recv != nil { // Ignore non-functions or functions with receivers. continue } switch { case strings.HasPrefix(fn.Name.Name, "Example"):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/BUILD
], ) gentbl_cc_library( name = "passes_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( [ "-gen-pass-decls", "-name=OdmlStablehlo", ], "transforms/passes.h.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "transforms/passes.td",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 24.9K bytes - Viewed (0) -
src/go/build/read.go
if info.parseErr != nil { return nil } hasEmbed := false for _, decl := range info.parsed.Decls { d, ok := decl.(*ast.GenDecl) if !ok { continue } for _, dspec := range d.Specs { spec, ok := dspec.(*ast.ImportSpec) if !ok { continue } quoted := spec.Path.Value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/abi.go
pprag := &typecheck.Target.CgoPragmas[i] cgoExports[symName] = append(cgoExports[symName], pprag) } } // Apply ABI defs and refs to Funcs and generate wrappers. // // This may generate new decls for the wrappers, but we // specifically *don't* want to visit those, lest we create // wrappers for wrappers. for _, fn := range typecheck.Target.Funcs { nam := fn.Nname if ir.IsBlank(nam) { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 13.8K bytes - Viewed (0)