Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for element (0.19 sec)

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

    import org.jetbrains.kotlin.kdoc.psi.impl.KDocName
    
    internal class KtFirKDocReference(element: KDocName) : KDocReference(element), KtFirReference {
        override fun KtAnalysisSession.resolveToSymbols(): Collection<KtSymbol> {
            val fullFqName = generateSequence(element) { it.parent as? KDocName }.last().getQualifiedNameAsFqName()
            val selectedFqName = element.getQualifiedNameAsFqName()
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

                collector.typesToShorten.distinctBy { it.element }.map { TypeToShortenInfo(it.element.createSmartPointer(), it.shortenedRef) },
                collector.qualifiersToShorten.distinctBy { it.element }.map { QualifierToShortenInfo(it.element.createSmartPointer(), it.shortenedRef) },
                collector.labelsToShorten.distinctBy { it.element }.map { ThisLabelToShortenInfo(it.element.createSmartPointer()) },
    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/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)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

        if (analysisContext.builtIns.areSameArrayTypeIgnoringProjections(containingArrayType, constantType)) {
            // If an element in the array has the same type as the containing array, it's a spread component that needs
            // to be expanded here. (It should have the array element type instead.)
            (constantValue as ArrayValue).value.expandArrayAnnotationValue(containingArrayType, analysisContext)
        } else {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Apr 25 07:15:56 GMT 2024
    - 33.2K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                return mapping[fir]?.getOrNull()
            }
    
            override fun visitElement(element: FirElement) {
                withElement(element) {
                    if (element in statements) {
                        // The leaf is in mapping, but its value is still 'null'
                        mapping.computeIfAbsent(element) { _ ->
                            unmappedCount -= 1
    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)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCompilerFacility.kt

        override fun visitErrorElement(element: PsiErrorElement) {
            collectedDiagnostics += ConeSyntaxDiagnostic(element.errorDescription)
                .toFirDiagnostics(useSiteSession, KtRealPsiSourceElement(element), callOrAssignmentSource = null)
                .map { diagnosticConverter(it as KtPsiDiagnostic) }
    
            super.visitErrorElement(element)
        }
    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)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirCallResolver.kt

        }
    
        private inline fun <R> wrapError(element: KtElement, action: () -> R): R {
            return try {
                action()
            } catch (e: Exception) {
                rethrowExceptionWithDetails(
                    "Error during resolving call ${element::class}",
                    exception = e,
                ) {
                    withPsiEntry("psi", element, analysisSession::getModule)
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                if (parent.referenceExpression !== this) return true
                parent = parent.parent
            }
            return false
        }
    
        internal fun adjustResolutionExpression(expression: KtElement): KtElement {
            // If we are at a super-type constructor call, adjust the resolution expression so that we
            // get the constructor instead of the class.
            //
            // For the example:
            //
    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)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

            )
        }
    
        private fun handleAsFunctionCall(context: BindingContext, element: KtElement): KtCallInfo? {
            return element.getResolvedCall(context)?.let { handleAsFunctionCall(context, element, it) }
        }
    
        private fun handleAsFunctionCall(
            context: BindingContext,
            element: KtElement,
            resolvedCall: ResolvedCall<*>,
            diagnostics: Diagnostics = context.diagnostics
    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)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                }
            })
    
            file.accept(object : KtTreeVisitorVoid() {
                override fun visitElement(element: PsiElement) {
                    super.visitElement(element)
                    if (element is KDocLink) {
                        visitKDocLink(element)
                    }
                }
    
                private fun visitKDocLink(docLink: KDocLink) {
    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)
Back to top