Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for symbol (0.23 sec)

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

            patchIfNeeded(expression.symbol) { expression.symbol = it }
            super.visitClassReference(expression)
        }
    
        @OptIn(UnsafeDuringIrConstructionAPI::class)
        private inline fun <reified T : IrSymbol> patchIfNeeded(irSymbol: T?, patcher: (T) -> Unit) {
            if (irSymbol != null) {
                val irDeclaration = irSymbol.owner as? IrMetadataSourceOwner ?: return
    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)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

         *
         * @param symbol The KtSymbol whose parent symbol needs to be found.
         * @param goBackSteps The number of steps to go back up the symbol hierarchy.
         * @param selectedFqName The fully qualified name of the selected package.
         * @return The [goBackSteps]-th parent [KtSymbol]
         */
    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)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSymbolContainingDeclarationProvider.kt

            val platform = getContainingModule(symbol).platform
            if (!platform.has<JvmPlatform>()) return null
    
            val containingSymbolOrSelf = when (symbol) {
                is KtValueParameterSymbol -> {
                    getContainingDeclaration(symbol) as? KtFunctionLikeSymbol ?: symbol
                }
                is KtPropertyAccessorSymbol -> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 19 11:06:47 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CallResolver.kt

                }
            }
    
        private val KtFunctionCall<*>.descriptor: DeclarationDescriptor?
            get() = when (val symbol = symbol) {
                is KtFe10PsiSymbol<*, *> -> symbol.descriptor
                is KtFe10DescSymbol<*> -> symbol.descriptor
                else -> null
            }
    
        private fun KtCallInfo?.toKtCallCandidateInfos(): List<KtCallCandidateInfo> {
            return when (this) {
    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)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KtFirKDocReference.kt

            referenceTargetSymbols: Collection<KtSymbol>,
        ): Collection<PsiElement> = with(analysisSession) {
            referenceTargetSymbols.flatMap { symbol ->
                when (symbol) {
                    is KtFirSyntheticJavaPropertySymbol -> listOfNotNull(symbol.javaGetterSymbol.psi, symbol.javaSetterSymbol?.psi)
                    is KtFirSymbol<*> -> getPsiDeclarations(symbol)
                    else -> listOfNotNull(symbol.psi)
    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)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

        }
    
        private inline fun <reified T : DeclarationDescriptor> getDescriptor(symbol: KtSymbol): T? {
            return when (symbol) {
                is KtFe10DescSymbol<*> -> symbol.descriptor as? T
                is KtFe10PsiSymbol<*, *> -> symbol.descriptor as? T
                else -> {
                    require(symbol is KtFe10Symbol) { "Unrecognized symbol implementation found" }
                    null
                }
            }
        }
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                (diagnostic as? ConeUnmatchedTypeArgumentsError)?.symbol?.fir?.buildSymbol(symbolBuilder)
            }
        }
    
        private fun ConeKotlinType.toTargetSymbol(session: FirSession, symbolBuilder: KtSymbolByFirBuilder): KtSymbol? {
            val type = this as? ConeLookupTagBasedType
            val resolvedSymbol = type?.lookupTag?.toSymbol(session) as? FirBasedSymbol<*>
    
            val symbol = resolvedSymbol ?: run {
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirImportOptimizer.kt

                    }
                }
    
                private fun toImportableFqNames(symbol: KtSymbol, qualifiedNameAsFqName: FqName): List<FqName> =
                    buildList {
                        when (symbol) {
                            is KtCallableSymbol -> {
                                val callableId = symbol.callableIdIfNonLocal ?: return emptyList()
                                val fqName = callableId.asSingleFqName()
    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/scopes/DeclarationsInPackageProvider.kt

     *
     * However, since symbol names providers may not be able to compute name sets per their contract, we may have to fall back to the
     * [declaration provider][org.jetbrains.kotlin.analysis.providers.KotlinDeclarationProvider].
     *
     * Since this fallback is not suitable for symbols from binary libraries in Standalone mode, the symbol names provider absolutely needs to
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 23 10:55:55 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceShortener.kt

    /**
     * How a symbol is imported. The order of the enum entry represents the priority of imports. If a symbol is available from multiple kinds of
     * imports, the symbol from "smaller" kind is used. For example, an explicitly imported symbol can overwrite a star-imported symbol.
     */
    private enum class ImportKind {
    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