Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for leaveDynamicCall (0.3 sec)

  1. subprojects/core/src/main/java/org/gradle/configuration/internal/DynamicCallContextTracker.java

     * which is triggered by {@code enterDynamicCall} and {@code leaveDynamicCall}.
     * <p>
     * An entry point is a boundary between non-dynamic code and a dynamic lookup. For example,
     * one such boundary is {@code Project.hasProperty}. The object used for entry point is checked
     * for equality with the argument passed to {@code leaveDynamicCall}.
     * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 06:02:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultDynamicCallProblemReportingTest.kt

            assertTrue(reporting.unreportedProblemInCurrentCall(key2))
            assertFalse(reporting.unreportedProblemInCurrentCall(key1))
            assertFalse(reporting.unreportedProblemInCurrentCall(key2))
    
            reporting.leaveDynamicCall(entryPoint2)
            assertFalse(reporting.unreportedProblemInCurrentCall(key1))
            assertFalse(reporting.unreportedProblemInCurrentCall(key2))
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DynamicCallProblemReporting.kt

         * The [entryPoint] is stored and checked in [leaveDynamicCall] later.
         */
        fun enterDynamicCall(entryPoint: Any)
    
        /**
         * End tracking a dynamic call.
         * The [entryPoint] should match the one passed to [enterDynamicCall].
         */
        fun leaveDynamicCall(entryPoint: Any)
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/TrackingDynamicLookupRoutineTest.kt

                val routine = TrackingDynamicLookupRoutine(tracker)
                action(routine)
                verify(tracker, times(1)).enterDynamicCall(receiver)
                verify(tracker, times(1)).leaveDynamicCall(receiver)
            }
    
            shouldTrackContext { property(receiver, "test") }
            shouldTrackContext { findProperty(receiver, "test") }
            shouldTrackContext { setProperty(receiver, "test", "test") }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/TrackingDynamicLookupRoutine.kt

            try {
                dynamicCallContextTracker.enterDynamicCall(entryPoint)
                action()
            } finally {
                dynamicCallContextTracker.leaveDynamicCall(entryPoint)
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/DefaultBuildModelControllerServices.kt

                DefaultDynamicCallProblemReporting().also { reporting ->
                    dynamicCallContextTracker.onEnter(reporting::enterDynamicCall)
                    dynamicCallContextTracker.onLeave(reporting::leaveDynamicCall)
                }
    
            @Provides
            fun createDynamicLookupRoutine(
                dynamicCallContextTracker: DynamicCallContextTracker,
                buildModelParameters: BuildModelParameters
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ProblemReportingCrossProjectModelAccess.kt

                        return delegateResult.value
                    }
                    throw delegateBean.resultNotFoundExceptionProvider()
                } finally {
                    dynamicCallProblemReporting.leaveDynamicCall(delegateBean)
                }
            }
    
            private
            fun withDelegateDynamicCallReportingConfigurationOrder(
                accessRef: String,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top