Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 212 for TLambda (0.11 sec)

  1. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
         * One thing to *avoid* is a change to make each Logger user use memoizingSupplier directly:
         * That may introduce an extra class for each lambda (currently a dozen).
         */
        Logger local = logger;
        if (local != null) {
          return local;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/classpath/transforms/LambdaSerializationTransformer.java

                        // In theory, it is possible to have a lambda so big, its handling won't fit in a single method, and such a lambda will cause an infinite loop here.
                        // However, the number of captured lambda variables is limited by the max number of method arguments allowed by the JVM.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 04 14:26:38 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/TreatInterfaceAsConfigureLambdaTest.kt

            f(valueCaptor1.lambda as MyFunctionalInterface<String>)
            assertEquals("test", valueCaptor1.value)
    
            val valueCaptor2 = customConfigureLambdas.produceValueCaptor(typeOf<MyFunctionalInterface<*>>())
            f(valueCaptor2.lambda as MyFunctionalInterface<String>)
            assertEquals("test", valueCaptor2.value)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/TreeTraverser.java

     *
     * <p>Null nodes are strictly forbidden.
     *
     * <p>Because this is an abstract class, not an interface, you can't use a lambda expression to
     * implement it:
     *
     * <pre>{@code
     * // won't work
     * TreeTraverser<NodeType> traverser = node -> node.getChildNodes();
     * }</pre>
     *
     * Instead, you can pass a lambda expression to the {@code using} factory method:
     *
     * <pre>{@code
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/LazyLogger.java

         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
         * One thing to *avoid* is a change to make each Logger user use memoizingSupplier directly:
         * That may introduce an extra class for each lambda (currently a dozen).
         */
        Logger local = logger;
        if (local != null) {
          return local;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/functionParamInBinaryModule3.ir.txt

              x: FUN_EXPR type=kotlin.Function0<@[MyComposable] kotlin.Function0<kotlin.Unit>> origin=LAMBDA
                FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> () returnType:@[MyComposable] kotlin.Function0<kotlin.Unit>
                  annotations:
                    MyComposable
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 22 12:26:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtraPropertiesExtensionsTest.kt

            verify(extra).set("property", 42)
    
            // And to prove the type is inferred correctly
            use(property)
        }
    
        @Test
        fun `can initialize extra property using lambda expression`() {
    
            val extra = mock<ExtraPropertiesExtension> {
                on { get("property") } doReturn 42
            }
    
            val property by extra { 42 }
    
            // property is set eagerly
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/inlineFunctionUsage.ir.txt

                          CONST Int type=kotlin.Int value=4
                          CONST Int type=kotlin.Int value=5
                      predicate: FUN_EXPR type=kotlin.Function1<kotlin.Int, kotlin.Boolean> origin=LAMBDA
                        FUN LOCAL_FUNCTION_FOR_LAMBDA name:<anonymous> visibility:local modality:FINAL <> (it:kotlin.Int) returnType:kotlin.Boolean
                          VALUE_PARAMETER name:it index:0 type:kotlin.Int
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 30 10:27:47 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/base-services/src/main/java/org/gradle/api/HasImplicitReceiver.java

    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Marks a SAM interface as a target for lambda expressions / closures
     * where the single parameter is passed as the implicit receiver of the
     * invocation ({@code this} in Kotlin, {@code delegate} in Groovy) as if
     * the lambda expression was an extension method of the parameter type.
     *
     * <pre>
     *     // copySpec(Action&lt;CopySpec&gt;)
     *     copySpec {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/CustomLambdasTest.kt

    class CustomLambdasTest {
        @Test
        fun `custom lambda interface with no generic`() {
            val o = applyToOuter(
                """
                configureInner {
                    x = 2
                    f()
                    f()
                }
                """.trimIndent()
            )
    
            assertEquals(4, o.inner.x)
        }
    
        @Test
        fun `custom lambda interface with a generic`() {
            val o = applyToOuter(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top