parameter removed from 'jumpToError' method
This commit is contained in:
@@ -44,8 +44,7 @@ public interface JetControlFlowBuilder {
|
||||
void jumpOnTrue(@NotNull Label label);
|
||||
void nondeterministicJump(Label label); // Maybe, jump to label
|
||||
void nondeterministicJump(List<Label> label);
|
||||
void jumpToError(JetThrowExpression expression);
|
||||
void jumpToError(JetExpression nothingExpression);
|
||||
void jumpToError();
|
||||
|
||||
// Entry/exit points
|
||||
Label getEntryPoint(@NotNull JetElement labelElement);
|
||||
|
||||
@@ -97,15 +97,9 @@ public class JetControlFlowBuilderAdapter implements JetControlFlowBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void jumpToError(JetThrowExpression expression) {
|
||||
public void jumpToError() {
|
||||
assert builder != null;
|
||||
builder.jumpToError(expression);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void jumpToError(JetExpression nothingExpression) {
|
||||
assert builder != null;
|
||||
builder.jumpToError(nothingExpression);
|
||||
builder.jumpToError();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -170,7 +170,7 @@ public class JetControlFlowProcessor {
|
||||
if (trace.get(BindingContext.PROCESSED, expression)) {
|
||||
JetType type = trace.getBindingContext().get(BindingContext.EXPRESSION_TYPE, expression);
|
||||
if (type != null && KotlinBuiltIns.getInstance().isNothing(type)) {
|
||||
builder.jumpToError(expression);
|
||||
builder.jumpToError();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -627,7 +627,7 @@ public class JetControlFlowProcessor {
|
||||
if (trace.get(BindingContext.PROCESSED, expression)) {
|
||||
JetType type = trace.getBindingContext().get(BindingContext.EXPRESSION_TYPE, expression);
|
||||
if (type != null && KotlinBuiltIns.getInstance().isNothing(type)) {
|
||||
builder.jumpToError(expression);
|
||||
builder.jumpToError();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -669,7 +669,7 @@ public class JetControlFlowProcessor {
|
||||
if (trace.get(BindingContext.PROCESSED, expression)) {
|
||||
JetType type = trace.getBindingContext().get(BindingContext.EXPRESSION_TYPE, expression);
|
||||
if (type != null && KotlinBuiltIns.getInstance().isNothing(type)) {
|
||||
builder.jumpToError(expression);
|
||||
builder.jumpToError();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -739,7 +739,7 @@ public class JetControlFlowProcessor {
|
||||
if (thrownExpression != null) {
|
||||
value(thrownExpression, false);
|
||||
}
|
||||
builder.jumpToError(expression);
|
||||
builder.jumpToError();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-6
@@ -294,15 +294,10 @@ public class JetControlFlowInstructionsGenerator extends JetControlFlowBuilderAd
|
||||
}
|
||||
|
||||
@Override
|
||||
public void jumpToError(JetThrowExpression expression) {
|
||||
public void jumpToError() {
|
||||
add(new UnconditionalJumpInstruction(error));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void jumpToError(JetExpression nothingExpression) {
|
||||
add(new UnconditionalJumpInstruction(error));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enterTryFinally(@NotNull GenerationTrigger generationTrigger) {
|
||||
allBlocks.push(new TryFinallyBlockInfo(generationTrigger));
|
||||
|
||||
Reference in New Issue
Block a user