Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for FunctionBinding (0.36 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/FunctionBinding.kt

    import kotlin.reflect.KFunction
    import kotlin.reflect.KParameter
    import kotlin.reflect.full.extensionReceiverParameter
    import kotlin.reflect.full.instanceParameter
    
    
    object FunctionBinding {
        fun convertBinding(
            kFunction: KFunction<*>,
            receiver: Any,
            arguments: Map<DataParameter, Any?>,
            hasLambda: Boolean,
            configureLambdaHandler: ConfigureLambdaHandler
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/test.go

    		options = append(options, cel.Function("test",
    			cel.Overload("test", []*cel.Type{}, cel.BoolType,
    				cel.FunctionBinding(func(args ...ref.Val) ref.Val {
    					return types.True
    				}))))
    	}
    
    	if t.version >= 1 {
    		options = append(options, cel.Function("test",
    			cel.Overload("test", []*cel.Type{}, cel.BoolType,
    				cel.FunctionBinding(func(args ...ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/DeclarativeRuntimeFunction.kt

        override fun callBy(receiver: Any, binding: Map<DataParameter, Any?>, hasLambda: Boolean): DeclarativeRuntimeFunction.InvocationResult {
            val params = FunctionBinding.convertBinding(kFunction, receiver, binding, hasLambda, configureLambdaHandler)
                ?: error("signature of $kFunction does not match the arguments: $binding")
            val captor = params.valueCaptor
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:07:27 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/RuntimeFunctionResolver.kt

                // TODO: `convertBinding` is invoked here with the receiverClass passed as the receiver and non-resolved argument origins; this probably needs a different API shape
                if (function.name == name && FunctionBinding.convertBinding(function, receiverClass, parameterValueBinding.bindingMap, parameterValueBinding.providesConfigureBlock, configureLambdaHandler) != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 10:30:52 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/regex.go

    				return findAll(str, regex, types.Int(-1))
    			})),
    		cel.MemberOverload("string_find_all_string_int",
    			[]*cel.Type{cel.StringType, cel.StringType, cel.IntType},
    			cel.ListType(cel.StringType),
    			cel.FunctionBinding(findAll)),
    	},
    }
    
    func (*regex) CompileOptions() []cel.EnvOption {
    	options := []cel.EnvOption{}
    	for name, overloads := range regexLibraryDecls {
    		options = append(options, cel.Function(name, overloads...))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    	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 {
    			return nil, fmt.Errorf("function binding must have 0 arguments")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/authz.go

    			cel.BinaryBinding(authorizerGroup))},
    	"serviceAccount": {
    		cel.MemberOverload("authorizer_serviceaccount", []*cel.Type{AuthorizerType, cel.StringType, cel.StringType}, AuthorizerType,
    			cel.FunctionBinding(authorizerServiceAccount))},
    	"resource": {
    		cel.MemberOverload("groupcheck_resource", []*cel.Type{GroupCheckType, cel.StringType}, ResourceCheckType,
    			cel.BinaryBinding(groupCheckResource))},
    	"subresource": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 21.1K bytes
    - Viewed (0)
Back to top