Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for foo (0.12 sec)

  1. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * Relies on the fact that in such references only the last qualifier refers to the
         * actual extension callable, and the part before that refers to the receiver type (either fully
         * or partially qualified).
         *
         * For example, `foo.Foo.bar` may only refer to the extension callable `bar` with
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

         *
         * Examples of calls:
         *
         * - `|foo.Bar<...>|` - true
         * - `foo.|Bar|<...>` - true
         * - `foo.|B|ar<...>` - true
         * - `|foo|.Bar<...>` - false
         * - `foo.Bar|<...>|` - false
         */
        private val KtUserType.inSelection: Boolean
            get() {
    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/components/KtFirCompletionCandidateChecker.kt

                }
            }
        }
    
        /**
         * Returns a [FirExpression] matching the given PSI [receiverExpression].
         *
         * @param receiverExpression a qualified expression receiver (e.g., `foo` in `foo?.bar()`, or in `foo.bar`).
         *
         * The function unwraps certain receiver expressions. For instance, for safe calls direct counterpart to a [KtSafeQualifiedExpression]
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

            val referencedSymbolsByFir = listOfNotNull(symbolBuilder.buildSymbol(referencedSymbol))
            val fullQualifiedAccess = when (val psi = fir.source.psi) {
                // for cases like `Foo.Bar()`, where `Foo.Bar` is an object, and `Foo.Bar()` is a call to `invoke` operator
                is KtSimpleNameExpression -> psi.getQualifiedElement()
                else -> psi
            }
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirUtils.kt

     * 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
     * }
     * ```
     */
    internal val FirResolvedQualifier.isImplicitDispatchReceiver: Boolean
    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

        private fun inapplicableCandidateDiagnostic() = KtNonBoundToPsiErrorDiagnostic(null, "Inapplicable candidate", token)
    
        /**
         * Resolves call expressions like `Foo<Bar>` or `test.Foo<Bar>` in calls like `Foo<Bar>::foo`, `test.Foo<Bar>::foo` and class literals like `Foo<Bar>`::class.java.
         *
         * We have a separate [KtGenericTypeQualifier] type of [KtCall].
         */
    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/components/KtFirDataFlowInfoProvider.kt

            if (!PsiTreeUtil.isAncestor(defaultStatementFromFir, defaultStatement, false)) {
                // In certain cases, expressions might be different in PSI and FIR sources.
                // E.g., in 'foo.<expr>bar()</expr>', there is no FIR expression that corresponds to the 'bar()' KtCallExpression.
                return null
            }
    
            return firDefaultStatement.resolvedType
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 16 06:40:43 GMT 2024
    - 22.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

    /**
     * Returns `true` if [this] expression is fully-qualified with package name.
     * Such expressions definitely do not need any kind of imports.
     *
     * Examples:
     * - `pkg.foo()` - `true`
     * - `foo()` - `false`
     * - `Obj.foo()` - `false`
     * - `pkg.Obj.foo()` - `false`
     */
    private val FirQualifiedAccessExpression.isQualifiedWithPackage: Boolean
        get() {
            val receiver = explicitReceiver
    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)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

     *
     * Named functions do not consider their bodies used if
     *  - the function body is a block e.g., `fun foo(): Int { return bar }` or
     *  - the function itself returns Unit
     */
    private fun doesNamedFunctionUseBody(namedFunction: KtNamedFunction, body: PsiElement): Boolean = when {
        // The body is a block expression e.g., fun foo(): Int { return bar }
        namedFunction.bodyBlockExpression == body ->
            false
    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)
  10. ChangeLog.md

    - [`KT-61924`](https://youtrack.jetbrains.com/issue/KT-61924) Native: problem with abstract fake override from Any
    - [`KT-61933`](https://youtrack.jetbrains.com/issue/KT-61933) K2: "`Argument type mismatch: actual type is 'Foo<kotlin/Function0<kotlin/Unit>>' but 'Foo<kotlin/coroutines/SuspendFunction0<kotlin/Unit>>' was expected`"
    - [`KT-59471`](https://youtrack.jetbrains.com/issue/KT-59471) K2: build multiplatform-settings
    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