Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 174 for decls (0.15 sec)

  1. src/go/printer/printer_test.go

    	if got != want {
    		t.Errorf("got:\n%s\nwant:\n%s\n", got, want)
    	}
    }
    
    var decls = []string{
    	`import "fmt"`,
    	"const pi = 3.1415\nconst e = 2.71828\n\nvar x = pi",
    	"func sum(x, y int) int\t{ return x + y }",
    }
    
    func TestDeclLists(t *testing.T) {
    	for _, src := range decls {
    		file, err := parser.ParseFile(fset, "", "package p;"+src, parser.ParseComments)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/quantity.go

    */
    
    package cel
    
    import (
    	"fmt"
    	"reflect"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/checker/decls"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    	"k8s.io/apimachinery/pkg/api/resource"
    )
    
    var (
    	QuantityObject    = decls.NewObjectType("kubernetes.Quantity")
    	quantityTypeValue = types.NewTypeValue("kubernetes.Quantity")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:23:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/format.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    	"reflect"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/checker/decls"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    var (
    	FormatObject = decls.NewObjectType("kubernetes.NamedFormat")
    	FormatType   = cel.ObjectType("kubernetes.NamedFormat")
    )
    
    // Format provdes a CEL representation of kubernetes format
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/closure.go

    			addr := ir.NewNameAt(clofn.Pos(), typecheck.Lookup("&"+v.Sym().Name), types.NewPtr(v.Type()))
    			addr.Curfn = clofn
    			v.Heapaddr = addr
    			v = addr
    		}
    
    		v.Class = ir.PPARAM
    		decls = append(decls, v)
    
    		fld := types.NewField(src.NoXPos, v.Sym(), v.Type())
    		fld.Nname = v
    		params = append(params, fld)
    	}
    
    	// f is ONAME of the actual function.
    	f := clofn.Nname
    	typ := f.Type()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top