Extract separate FirPropertyAccessorRenderer

This commit is contained in:
Mikhail Glukhikh
2022-07-08 13:51:10 +02:00
committed by Space
parent 9f1f777e0d
commit 31a46866b6
7 changed files with 59 additions and 37 deletions
@@ -137,8 +137,9 @@ class FirScopeDumpHandler(testServices: TestServices) : FirAnalysisHandler(testS
private fun SmartPrinter.printInfo(declaration: FirCallableDeclaration, scope: FirTypeScope, counter: SymbolCounter) {
print("[${declaration.origin}]: ")
val renderedDeclaration = FirRenderer(mode = FirRenderer.RenderMode.NoBodies).with(
annotationRenderer = null, bodyRenderer = null, callArgumentsRenderer = FirCallNoArgumentsRenderer()
val renderedDeclaration = FirRenderer().with(
annotationRenderer = null, bodyRenderer = null, propertyAccessorRenderer = null,
callArgumentsRenderer = FirCallNoArgumentsRenderer()
).renderElementAsString(declaration).trim()
print(renderedDeclaration)
print(" from $scope")