- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for foo (0.13 sec)
-
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) -
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) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSmartcastProvider.kt
if (parent is KtParenthesizedExpression) return false // expressions like `|foo.bar()|` or `|foo?.baz()|` are ignored if (this is KtQualifiedExpression && selectorExpression is KtCallExpression) return false // expressions like `foo.|bar|` or `foo?.|baz|` are ignored if (this is KtNameReferenceExpression && getQualifiedExpressionForSelector() != null) return false
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) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt
return call.toPropertyRead(context)?.let { createCallInfo(context, element, it, listOf(call)) } } /** * Handles call expressions like `Foo<Bar>` or `test.Foo<Bar>` in calls like `Foo<Bar>::foo` and `test.Foo<Bar>::foo`. * * ATM does not perform any resolve checks, since it does not seem possible with [BindingContext], so it might give some * false positives. */
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Thu Mar 14 06:10:31 GMT 2024 - 36.4K bytes - Viewed (0) -
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) -
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) -
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) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt
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) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt
val expectedKind = expectedType.toConstantValueKind() // Note that the resolved type for the const expression is not always matched with the const kind. For example, // fun foo(x: Int) { // when (x) { // -2_147_483_628 -> ... // } } // That constant is encoded as `unaryMinus` call with the const 2147483628 of long type, while the resolved type is Int.
Plain Text - Registered: Fri Apr 26 08:18:10 GMT 2024 - Last Modified: Wed Mar 20 14:53:27 GMT 2024 - 16.5K bytes - Viewed (0) -
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)