Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for baseScope (0.15 sec)

  1. subprojects/core/src/test/groovy/org/gradle/configuration/DefaultScriptPluginFactoryTest.groovy

            baseScope.getExportClassLoader() >> baseChildClassLoader
            classpathHasher.hash(_ as ClassPath) >> TestHashCodes.hashCodeFrom(123)
        }
    
        void "configures a target object using script"() {
            given:
            final Object target = new Object()
    
            when:
            def configurer = factory.create(scriptSource, scriptHandler, targetScope, baseScope, false)
            configurer.apply(target)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 09 15:05:17 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirCallableFilteringScope.kt

     * condition.
     */
    internal abstract class FirCallableFilteringScope(private val baseScope: FirContainingNamesAwareScope) : FirContainingNamesAwareScope() {
        protected abstract fun isTargetCallable(callable: FirCallableSymbol<*>): Boolean
    
        private val cachedCallableNames by lazy(LazyThreadSafetyMode.NONE) {
            buildSet {
                baseScope.processAllCallables { callable ->
                    if (isTargetCallable(callable)) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Oct 10 13:38:00 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/configuration/DefaultScriptPluginFactory.java

        }
    
        @Override
        public ScriptPlugin create(ScriptSource scriptSource, ScriptHandler scriptHandler, ClassLoaderScope targetScope, ClassLoaderScope baseScope, boolean topLevelScript) {
            return new ScriptPluginImpl(scriptSource, (ScriptHandlerInternal) scriptHandler, targetScope, baseScope, topLevelScript);
        }
    
        private class ScriptPluginImpl implements ScriptPlugin {
            private final ScriptSource scriptSource;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 15:37:32 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/project/ProjectFactoryTest.groovy

            then:
            result == project
            1 * instantiator.newInstance(DefaultProject, "name", null, projectDir, buildFile, { it instanceof TextResourceScriptSource }, gradle, projectState, serviceRegistryFactory, rootProjectScope, baseScope) >> project
            1 * projectRegistry.addProject(project)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 06 10:41:06 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/KtFirJavaSyntheticPropertySymbolPointer.kt

            val baseScope = super.getSearchScope(analysisSession, owner) as? FirTypeScope ?: return null
            return if (isSynthetic) {
                FirSyntheticPropertiesScope.createIfSyntheticNamesProviderIsDefined(
                    session = analysisSession.useSiteSession,
                    dispatchReceiverType = owner.defaultType(),
                    baseScope = baseScope,
                )
            } else {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt

            scriptSource: ScriptSource,
            scriptHandler: ScriptHandler,
            targetScope: ClassLoaderScope,
            baseScope: ClassLoaderScope
        ) =
            KotlinScriptHost(
                target,
                scriptSource,
                scriptHandler,
                targetScope,
                baseScope,
                host.serviceRegistryFor(programTarget, target)
            )
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 26 19:59:56 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/configuration/DefaultInitScriptProcessor.java

        public void process(final ScriptSource initScript, GradleInternal gradle) {
            ClassLoaderScope baseScope = gradle.getClassLoaderScope();
            URI uri = initScript.getResource().getLocation().getURI();
            String id = uri == null ? idGenerator.generateId().toString() : uri.toString();
            ClassLoaderScope scriptScope = baseScope.createChild("init-" + id, null);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 24 13:56:30 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/configuration/ScriptPluginFactorySelectorTest.groovy

        def scriptHandler = Mock(ScriptHandler)
        def targetScope = Mock(ClassLoaderScope)
        def baseScope = Mock(ClassLoaderScope)
    
        def defaultScriptPlugin = Mock(ScriptPlugin)
    
        def setup() {
            _ * defaultScriptPluginFactory.create(*_) >> defaultScriptPlugin
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/configuration/project/BuildScriptProcessorTest.groovy

        def scriptSource = Mock(ScriptSource)
        def configurerFactory = Mock(ScriptPluginFactory)
        def scriptPlugin = Mock(ScriptPlugin)
        def targetScope = Mock(ClassLoaderScope)
        def baseScope = Mock(ClassLoaderScope)
        def projectState = Mock(ProjectState)
        def buildScriptProcessor = new BuildScriptProcessor(configurerFactory)
        def scriptHandler = Mock(ScriptHandlerInternal)
    
        def "setup"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 06 01:39:02 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/KotlinBuildScriptModelBuilder.kt

        target: Any,
        scriptFile: File,
        baseScope: ClassLoaderScope,
        scriptHandlerFactory: ScriptHandlerFactory,
        project: ProjectInternal,
        resourceDescription: String
    ): Pair<ScriptHandlerInternal, ClassPath> {
    
        val scriptSource = textResourceScriptSource(resourceDescription, scriptFile, project.serviceOf())
        val scriptScope = baseScope.createChild("model-${scriptFile.toURI()}", null)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 11:06:08 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top