Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for Content (0.21 sec)

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

            val call = element.getResolvedCall(context) ?: return null
            return call.toPropertyRead(context)?.let { createCallInfo(context, element, it, listOf(call)) }
        }
    
        private fun ResolvedCall<*>.toPropertyRead(context: BindingContext): KtVariableAccessCall? {
            val partiallyAppliedSymbol = toPartiallyAppliedVariableSymbol(context) ?: return null
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

        val context = (useSitePosition as? KtLightElement<*, *>)?.kotlinOrigin ?: useSitePosition
        // Local type is available if it's inside the same context (containing declaration)
        // or containing declaration is inside the local type, e.g., a member of the local class
        return localPsi == context ||
                localPsi.parents.any { it == context } ||
                context.parents.any { it == localPsi }
    }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 12 13:29:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/types/KtFe10FunctionalType.kt

        override val contextReceivers: List<KtContextReceiver>
            get() = withValidityAssertion {
                fe10Type.getContextReceiverTypesFromFunctionType().map { receiverType ->
                    // Context receivers in function types may not have labels, hence the `null` label.
                    KtContextReceiverImpl(
                        receiverType.toKtType(analysisContext),
                        label = null,
    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)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionInfoProvider.kt

         * [isUsed] and [doesParentUseChild] are defined in mutual recursion,
         * climbing up the syntax tree, passing control back and forth between the
         * two.
         *
         * Whether an expression is used is defined by the context in which it
         * appears. E.g. a "statement" in a block is considered used if it is the
         * last expression in that block AND the block itself is used -- a
         * recursive call to `isUsed`, one level higher in the syntax tree.
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

            val sessionHolder = SessionHolderImpl(fileSession, fileSession.getScopeSession())
    
            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() }
        }
    
    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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirScopeProvider.kt

            val context = ContextCollector.process(
                fakeFile.getOrBuildFirFile(firResolveSession),
                SessionHolderImpl(analysisSession.useSiteSession, getScopeSession()),
                correctedPosition,
            )
    
            val towerDataContext =
                context?.towerDataContext
                    ?: errorWithAttachment("Cannot find context for ${positionInFakeFile::class}") {
    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)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescValueParameterSymbol.kt

                        descriptor.source.getPsi() == null &&
                        // But, that could be the case for a declaration from Library. Double-check the slice in the binding context
                        (descriptor.containingDeclaration.source.getPsi() as? KtFunctionLiteral)?.let { parentLambda ->
                            analysisContext.analyze(parentLambda).get(BindingContext.AUTO_CREATED_IT, descriptor) != null
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:46 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

                    // The main file needs to be the last so caches for the context declarations are populated in FIR-to-IR.
                    remove(file)
                }
    
                addAll(dependencyFiles)
                add(file)
            }
    
            // Files in the code fragment context module are compiled together with the code fragment itself.
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 32.2K bytes
    - Viewed (1)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         * @param fullFqName the whole fully qualified name of the KDoc
         * @param contextElement the context element in which the KDoc is defined
         *
         * @return the collection of KtSymbol(s) resolved from the fully qualified name
         *         based on the selected FqName and context element
         */
        internal fun resolveKdocFqName(
            analysisSession: KtAnalysisSession,
            selectedFqName: FqName,
    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)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

                    filter = { ContextCollector.FilterResponse.CONTINUE }
                )
    
                return FirTowerDataContextProvider(contextProvider)
            }
        }
    
        fun getClosestAvailableParentContext(ktElement: KtElement): FirTowerDataContext? {
            for (parent in ktElement.parentsWithSelf) {
    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)
Back to top