Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 882 for CLOSURE (0.18 sec)

  1. 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)
  2. test/closure.go

    Dmitriy Vyukov <******@****.***> 1341165590 +0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jul 01 17:59:50 UTC 2012
    - 1.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/rules/ClosureBackedRuleActionTest.groovy

        }
    
        def "fails to construct with multiple arg closure with incorrect subject"() {
            given:
            def closure = { Integer val, String other ->
            }
    
            when:
            action(closure)
    
            then:
            def e = thrown RuleActionValidationException
            e.message == "First parameter of rule action closure must be of type 'String'."
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/ClosureBackedActionTest.groovy

            def e = thrown InvalidActionClosureException
            e.closure.is(closure)
            e.message == "The closure '${closure.toString()}' is not valid as an action for argument '1'. It should accept no parameters, or one compatible with type 'java.lang.String'. It accepts (java.util.Map)."
        }
    
        def "closure with more than one param type is given"() {
            given:
            def closure = { Map m, List l -> }
            def arg = "1"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:06 UTC 2021
    - 2.8K bytes
    - Viewed (0)
Back to top