Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for shouldn (0.23 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineFunctionAnalyzer.kt

    @Suppress("unused")
    fun KtAnalysisSession.getInlineFunctionAnalyzer(analyzeOnlyReifiedInlineFunctions: Boolean): InlineFunctionAnalyzer {
        require(this is KtFe10AnalysisSession) {
            "K2 implementation shouldn't call this code"
        }
        return InlineFunctionAnalyzer(analysisContext, analyzeOnlyReifiedInlineFunctions)
    }
    
    @OptIn(KtAnalysisNonPublicApi::class)
    class InlineFunctionAnalyzer(
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Aug 29 23:55:31 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/FirJavaDeclaredMembersOnlyScope.kt

        init {
            // The `isDeclared` check is based on class IDs. Local classes don't have proper class IDs, but because this scope is used to
            // represent Java classes viewed from Kotlin code, we shouldn't be able to encounter any local Java classes.
            require(!owner.isLocal) {
                "Unexpected local Java class in ${FirJavaDeclaredMembersOnlyScope::class.simpleName}."
            }
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

        }
        while (filesQueueToAnalyze.isNotEmpty()) {
            val file = filesQueueToAnalyze.removeFirst()
            analyze(file) {
                require(this is KtFe10AnalysisSession) {
                    "K2 implementation shouldn't call this code"
                }
                file.accept(InlineDelegatedPropertyAccessorsAnalyzer(analysisContext, collector))
            }
        }
    }
    
    @OptIn(KtAnalysisNonPublicApi::class)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Aug 29 23:55:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  4. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/CliFe10AnalysisFacade.kt

                return extensions.firstOrNull { it.useSiteModule == module }
                    ?: extensions.singleOrNull { it.useSiteModule == null }
                    ?: error(KtFe10AnalysisHandlerExtension::class.java.name + " should be registered")
            }
        }
    
        var resolveSession: ResolveSession? = null
            private set
    
        var deprecationResolver: DeprecationResolver? = null
            private set
    
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Fri Jan 26 16:20:19 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10CompilerFacility.kt

    import org.jetbrains.kotlin.resolve.source.PsiSourceFile
    import org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedContainerSource
    
    /**
     * Whether unbound IR symbols should be stubbed instead of linked.
     * This should be enabled if the compiled file could refer to symbols defined in another file of the same module.
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Fri Dec 01 13:22:55 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt

            constructor: (KtParameterSymbol) -> T
        ): T = constructor(
            if (valueParameterReference.parameterIndex == -1) firFunctionSymbol.receiverParameter
                ?: errorWithAttachment("${firFunctionSymbol::class} should contain a receiver") {
                    withFirEntry("fir", firFunctionSymbol.firSymbol.fir)
                }
            else firFunctionSymbol.valueParameters[valueParameterReference.parameterIndex]
        )
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Jul 26 14:29:20 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/base/Kt1DescUtils.kt

            is PropertyDescriptorImpl -> KtFe10DescKotlinPropertySymbol(unwrapped, analysisContext)
            else -> null
        }
    }
    
    /**
     * This logic should be equivalent to
     * [org.jetbrains.kotlin.analysis.api.fir.KtSymbolByFirBuilder.unwrapSubstitutionOverrideIfNeeded]. But this method unwrap all fake
     * overrides that do not change the signature.
     */
    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)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirReferenceResolveProvider.kt

    ) : KtReferenceResolveProvider(), KtFirAnalysisSessionComponent {
        override fun resolveToSymbols(reference: KtReference): Collection<KtSymbol> {
            check(reference is KtSymbolBasedReference) { "To get reference symbol the one should be KtSymbolBasedReference" }
            with(reference) {
                return analysisSession.resolveToSymbols()
            }
        }
    
        override fun isImplicitReferenceToCompanion(reference: KtReference): Boolean {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Jun 30 13:43:30 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KDocReferenceResolver.kt

                }
                val goBackSteps = fullFqName.pathSegments().size - selectedFqName.pathSegments().size
                check(goBackSteps > 0) {
                    "Selected FqName ($selectedFqName) should be smaller than the whole FqName ($fullFqName)"
                }
                return fullSymbolsResolved.mapNotNullTo(mutableSetOf()) { findParentSymbol(it, goBackSteps, selectedFqName) }
            }
        }
    
        /**
    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

            val candidatesWithinSamePriorityScopes = candidates.filter { it.candidate.originScope == scopeForQualifiedAccess }
    
            // TODO isInBestCandidates should probably be used more actively to filter candidates
            return candidatesWithinSamePriorityScopes.isEmpty() ||
                    candidatesWithinSamePriorityScopes.singleOrNull()?.isInBestCandidates == true
        }
    
    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