- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for leaveDynamicCall (0.24 sec)
-
subprojects/core/src/test/groovy/org/gradle/configuration/internal/DefaultDynamicCallContextTrackerTest.groovy
tracker.leaveDynamicCall(entryPoint2) tracker.leaveDynamicCall(entryPoint1) then: log == ["enter", entryPoint1, "enter", entryPoint2, "leave", entryPoint2, "leave", entryPoint1] } def "throws exception on mismatched calls"() { when: tracker.enterDynamicCall(new Object()) tracker.leaveDynamicCall(new Object()) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 14 11:11:17 UTC 2022 - 2.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
subprojects/core/src/main/java/org/gradle/configuration/internal/DefaultDynamicCallContextTracker.java
currentEntryPointStack().push(entryPoint); enterListeners.forEach(listener -> listener.accept(entryPoint)); } @Override public void leaveDynamicCall(@Nonnull Object entryPoint) { Stack<Object> entryPointsStack = currentEntryPointStack(); Object top = entryPointsStack.peek(); if (top != entryPoint) { throw new IllegalStateException(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 15 22:59:41 UTC 2022 - 2.3K bytes - Viewed (0) -
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) -
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) -
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)