Renaming
This commit is contained in:
@@ -36,8 +36,8 @@ public interface JetControlFlowBuilder {
|
|||||||
JetElement getCurrentLoop();
|
JetElement getCurrentLoop();
|
||||||
|
|
||||||
// Finally
|
// Finally
|
||||||
void pushFinally(@NotNull JetBlockExpression expression);
|
void enterTryFinally(@NotNull JetBlockExpression expression);
|
||||||
void popFinally();
|
void exitTryFinally();
|
||||||
|
|
||||||
// Subroutines
|
// Subroutines
|
||||||
void enterSubroutine(@NotNull JetElement subroutine);
|
void enterSubroutine(@NotNull JetElement subroutine);
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ package org.jetbrains.jet.lang.cfg;
|
|||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @Override
|
// @Override
|
||||||
// public void popFinally() {
|
// public void exitTryFinally() {
|
||||||
// throw new UnsupportedOperationException(); // TODO
|
// throw new UnsupportedOperationException(); // TODO
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
@@ -236,7 +236,7 @@ package org.jetbrains.jet.lang.cfg;
|
|||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// @Override
|
// @Override
|
||||||
// public void pushFinally(JetBlockExpression expression) {
|
// public void enterTryFinally(JetBlockExpression expression) {
|
||||||
// throw new UnsupportedOperationException(); // TODO
|
// throw new UnsupportedOperationException(); // TODO
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ public class JetControlFlowProcessor {
|
|||||||
public void visitTryExpression(JetTryExpression expression) {
|
public void visitTryExpression(JetTryExpression expression) {
|
||||||
JetFinallySection finallyBlock = expression.getFinallyBlock();
|
JetFinallySection finallyBlock = expression.getFinallyBlock();
|
||||||
if (finallyBlock != null) {
|
if (finallyBlock != null) {
|
||||||
builder.pushFinally(finallyBlock.getFinalExpression());
|
builder.enterTryFinally(finallyBlock.getFinalExpression());
|
||||||
}
|
}
|
||||||
|
|
||||||
List<JetCatchClause> catchClauses = expression.getCatchClauses();
|
List<JetCatchClause> catchClauses = expression.getCatchClauses();
|
||||||
@@ -153,7 +153,7 @@ public class JetControlFlowProcessor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (finallyBlock != null) {
|
if (finallyBlock != null) {
|
||||||
builder.popFinally();
|
builder.exitTryFinally();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -158,12 +158,12 @@ public class JetControlFlowInstructionsGenerator implements JetControlFlowBuilde
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void popFinally() {
|
public void enterTryFinally(@NotNull JetBlockExpression expression) {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void pushFinally(@NotNull JetBlockExpression expression) {
|
public void exitTryFinally() {
|
||||||
throw new UnsupportedOperationException(); // TODO
|
throw new UnsupportedOperationException(); // TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user