Skip to content

Commit 9ebff04

Browse files
committed
Add replace stats pass
This existed prior to the rebase, but something went amiss and I'm not quite sure what
1 parent f08edd3 commit 9ebff04

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/kotlin/src/main/java/org/vineflower/kotlin/KotlinPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private static Pass makePass() {
7979
.addPass("RedundantReturns", ctx -> ExitHelper.removeRedundantReturns(ctx.getRoot()))
8080
.addPass("IdentifySecondary", ctx -> SecondaryFunctionsHelper.identifySecondaryFunctions(ctx.getRoot(), ctx.getVarProc(), FORCE_TERNARY_SIMPLIFY))
8181
.addPass("SetVarDefinitions", WrappedPass.of(ctx -> ctx.getVarProc().setVarDefinitions(ctx.getRoot())))
82+
.addPass("ReplaceStats", new ReplaceStatsPass())
8283
.addPass("ReplaceExprs", new ReplaceExprentsPass())
8384
// TODO: preference for this pass
8485
.addPass("ResugarMethods", new ResugarKotlinMethodsPass())

0 commit comments

Comments
 (0)