- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for KtSymbol (0.08 sec)
-
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KtSymbol.kt
* For [KaSymbolOrigin.LIBRARY] the generated by Kotlin class file source element is returned */ public val psi: PsiElement? public fun createPointer(): KaSymbolPointer<KaSymbol> } public typealias KtSymbol = KaSymbol /** * Get symbol [PsiElement] if its type is [PSI], otherwise throws ClassCastException * * @see KaSymbol.psi */ public inline fun <reified PSI : PsiElement> KaSymbol.psi(): PSI = psi as PSI
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 09:36:27 UTC 2024 - 5K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/symbolDeclarationRenderer/AbstractSymbolRenderingByReferenceTest.kt
val ktSymbol = referenceExpression.mainReference.resolveToSymbol() testServices.assertions.assertNotNull(ktSymbol) testServices.assertions.assertTrue(ktSymbol is KaDeclarationSymbol) (ktSymbol as KaDeclarationSymbol).render(WITH_QUALIFIED_NAMES_DENOTABLE) } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.9K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10FileScope.kt
val descriptor = context[BindingContext.DECLARATION_TO_DESCRIPTOR, declaration] as? CallableDescriptor ?: continue val ktSymbol = descriptor.takeIf { nameFilter(it.name) }?.toKtCallableSymbol(analysisContext) ?: continue yield(ktSymbol) } } } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 4K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/containingDeclarationProvider/AbstractContainingDeclarationProviderByReferenceTest.kt
analyseForTest(mainFile) { val ktSymbol = referenceExpression.mainReference.resolveToSymbol() ?: error("Reference is not resolved") val actualString = generateSequence(ktSymbol) { it.getContainingSymbol() } .filterIsInstance<KaDeclarationSymbol>() .joinToString("\n") { render(it) }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon May 27 09:59:11 UTC 2024 - 2.3K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirPsiJavaClassSymbol.kt
override val typeParameters: List<KaTypeParameterSymbol> by cached { // The parent Java class might contribute type parameters to the Java type parameter stack, but for this KtSymbol, parent type // parameters aren't relevant. psi.typeParameters.mapIndexed { index, psiTypeParameter -> KaFirPsiJavaTypeParameterSymbol(psiTypeParameter, analysisSession, origin) {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 11 15:45:42 UTC 2024 - 6.9K bytes - Viewed (0)