- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for approximateType (0.35 sec)
-
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/KtRendererTypeApproximator.kt
import org.jetbrains.kotlin.types.Variance public interface KaRendererTypeApproximator { public fun approximateType(analysisSession: KaSession, type: KaType, position: Variance): KaType public object TO_DENOTABLE : KaRendererTypeApproximator { override fun approximateType(analysisSession: KaSession, type: KaType, position: Variance): KaType { with(analysisSession) {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.5K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/KtTypeParametersRenderer.kt
{ val approximatedType = declarationRenderer.declarationTypeApproximator .approximateType(analysisSession, bound, Variance.OUT_VARIANCE) declarationRenderer.typeRenderer.renderType(analysisSession, approximatedType, printer) } , )
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 6.3K bytes - Viewed (0) -
analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/components/KtRendererProvider.kt
return with(analysisSession) { val approximatedType = KaRendererTypeApproximator.TO_DENOTABLE.approximateType(analysisSession, type, position) prettyPrint { renderer.renderType(analysisSession, approximatedType, this) } } } override fun renderDeclaration(symbol: KaDeclarationSymbol, renderer: KaDeclarationRenderer): String {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.8K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/superTypes/KtSuperTypeRenderer.kt
printer: PrettyPrinter, ) { val approximatedType = declarationRenderer.declarationTypeApproximator .approximateType(analysisSession, type, Variance.OUT_VARIANCE) declarationRenderer.typeRenderer.renderType(analysisSession, approximatedType, printer) } } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.5K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtCallableReceiverRenderer.kt
}, { val receiverType = declarationRenderer.declarationTypeApproximator .approximateType(analysisSession, symbol.type, Variance.IN_VARIANCE) declarationRenderer.typeRenderer.renderType(analysisSession, receiverType, printer) }, ) }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.8K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/classifiers/KtSingleTypeParameterSymbolRenderer.kt
val approximatedType = declarationRenderer.declarationTypeApproximator .approximateType(analysisSession, it, Variance.OUT_VARIANCE) declarationRenderer.typeRenderer.renderType(analysisSession, approximatedType, printer) } }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 3.3K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/renderers/callables/KtCallableReturnTypeRenderer.kt
printer: PrettyPrinter, ) { if (symbol is KaConstructorSymbol) return val type = declarationRenderer.declarationTypeApproximator.approximateType(analysisSession, symbol.returnType, Variance.OUT_VARIANCE) if (!declarationRenderer.returnTypeFilter.shouldRenderReturnType(analysisSession, type, symbol)) return
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.7K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/expressionTypeProvider/AbstractHLExpressionTypeTest.kt
val type = executeOnPooledThreadInReadAction { analyseForTest(expression) { var ktType = expression.getKaType() if (Directives.APPROXIMATE_TYPE in mainModule.testModule.directives) { ktType = ktType?.approximateToSuperPublicDenotableOrSelf(true) } ktType?.render(renderer, position = Variance.INVARIANT)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 3K bytes - Viewed (0)