Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 108 for decls (0.1 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    type format struct{}
    
    func (*format) LibraryName() string {
    	return "format"
    }
    
    func ZeroArgumentFunctionBinding(binding func() ref.Val) decls.OverloadOpt {
    	return func(o *decls.OverloadDecl) (*decls.OverloadDecl, error) {
    		wrapped, err := decls.FunctionBinding(func(values ...ref.Val) ref.Val { return binding() })(o)
    		if err != nil {
    			return nil, err
    		}
    		if len(wrapped.ArgTypes()) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K 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. tensorflow/compiler/mlir/lite/quantization/ir/.clang-tidy

            bugprone-unused-raii,
            bugprone-unused-return-value,
            misc-redundant-expression,
            misc-static-assert,
            misc-unused-parameters,
            misc-unused-using-decls,
            modernize-use-bool-literals,
            modernize-loop-convert,
            modernize-make-unique,
            modernize-raw-string-literal,
            modernize-use-equals-default,
            modernize-use-default-member-init,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/url.go

    import (
    	"fmt"
    	"net/url"
    	"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"
    )
    
    // URL provides a CEL representation of a URL.
    type URL struct {
    	*url.URL
    }
    
    var (
    	URLObject = decls.NewObjectType("kubernetes.URL")
    	typeValue = types.NewTypeValue("kubernetes.URL")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 2K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    type declInfo struct {
    	decl     *ast.FuncDecl
    	cfg      *cfg.CFG // iff decl.Body != nil
    	started  bool     // to break cycles
    	noReturn bool
    }
    
    type litInfo struct {
    	cfg      *cfg.CFG
    	noReturn bool
    }
    
    // FuncDecl returns the control-flow graph for a named function.
    // It returns nil if decl.Body==nil.
    func (c *CFGs) FuncDecl(decl *ast.FuncDecl) *cfg.CFG {
    	if decl.Body == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. src/cmd/gofmt/simplify.go

    	removeEmptyDeclGroups(f)
    
    	var s simplifier
    	ast.Walk(s, f)
    }
    
    func removeEmptyDeclGroups(f *ast.File) {
    	i := 0
    	for _, d := range f.Decls {
    		if g, ok := d.(*ast.GenDecl); !ok || !isEmpty(f, g) {
    			f.Decls[i] = d
    			i++
    		}
    	}
    	f.Decls = f.Decls[:i]
    }
    
    func isEmpty(f *ast.File, g *ast.GenDecl) bool {
    	if g.Doc != nil || g.Specs != nil {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 20:06:14 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  9. src/go/doc/exports.go

    	return false
    }
    
    // fileExports removes unexported declarations from src in place.
    func (r *reader) fileExports(src *ast.File) {
    	j := 0
    	for _, d := range src.Decls {
    		if r.filterDecl(d) {
    			src.Decls[j] = d
    			j++
    		}
    	}
    	src.Decls = src.Decls[0:j]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue15838.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test cases for issue #15838, and related failures.
    // Make sure the importer correctly sets up nodes for
    // label decls, goto, continue, break, and fallthrough
    // statements.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 00:32:03 UTC 2016
    - 370 bytes
    - Viewed (0)
Back to top