Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 150 for newFunc (0.27 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    				obj := NewTypeName(s.Name.Pos(), pkg, s.Name.Value, nil)
    				check.declarePkgObj(s.Name, obj, &declInfo{file: fileScope, tdecl: s})
    
    			case *syntax.FuncDecl:
    				name := s.Name.Value
    				obj := NewFunc(s.Name.Pos(), pkg, name, nil)
    				hasTParamError := false // avoid duplicate type parameter errors
    				if s.Recv == nil {
    					// regular function
    					if name == "init" || name == "main" && pkg.name == "main" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/go/types/resolver.go

    				obj := NewTypeName(d.spec.Name.Pos(), pkg, d.spec.Name.Name, nil)
    				check.declarePkgObj(d.spec.Name, obj, &declInfo{file: fileScope, tdecl: d.spec})
    			case funcDecl:
    				name := d.decl.Name.Name
    				obj := NewFunc(d.decl.Name.Pos(), pkg, name, nil) // signature set later
    				hasTParamError := false                           // avoid duplicate type parameter errors
    				if d.decl.Recv.NumFields() == 0 {
    					// regular function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    			labelsSet, fieldsSet, err := storage.DefaultNamespaceScopedAttr(obj)
    			if err != nil {
    				return nil, nil, err
    			}
    			fieldsSet["spec.nodeName"] = pod.Spec.NodeName
    			return labelsSet, fieldsSet, nil
    		},
    		NewFunc:     func() runtime.Object { return &example.Pod{} },
    		NewListFunc: func() runtime.Object { return &example.PodList{} },
    		Codec:       codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    		Clock:       clock.RealClock{},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/builtin.go

    			},
    			[]*types.Field{
    				types.NewField(base.Pos, nil, types.Types[types.TUINTPTR]),
    				types.NewField(base.Pos, nil, types.Types[types.TBOOL]),
    			})
    
    		fn := ir.NewFunc(n.Pos(), n.Pos(), math_MulUintptr, decl)
    
    		call := mkcall1(fn.Nname, fn.Type().ResultsTuple(), init, ir.NewInt(base.Pos, sliceType.Elem().Size()), typecheck.Conv(typecheck.Conv(len, lenType), types.Types[types.TUINTPTR]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. api/go1.5.txt

    pkg go/types, func NewConst(token.Pos, *Package, string, Type, constant.Value) *Const
    pkg go/types, func NewField(token.Pos, *Package, string, Type, bool) *Var
    pkg go/types, func NewFunc(token.Pos, *Package, string, *Signature) *Func
    pkg go/types, func NewInterface([]*Func, []*Named) *Interface
    pkg go/types, func NewLabel(token.Pos, *Package, string) *Label
    pkg go/types, func NewMap(Type, Type) *Map
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  8. pkg/controller/certificates/authority/authority_test.go

    			want: x509.Certificate{
    				NotBefore:             now,
    				NotAfter:              now.Add(1 * time.Hour),
    				BasicConstraintsValid: true,
    				KeyUsage:              x509.KeyUsageDigitalSignature,
    			},
    		},
    		{
    			name:   "ext key usage",
    			policy: PermissiveSigningPolicy{TTL: time.Hour, Usages: []capi.KeyUsage{"client auth"}, Now: nowFunc},
    			want: x509.Certificate{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 7.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

      function_builder.create<mlir::func::ReturnOp>(new_func.getLoc(),
                                                    return_operands);
      ops_added.func_op = new_func;
      module.push_back(new_func);
      return new_func;
    }
    
    void ExtractSubgraphToFunc(const Subgraph& subgraph, OpBuilder& builder,
                               ModuleOp& module, OpsAdded& ops_added) {
      func::FuncOp func = BuildFuncOp(subgraph, builder, module, ops_added);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram.go

    	ratioedOpts := opts.TimingHistogramOpts
    	ratioedOpts.InitialValue /= opts.InitialDenominator
    	th := compbasemetrics.NewTestableTimingHistogram(nowFunc, &ratioedOpts)
    	return &TimingRatioHistogram{
    		Registerable: th,
    		timingRatioHistogramInner: timingRatioHistogramInner{
    			nowFunc:         nowFunc,
    			getGaugeOfRatio: func() Gauge { return th },
    			numerator:       opts.InitialValue,
    			denominator:     opts.InitialDenominator,
    		}}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 8.6K bytes
    - Viewed (0)
Back to top