Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 822 for receivers (0.66 sec)

  1. src/internal/types/testdata/check/decls2/decls2a.go

    type T5 interface {
    	m() int
    }
    
    func (T5 /* ERROR "invalid receiver" */ ) m1() {}
    func (T5 /* ERROR "invalid receiver" */ ) m2() {}
    
    // Methods associated with a named pointer type.
    type ptr *int
    func (ptr /* ERROR "invalid receiver" */ ) _() {}
    func (* /* ERROR "invalid receiver" */ ptr) _() {}
    
    // Methods with zero or multiple receivers.
    func ( /* ERROR "method has no receiver" */ ) _() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/transformation/OriginReplacement.kt

                is ObjectOrigin.ConfiguringLambdaReceiver -> origin.copy(receiver = replace(origin.receiver), parameterBindings = replaceInArgs(origin.parameterBindings))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. analysis/analysis-api/build.gradle.kts

        explicitApi()
    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
    }
    
    testsJar()
    
    projectTest {
        workingDir = rootDir
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/base/KtContextReceiver.kt

    /**
     * A context receiver of function/property type which are directly specified in the code
     *
     * E.g, for the following code
     * ```
     * context(a@Int)
     * fun foo(){}
     * ```
     *
     * the context receiver is `KaContextReceiver(type=KtClassType(Int), label="a")`
     */
    public abstract class KaContextReceiver : KaLifetimeOwner {
        /**
         * Type of the context receiver
         *
         * @see KaContextReceiver
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/pointers/FirCallableSignature.kt

            if (receiverType != declaration.receiverParameter?.typeRef?.renderType()) return false
    
            val receivers = declaration.contextReceivers
            for ((index, parameter) in contextReceiverTypes.withIndex()) {
                if (receivers[index].typeRef.renderType() != parameter) return false
            }
    
            if (declaration is FirFunction) {
                requireNotNull(parameters)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 16:54:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCall.kt

        override val token: KaLifetimeToken get() = backingPartiallyAppliedSymbol.token
    
        /**
         * The function and receivers for this call.
         */
        override val partiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaFunctionLikeSymbol> get() = withValidityAssertion { backingPartiallyAppliedSymbol }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/build.gradle.kts

                    "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction",
                )
            )
            freeCompilerArgs.add("-Xcontext-receivers")
        }
    }
    
    
    projectTest(jUnitMode = JUnitMode.JUnit5) {
        dependsOn(":dist")
        workingDir = rootDir
        useJUnitPlatform()
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/build.gradle.kts

    }
    
    sourceSets {
        "main" { projectDefault() }
        "test" { projectDefault() }
    }
    
    tasks.withType<KotlinJvmCompile>().configureEach {
        compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
        compilerOptions.optIn.add("org.jetbrains.kotlin.analysis.api.KaAnalysisApiInternals")
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:22:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaPartiallyAppliedSymbol.kt

        /**
         * The dispatch receiver for this symbol access. Dispatch receiver is available if the symbol is declared inside a class or object.
         */
        public val dispatchReceiver: KaReceiverValue? by validityAsserted(dispatchReceiver)
    
        /**
         * The extension receiver for this symbol access. Extension receiver is available if the symbol is declared with an extension receiver.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10VisibilityChecker.kt

    import org.jetbrains.kotlin.resolve.descriptorUtil.isExtension
    import org.jetbrains.kotlin.resolve.descriptorUtil.isPublishedApi
    import org.jetbrains.kotlin.resolve.scopes.receivers.ExpressionReceiver
    import org.jetbrains.kotlin.resolve.scopes.utils.getImplicitReceiversHierarchy
    
    internal class KaFe10VisibilityChecker(
        override val analysisSession: KaFe10Session
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top