Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 161 for typeOff (0.11 sec)

  1. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/ProjectSchemaLambdaAccessorsIntegrationTest.kt

            }
    
            withBuildScript(
                """
                plugins {
                    my
                }
    
                inline fun <reified T> typeOf(value: T) = typeOf<T>()
    
                println("closureExtension: " + typeOf(closureExtension))
    
                val casted = closureExtension as groovy.lang.Closure<*>
                println(casted.call("some"))
                """
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Sep 24 17:45:43 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/TreatInterfaceAsConfigureLambdaTest.kt

        @Test
        fun recognizesLambdaType() {
            assertEquals(typeOf<Int>(), customConfigureLambdas.getTypeConfiguredByLambda(typeOf<MyFunctionalInterface<Int>>()))
            assertTrue { customConfigureLambdas.isConfigureLambdaForType(typeOf<Int>(), typeOf<MyFunctionalInterface<Int>>()) }
            assertFalse { customConfigureLambdas.isConfigureLambdaForType(typeOf<String>(), typeOf<MyFunctionalInterface<Int>>()) }
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/extensibility/ExtensionContainerTest.groovy

                          bar: typeOf(Capability),
                          boo: typeOf(Child),
                          baz: new TypeOf<List<String>>() {},
                          cat: typeOf(Thing),
                          meo: typeOf(Thing)]
        }
    
        def "can configure extensions by name"() {
            given:
            container.add "foo", extension
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtensionContainerExtensionsTest.kt

            val extensions = mock<ExtensionContainer>()
            doNothing().`when`(extensions).add(any<TypeOf<SomeExtension<*>>>(), any(), any())
    
            val instance = SomeExtension("some")
            extensions.add<SomeExtension<String>>("name", instance)
    
            inOrder(extensions) {
                verify(extensions).add(typeOf<SomeExtension<String>>(), "name", instance)
                verifyNoMoreInteractions()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/TypeOfExtensions.kt

     */
    package org.gradle.kotlin.dsl
    
    import org.gradle.api.reflect.TypeOf
    
    
    /**
     * Creates an instance of [TypeOf] for the given parameterized type.
     *
     * @param T the type
     * @return the [TypeOf] that captures the generic type of the given parameterized type
     */
    inline fun <reified T> typeOf(): TypeOf<T> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 947 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/interface.go

    	// This function returns false if the name does not refer to a known object type.
    	Resolve(name string) (TypeRef, bool)
    }
    
    // TypeRef refers an object type that can be looked up for its fields.
    type TypeRef interface {
    	ref.Type
    
    	// CELType wraps the TypeRef to be a type that is understood by CEL.
    	CELType() *types.Type
    
    	// Field finds the field by the field name, or false if the field is not known.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver.go

    )
    
    const object = common.RootTypeReferenceName
    
    type TypeResolver struct {
    }
    
    // Resolve resolves the TypeRef for the given type name
    // that starts with "Object".
    // This is the unstructured version, which means the
    // returned TypeRef does not refer to the schema.
    func (r *TypeResolver) Resolve(name string) (common.TypeRef, bool) {
    	if !strings.HasPrefix(name, object) {
    		return nil, false
    	}
    	return NewTypeRef(name), true
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/runtime/cgo/libcgo.h

    #include <stdio.h>
    
    #undef nil
    #define nil ((void*)0)
    #define nelem(x) (sizeof(x)/sizeof((x)[0]))
    
    typedef uint32_t uint32;
    typedef uint64_t uint64;
    typedef uintptr_t uintptr;
    
    /*
     * The beginning of the per-goroutine structure,
     * as defined in ../pkg/runtime/runtime.h.
     * Just enough to edit these two fields.
     */
    typedef struct G G;
    struct G
    {
    	uintptr stacklo;
    	uintptr stackhi;
    };
    
    /*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:50:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/KotlinTypeStringTest.kt

    package org.gradle.kotlin.dsl.accessors
    
    import org.gradle.api.reflect.TypeOf.typeOf
    
    import org.gradle.kotlin.dsl.typeOf
    
    import org.hamcrest.CoreMatchers.equalTo
    import org.hamcrest.MatcherAssert.assertThat
    import org.junit.Test
    
    
    class KotlinTypeStringTest {
    
        @Test
        fun `#kotlinTypeStringFor array type`() {
            assertThat(
                kotlinTypeStringFor(typeOf<Array<String>>()),
                equalTo("Array<String>")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2K bytes
    - Viewed (0)
  10. src/internal/fmtsort/sort_test.go

    )
    
    var compareTests = [][]reflect.Value{
    	ct(reflect.TypeOf(int(0)), -1, 0, 1),
    	ct(reflect.TypeOf(int8(0)), -1, 0, 1),
    	ct(reflect.TypeOf(int16(0)), -1, 0, 1),
    	ct(reflect.TypeOf(int32(0)), -1, 0, 1),
    	ct(reflect.TypeOf(int64(0)), -1, 0, 1),
    	ct(reflect.TypeOf(uint(0)), 0, 1, 5),
    	ct(reflect.TypeOf(uint8(0)), 0, 1, 5),
    	ct(reflect.TypeOf(uint16(0)), 0, 1, 5),
    	ct(reflect.TypeOf(uint32(0)), 0, 1, 5),
    	ct(reflect.TypeOf(uint64(0)), 0, 1, 5),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top