Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Position (0.46 sec)

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

            val context = ContextCollector.process(firFile, sessionHolder, position)
                ?: errorWithAttachment("Cannot find context for ${position::class}") {
                    withPsiEntry("position", position)
                }
    
            return context.towerDataContext.implicitReceiverStack.map { it.type.asKtType() }
        }
    
        override fun getDirectSuperTypes(type: KtType, shouldApproximate: Boolean): List<KtType> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 20 08:50:04 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

            return element
        }
    
        fun findScopesAtPosition(
            position: KtElement,
            newImports: Sequence<FqName>,
            towerContextProvider: FirTowerDataContextProvider,
            withImplicitReceivers: Boolean = true,
        ): List<FirScope>? {
            val towerDataContext = towerContextProvider.getClosestAvailableParentContext(position) ?: return null
            val nonLocalScopes = towerDataContext.nonLocalTowerDataElements
    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/KtFirScopeProvider.kt

        override fun getScopeContextForPosition(
            originalFile: KtFile,
            positionInFakeFile: KtElement
        ): KtScopeContext {
            val fakeFile = positionInFakeFile.containingKtFile
    
            // If the position is in KDoc, we want to pass the owning declaration to the ContextCollector.
            // That way, the resulting scope will contain all the nested declarations which can be references by KDoc.
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. 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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

                            // `calleeReference.resolvedSymbol` isn't guaranteed to be callable. For example, function type parameters used in
                            // expression positions (e.g. `T` in `println(T)`) are parsed as `KtSimpleNameExpression` and built into
                            // `FirPropertyAccessExpression` (which is `FirResolvable`).
                            is FirCallableSymbol<*> -> {
    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)
Back to top