- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for AnyType (0.15 sec)
-
src/cmd/compile/internal/types/identity.go
isUnnamedEface := func(t *Type) bool { return t.IsEmptyInterface() && t.Sym() == nil } if flags&identStrict != 0 { return t1 == AnyType && isUnnamedEface(t2) && !t2.HasShape() || t2 == AnyType && isUnnamedEface(t1) && !t1.HasShape() } return t1 == AnyType && isUnnamedEface(t2) || t2 == AnyType && isUnnamedEface(t1) default: return false } } cont: // Any cyclic type must go through a named type, and if one is
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 20:57:01 UTC 2023 - 4.6K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
// not to be confused with the universe any anyType{}, // comparable types.Universe.Lookup("comparable").Type(), // "any" has special handling: see usage of predeclared. } type anyType struct{} func (t anyType) Underlying() types.Type { return t } func (t anyType) String() string { return "any" } // See cmd/compile/internal/noder.derivedInfo.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go
} found := false returnTypes := expressionAccessor.ReturnTypes() for _, returnType := range returnTypes { if ast.OutputType() == returnType || cel.AnyType == returnType { found = true break } } if !found { var reason string if len(returnTypes) == 1 { reason = fmt.Sprintf("must evaluate to %v", returnTypes[0].String()) } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/interface.go
// to the claim mapping expressions is a map[string]interface{}, so we can't // really know what the return type is during compilation. Strict type checking // is done during evaluation. return []*celgo.Type{celgo.AnyType} } var _ ExpressionAccessor = &ClaimValidationCondition{} // ClaimValidationCondition is a CEL expression that validates a claim. type ClaimValidationCondition struct { Expression string Message string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
// underlying; if the underlying type is unrestricted there must be an // element of the type set that violates one of the arg type checks // below, so we can safely return false here. if m.t == anyType { // anyType must have already been handled. panic("unexpected printfArgType") } return false } // Only report a reason if typ is the argument type, otherwise it won't
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/composition.go
func convertCelTypeToDeclType(celType *cel.Type) *apiservercel.DeclType { if celType == nil { return apiservercel.DynType } switch celType { case cel.AnyType: return apiservercel.AnyType case cel.BoolType: return apiservercel.BoolType case cel.BytesType: return apiservercel.BytesType case cel.DoubleType: return apiservercel.DoubleType case cel.DurationType:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 13 21:06:39 UTC 2024 - 7.4K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirBuiltInTypes.kt
override val unit: KaType by cachedBuiltin(builtinTypes.unitType) override val nothing: KaType by cachedBuiltin(builtinTypes.nothingType) override val any: KaType by cachedBuiltin(builtinTypes.anyType) override val throwable: KaType by cachedBuiltin(builtinTypes.throwableType) override val nullableAny: KaType by cachedBuiltin(builtinTypes.nullableAnyType)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/interface.go
type Variable struct { Name string Expression string } func (v *Variable) GetExpression() string { return v.Expression } func (v *Variable) ReturnTypes() []*celgo.Type { return []*celgo.Type{celgo.AnyType, celgo.DynType} } func (v *Variable) GetName() string { return v.Name } // ValidateResult defines the result of a Validator.Validate operation. type ValidateResult struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 17:47:18 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
} return v, nil } func buildTestEnv() (*cel.Env, *apiservercel.DeclType, error) { variablesType := apiservercel.NewMapType(apiservercel.StringType, apiservercel.AnyType, 0) variablesType.Fields = make(map[string]*apiservercel.DeclField) envSet, err := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true).Extend( environment.VersionedOptions{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile_test.go
return apiservercel.NewListType(apiservercel.StringType, -1) case reflect.TypeOf(map[string]authenticationv1.ExtraValue{}): return apiservercel.NewMapType(apiservercel.StringType, apiservercel.AnyType, -1) default: t.Fatalf("unsupported type %v", nativeType) } return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 7.3K bytes - Viewed (0)