Enable local functions in fir html dump
This commit is contained in:
committed by
Mikhail Glukhikh
parent
f9feeac5e1
commit
4469fec57b
@@ -824,6 +824,7 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
|
|
||||||
private fun FlowContent.generate(statement: FirStatement) {
|
private fun FlowContent.generate(statement: FirStatement) {
|
||||||
when (statement) {
|
when (statement) {
|
||||||
|
is FirNamedFunction -> generate(statement)
|
||||||
is FirAnonymousObject -> generate(statement, isStatement = true)
|
is FirAnonymousObject -> generate(statement, isStatement = true)
|
||||||
is FirAnonymousFunction -> generate(statement, isStatement = true)
|
is FirAnonymousFunction -> generate(statement, isStatement = true)
|
||||||
is FirWhileLoop -> generate(statement)
|
is FirWhileLoop -> generate(statement)
|
||||||
@@ -1188,6 +1189,7 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun FlowContent.generate(function: FirNamedFunction) {
|
private fun FlowContent.generate(function: FirNamedFunction) {
|
||||||
|
generateMultiLineExpression(isStatement = true) {
|
||||||
iline {
|
iline {
|
||||||
declarationStatus(function.status)
|
declarationStatus(function.status)
|
||||||
keyword("fun ")
|
keyword("fun ")
|
||||||
@@ -1204,7 +1206,7 @@ class HtmlFirDump internal constructor(private var linkResolver: FirLinkResolver
|
|||||||
generate(function.returnTypeRef)
|
generate(function.returnTypeRef)
|
||||||
generateBlockIfAny(function.body)
|
generateBlockIfAny(function.body)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun FlowContent.generate(function: FirConstructor) {
|
private fun FlowContent.generate(function: FirConstructor) {
|
||||||
|
|||||||
Reference in New Issue
Block a user