Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for dispatch (0.23 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSmartcastProvider.kt

            return listOfNotNull(
                smartCastedImplicitReceiver(firQualifiedExpression, KtImplicitReceiverSmartCastKind.DISPATCH),
                smartCastedImplicitReceiver(firQualifiedExpression, KtImplicitReceiverSmartCastKind.EXTENSION),
            )
        }
    
        private fun smartCastedImplicitReceiver(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Sep 14 10:03:02 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                }
    
                /**
                 * Returns correct importable name for implicitly dispatched callable - that is, a callable
                 * which has a dispatch receiver, but whose dispatch receiver is present implicitly. The most
                 * important case for that is the following:
                 *
                 * ```kt
                 * import MyObject.bar
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 24.2K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SmartCastProvider.kt

            return listOfNotNull(
                smartCastedImplicitReceiver(smartCasts.receiverTypes[resolvedCall.dispatchReceiver], KtImplicitReceiverSmartCastKind.DISPATCH),
                smartCastedImplicitReceiver(smartCasts.receiverTypes[resolvedCall.extensionReceiver], KtImplicitReceiverSmartCastKind.EXTENSION)
            )
        }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Aug 15 21:46:11 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

            if (targetDescriptor.isSynthesizedPropertyFromJavaAccessors()) {
                // FE1.0 represents synthesized properties as an extension property of the Java class. Hence we use the extension receiver as
                // the dispatch receiver and always pass null for extension receiver (because in Java there is no way to specify an extension
                // receiver)
                return KtPartiallyAppliedSymbol(
                    signature,
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Apr 29 12:48:54 GMT 2024
    - 34.8K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirUtils.kt

        token = token
    )
    
    /**
     * Implicit dispatch receiver is present when an extension function declared in object
     * is imported somewhere else and used without directly referencing the object instance
     * itself:
     *
     * ```kt
     * import Foo.bar
     *
     * object Foo { fun String.bar() {} }
     *
     * fun usage() {
     *   "hello".bar() // this call has implicit 'Foo' dispatch receiver
     * }
     * ```
     */
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

                when (explicitReceiverKind) {
                    ExplicitReceiverKind.DISPATCH_RECEIVER -> {
                        checkWithAttachment(
                            dispatchReceiver != null,
                            { "Dispatch receiver must be not null if explicitReceiverKind is DISPATCH_RECEIVER" }
                        ) {
                            withPsiEntry("explicitReceiverPsi", explicitReceiverPsi)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 70.8K bytes
    - Viewed (1)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            // accessing the `super` property on `this`, hence this weird looking if condition. In addition, the current class type is available
            // from the dispatch receiver `this`.
            if (expression is KtLabelReferenceExpression && fir is FirPropertyAccessExpression && fir.calleeReference is FirSuperReference) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
  8. ChangeLog.md

    - [`KT-58883`](https://youtrack.jetbrains.com/issue/KT-58883) K2: False negative type mismatch for generic annotation in collection literal
    - [`KT-59581`](https://youtrack.jetbrains.com/issue/KT-59581) K2: Initializer type mismatch: expected Array<KClass<*>>, actual Array<KClass<out Serializable>> in annotation parameter default value using array literal
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Dec 21 17:48:12 GMT 2023
    - 268.7K bytes
    - Viewed (1)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

            )
        }
        add(FirErrors.THROWABLE_TYPE_MISMATCH) { firDiagnostic ->
            ThrowableTypeMismatchImpl(
                firSymbolBuilder.typeBuilder.buildKtType(firDiagnostic.a),
                firDiagnostic.b,
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.CONDITION_TYPE_MISMATCH) { firDiagnostic ->
            ConditionTypeMismatchImpl(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Apr 24 09:49:26 GMT 2024
    - 208.3K bytes
    - Viewed (0)
Back to top