Fix try catch rendering in html fir dump
This commit is contained in:
committed by
Mikhail Glukhikh
parent
9398addb9d
commit
58fd62fd49
@@ -1035,19 +1035,19 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
iline {
|
iline {
|
||||||
keyword("try ")
|
keyword("try ")
|
||||||
generateBlockIfAny(tryExpression.tryBlock)
|
generateBlockIfAny(tryExpression.tryBlock)
|
||||||
}
|
|
||||||
|
|
||||||
for (catch in tryExpression.catches) {
|
for (catch in tryExpression.catches) {
|
||||||
keyword(" catch ")
|
keyword(" catch ")
|
||||||
+"("
|
+"("
|
||||||
generate(catch.parameter)
|
generate(catch.parameter)
|
||||||
+") "
|
+") "
|
||||||
generateBlockIfAny(catch.block)
|
generateBlockIfAny(catch.block)
|
||||||
}
|
}
|
||||||
val finallyBlock = tryExpression.finallyBlock
|
val finallyBlock = tryExpression.finallyBlock
|
||||||
if (finallyBlock != null) {
|
if (finallyBlock != null) {
|
||||||
keyword(" finally ")
|
keyword(" finally ")
|
||||||
generateBlockIfAny(finallyBlock)
|
generateBlockIfAny(finallyBlock)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user