- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 794 for CLOSURE (0.19 sec)
-
src/cmd/compile/internal/walk/closure.go
base.WarnfAt(clo.Pos(), "closure converted to global") } return clofn.Nname } // The closure is not trivial or directly called, so it's going to stay a closure. ir.ClosureDebugRuntimeCheck(clo) clofn.SetNeedctxt(true) // The closure expression may be walked more than once if it appeared in composite // literal initialization (e.g, see issue #49029). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 15:56:08 UTC 2023 - 6.5K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/kotlinDsl/interoperability-delegate-closure-of/tests/delegate-closure-of.sample.conf
Laura Kassovic <******@****.***> 1701107622 -0800
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 133 bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/util/internal/ClosureBackedAction.java
private final Closure closure; private final int resolveStrategy; private final boolean configurableAware; public static <T> ClosureBackedAction<T> of(Closure<?> closure) { return new ClosureBackedAction<T>(closure); } public ClosureBackedAction(Closure closure) { this(closure, Closure.DELEGATE_FIRST, true); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 3.9K bytes - Viewed (0) -
testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt
Method <org.gradle.api.Project.allprojects(groovy.lang.Closure)> has arguments/return type groovy.lang.Closure that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (Project.java:0)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 12:21:31 UTC 2024 - 91.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/rules/ClosureBackedRuleAction.java
this.closure = closure; this.inputTypes = parseInputTypes(closure); } @Override public List<Class<?>> getInputTypes() { return inputTypes; } @Override public void execute(T subject, List<?> inputs) { Closure<?> copy = (Closure<?>) closure.clone(); copy.setResolveStrategy(Closure.DELEGATE_FIRST); copy.setDelegate(subject);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.6K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/kotlinDsl/interoperability-kotlinClosure/kotlin/build.gradle.kts
import groovy.lang.Closure fun somePlugin(action: SomePluginExtension.() -> Unit) = SomePluginExtension.action() object SomePluginExtension { fun takingParameterLessClosure(closure: Closure<*>) = require(closure.call() == "result") { "parameter-less closure" } fun takingUnaryClosure(closure: Closure<*>) = require(closure.call("foo") == "result from single parameter foo") { "unary closure" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 1K bytes - Viewed (0) -
testing/internal-testing/src/test/groovy/org/gradle/testing/internal/util/RetryUtilTest.groovy
def "throwing Exception will count as an try"() { given: def closure = Mock(Closure) def retryCount = 1 when: RetryUtil.retry(retryCount, closure) then: thrown(Exception) retryCount * closure.call() >> { throw new Exception() } } def "closure succeed on second try returns retry count of 2"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/declarations/GroovyFileInterceptors.java
public static void intercept_eachByte( @Receiver File self, Closure<?> closure, @CallerClassName String consumer ) throws IOException { Instrumented.fileOpened(self, consumer); ResourceGroovyMethods.eachByte(self, closure); } @InterceptGroovyCalls @InstanceMethod @WithExtensionReferences(toClass = ResourceGroovyMethods.class)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 24 15:57:56 UTC 2023 - 16.8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/util/internal/ConfigureUtil.java
return; } // Hackery to make closure execution faster, by short-circuiting the expensive property and method lookup on Closure Closure withNewOwner = configureClosure.rehydrate(target, closureDelegate, configureClosure.getThisObject()); new ClosureBackedAction<T>(withNewOwner, Closure.OWNER_ONLY, false).execute(target);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 17:40:52 UTC 2024 - 6.6K bytes - Viewed (0)