- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 108 for decls (0.1 sec)
-
src/go/ast/issues_test.go
} // find corresponding token.File var tf *token.File fset.Iterate(func(f *token.File) bool { tf = f return true }) tfEnd := tf.Base() + tf.Size() fd := f.Decls[len(f.Decls)-1].(*ast.FuncDecl) fdEnd := int(fd.End()) if fdEnd != tfEnd { t.Errorf("%q: got fdEnd = %d; want %d (base = %d, size = %d)", src, fdEnd, tfEnd, tf.Base(), tf.Size()) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 25 13:57:33 UTC 2023 - 3.5K bytes - Viewed (0) -
src/go/printer/performance_test.go
} fileNode = file fileSize = int64(len(src)) for _, decl := range file.Decls { // The first global variable, which is pretty short: // // var unresolved = new(ast.Object) if decl, ok := decl.(*ast.GenDecl); ok && decl.Tok == token.VAR { declNode = decl declSize = int64(fset.Position(decl.End()).Offset - fset.Position(decl.Pos()).Offset) break } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:10:10 UTC 2022 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/inference/BUILD
], ) gentbl_cc_library( name = "inference_passes_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( [ "-gen-pass-decls", "-name=TF2XLA", ], "inference_passes.h.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "inference_passes.td", deps = [
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Sep 08 21:59:39 UTC 2023 - 2K bytes - Viewed (0) -
src/go/token/example_test.go
return } // Print the location and kind of each declaration in f. for _, decl := range f.Decls { // Get the filename, line, and column back via the file set. // We get both the relative and absolute position. // The relative position is relative to the last line directive. // The absolute position is the exact position in the source. pos := decl.Pos() relPosition := fset.Position(pos) absPosition := fset.PositionFor(pos, false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:09:31 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/BUILD
], ) gentbl_cc_library( name = "tensorflow_tfrt_ops_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( ["-gen-op-decls"], "tfrt_ops.h.inc", ), ( ["-gen-op-defs"], "tfrt_ops.cc.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "tfrt_ops.td",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 29 02:59:58 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go
return func(f *types.Func) *ast.FuncDecl { if f != nil && fnDecls == nil { fnDecls = make(map[*types.Func]*ast.FuncDecl) for _, file := range files { for _, decl := range file.Decls { if fnDecl, ok := decl.(*ast.FuncDecl); ok { if fn, ok := info.Defs[fnDecl.Name].(*types.Func); ok { fnDecls[fn] = fnDecl } } } } } // TODO: set f = f.Origin() here.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/BUILD
], ) gentbl_cc_library( name = "quantization_interfaces_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( ["-gen-op-interface-decls"], "quantization_interface.h.inc", ), ( ["-gen-op-interface-defs"], "quantization_interface.cc.inc", ), ],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 11:52:27 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/BUILD
licenses = ["notice"], ) gentbl_cc_library( name = "sparsecore_passes_inc_gen", compatible_with = get_compatible_with_portable(), tbl_outs = [ ( [ "-gen-pass-decls", "-name=SparseCore", ], "sparsecore_passes.h.inc", ), ], tblgen = "@llvm-project//mlir:mlir-tblgen", td_file = "sparsecore_passes.td", deps = [
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:42:09 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/argposition_test.go
Line: 37, Column: 91, }, }, "doublePointerChecked": []ShortPosition{ ShortPosition{ Line: 42, Column: 91, }, }, } for _, decl := range f.Decls { if fdecl, ok := decl.(*ast.FuncDecl); ok { ast.Walk(&Visitor{expectation, fset, t}, fdecl.Body) } } for ident, positions := range expectation { for _, position := range positions {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 3.1K bytes - Viewed (0) -
src/internal/types/errors/generrordocs.go
} _, err = conf.Check("types", fset, []*ast.File{file}, info) if err != nil { log.Fatalf("Check failed: %s", err) } for _, decl := range file.Decls { decl, ok := decl.(*ast.GenDecl) if !ok || decl.Tok != token.CONST { continue } for _, spec := range decl.Specs { spec, ok := spec.(*ast.ValueSpec) if !ok || len(spec.Names) == 0 { continue } obj := info.ObjectOf(spec.Names[0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 03:14:42 UTC 2023 - 3K bytes - Viewed (0)