- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 533 for Avoid (0.73 sec)
-
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/java/source/JavaElementPsiSourceWithSmartPointer.kt
val pointer: SmartPsiElementPointer<PSI>, override val factory: JavaElementSourceFactory, ) : JavaElementPsiSource<PSI>() { // is used only for the purposes of equals/hashCode to avoid underlying PCE private val originalPsi: PSI = psi override val psi: PSI get() { return pointer.element ?: error("Cannot restore a PsiElement from $pointer") }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 22 14:14:18 UTC 2023 - 1.2K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/contracts/descriptorContractUtils.kt
variableReference: VariableReference, constructor: (KaParameterSymbol) -> T ): T = constructor(variableReference.descriptor.toKtSymbol(analysisContext) as KaParameterSymbol) // Util function to avoid hard coding names of the classes. Type inference will do a better job figuring out the best type to cast to. // This visitor isn't type-safe anyway
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 5.7K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeProvider.kt
* * **Please avoid using it**; it will probably be removed in the future. * * The function is instantly deprecated, so it's not shown in the completion. * * @receiver A target callable symbol. * @return A dispatch receiver type for this symbol if it has any. */ @Suppress("DeprecatedCallableAddReplaceWith") @Deprecated("Avoid using this function")
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 11.4K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt
withFirEntry("fir", firFunctionSymbol.firSymbol.fir) } else firFunctionSymbol.valueParameters[valueParameterReference.parameterIndex] ) // Util function to avoid hard coding names of the classes. Type inference will do a better job figuring out the best type to cast to. // This visitor isn't type-safe anyway private inline fun <reified T> ConeContractDescriptionElement.accept() =
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/DeclarationsInPackageProvider.kt
* provides symbol names from binary libraries in Standalone mode, which the Standalone declaration provider does not contain (to avoid * stub-indexing binary libraries). And in general, querying the symbol names provider might be faster since its sets are cached, which is
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 5.3K bytes - Viewed (0) -
analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/session/builder/StandaloneSessionBuilderAgainstStdlibTest.kt
doTestKotlinStdLibResolve(JvmPlatforms.defaultJvmPlatform, PathUtil.kotlinPathsForDistDirectory.stdlibPath.toPath()) } @Test fun testKotlinStdLibCommon() { // KT-63493 to avoid using a hardcoded path doTestKotlinStdLibResolve(CommonPlatforms.defaultCommonPlatform, Paths.get("dist/common/kotlin-stdlib-common.jar")) } @Test fun testKotlinStdLibJs() {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Nov 16 13:31:54 UTC 2023 - 1.7K bytes - Viewed (0) -
analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/annotations.kt
* * The recommendation to avoid caching services is due to the risk of leaks. Properties annotated with [KaCachedService] should make sure * that they don't leak the service: the lifetime of the property should be shorter or as long as the lifetime of the cached service. * * When caching a service inside another service, the property should also be [lazy] to avoid issues with cyclic service initialization and
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 22:09:27 UTC 2024 - 1.5K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/declarations/KotlinStandaloneFirDirectInheritorsProvider.kt
// file, the FIR class for `ktClass` will come from the dangling module. So we'd compare the original FIR class for the supertype // with the dangling FIR class for `ktClass`, resulting in a mismatch. To avoid such incompatible comparisons, we need to resolve // `ktClass` to the original FIR class. //
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 6K bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/permissions/KaBaseAnalysisPermissionChecker.kt
* Caches [KaAnalysisPermissionRegistry] to avoid repeated `getService` calls in [analyze][org.jetbrains.kotlin.analysis.api.analyze] * and validity assertions. */ @KaCachedService private val permissionRegistry by lazy(LazyThreadSafetyMode.PUBLICATION) { KaAnalysisPermissionRegistry.getInstance() } /**
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 22:09:27 UTC 2024 - 2.9K bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/sessions/KaBaseSessionProvider.kt
/** * Caches [KaAnalysisPermissionChecker] to avoid repeated [Project.getService] calls in [analyze]. */ @KaCachedService private val permissionChecker by lazy(LazyThreadSafetyMode.PUBLICATION) { KaAnalysisPermissionChecker.getInstance(project) } /** * Caches [KaBaseLifetimeTracker] to avoid repeated [Project.getService] calls in [analyze]. */ @KaCachedService
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 3.3K bytes - Viewed (0)