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