Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 243 for decls (0.06 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/BUILD

        ],
    )
    
    gentbl_cc_library(
        name = "clustering_passes_inc_gen",
        compatible_with = get_compatible_with_portable(),
        tbl_outs = [
            (
                [
                    "-gen-pass-decls",
                    "-name=TFXLABridgeClustering",
                ],
                "clustering_passes.h.inc",
            ),
        ],
        tblgen = "@llvm-project//mlir:mlir-tblgen",
        td_file = "clustering_passes.td",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 17:50:14 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/go/format/format_test.go

    	wantLit := file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0].(*ast.BasicLit)
    	wantVal := wantLit.Value
    
    	var buf bytes.Buffer
    	if err = Node(&buf, fset, file); err != nil {
    		t.Fatal("Node failed:", err)
    	}
    	diff(t, buf.Bytes(), []byte(golden))
    
    	// Check if anything changed after Node returned.
    	gotLit := file.Decls[0].(*ast.GenDecl).Specs[0].(*ast.ValueSpec).Values[0].(*ast.BasicLit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. src/go/printer/example_test.go

    )
    
    func parseFunc(filename, functionname string) (fun *ast.FuncDecl, fset *token.FileSet) {
    	fset = token.NewFileSet()
    	if file, err := parser.ParseFile(fset, filename, nil, 0); err == nil {
    		for _, d := range file.Decls {
    			if f, ok := d.(*ast.FuncDecl); ok && f.Name.Name == functionname {
    				fun = f
    				return
    			}
    		}
    	}
    	panic("function not found")
    }
    
    func printSelf() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 14:55:02 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top