Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Label (0.14 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionInfoProvider.kt

                ?: return returnExpression.parentOfType<KtNamedFunction>()
                    ?.let { with(analysisSession) { it.getSymbol() as? KtCallableSymbol } }
            val labelTarget = bindingContext[BindingContext.LABEL_TARGET, targetLabel] as? KtDeclaration ?: return null
            return with(analysisSession) { labelTarget.getSymbol() as? KtCallableSymbol }
        }
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Wed Oct 05 15:06:52 GMT 2022
    - 2.4K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

        }
    
        /**
         * Checks whether `this` expression references the closest receiver in the current position.
         *
         * If it is the case, then we can safely remove the label from it (if it exists).
         */
        private fun FirThisReference.referencesClosestReceiver(): Boolean {
            require(!isImplicit) {
                "It doesn't make sense to handle implicit this references"
            }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:51:33 GMT 2024
    - 69.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            fir: FirResolvable,
            expression: KtSimpleNameExpression,
            session: FirSession,
            symbolBuilder: KtSymbolByFirBuilder
        ): Collection<KtSymbol> {
            // If the cursor position is on the label of `super`, we want to resolve to the current class. FIR represents `super` as
            // accessing the `super` property on `this`, hence this weird looking if condition. In addition, the current class type is available
    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)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/types/KtFe10FunctionalType.kt

                    // Context receivers in function types may not have labels, hence the `null` label.
                    KtContextReceiverImpl(
                        receiverType.toKtType(analysisContext),
                        label = null,
                        analysisContext.token,
                    )
                }
            }
    
        override val hasReceiver: Boolean
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/diagnostics/KtFirDataClassConverters.kt

            BreakOrContinueOutsideALoopImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.NOT_A_LOOP_LABEL) { firDiagnostic ->
            NotALoopLabelImpl(
                firDiagnostic as KtPsiDiagnostic,
                token,
            )
        }
        add(FirErrors.BREAK_OR_CONTINUE_JUMPS_ACROSS_FUNCTION_BOUNDARY) { firDiagnostic ->
    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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

                // - The "reference" in a constructor call. E.g. `C` in `C()`
                is KtConstructorCalleeExpression ->
                    false
    
                // - Labels themselves: `@label` in return`@label` or `label@`while...
                is KtLabelReferenceExpression ->
                    false
    
                // - The operation symbol itself in binary and unary operations: `!!`, `+`...
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Feb 12 20:38:23 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  7. ChangeLog.md

    - [`KT-55666`](https://youtrack.jetbrains.com/issue/KT-55666) K2: label on local function is rejected: "Target label does not denote a function"
    - [`KT-56283`](https://youtrack.jetbrains.com/issue/KT-56283) False-positive INVISIBLE_MEMBER on overridden member of more specific type after smart cast
    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)
Back to top