- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for psiForTest (0.1 sec)
-
analysis/analysis-api-standalone/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/components/psiDeclarationProvider/PsiDeclarationProvidierTestUtils.kt
// Mimic [psiForUast] in FIR UAST internal fun KaSession.psiForTest(symbol: KaSymbol, project: Project): PsiElement? { return when (symbol.origin) { KaSymbolOrigin.LIBRARY -> { findPsi(symbol, project) ?: symbol.psi } KaSymbolOrigin.SUBSTITUTION_OVERRIDE, KaSymbolOrigin.INTERSECTION_OVERRIDE -> { psiForTest((symbol as KaCallableSymbol).unwrapFakeOverrides, project) }
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/tests/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/components/psiDeclarationProvider/AbstractPsiDeclarationProviderTest.kt
val element = ktReferences.first().element val resolvedTo = analyseForTest(element) { val symbols = ktReferences.flatMap { it.resolveToSymbols() } val psiElements = symbols.mapNotNull { psiForTest(it, element.project) } psiElements.joinToString(separator = "\n") { TestPsiElementRenderer.render(it) } } val actual = "Resolved to:\n$resolvedTo"
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Mar 27 16:04:54 UTC 2024 - 1.7K bytes - Viewed (0)