Minor in JS AST: drop unused constructors from JsBinaryOperation, JsUnaryOperation, JsPrefixOperation and JsPostfixOperation.
This commit is contained in:
@@ -15,10 +15,6 @@ public final class JsBinaryOperation extends JsExpressionImpl {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private final JsBinaryOperator op;
|
private final JsBinaryOperator op;
|
||||||
|
|
||||||
public JsBinaryOperation(@NotNull JsBinaryOperator op) {
|
|
||||||
this(op, null, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JsBinaryOperation(@NotNull JsBinaryOperator op, @Nullable JsExpression arg1, @Nullable JsExpression arg2) {
|
public JsBinaryOperation(@NotNull JsBinaryOperator op, @Nullable JsExpression arg1, @Nullable JsExpression arg2) {
|
||||||
this.op = op;
|
this.op = op;
|
||||||
this.arg1 = arg1;
|
this.arg1 = arg1;
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ import com.google.dart.compiler.util.AstUtil;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public final class JsPostfixOperation extends JsUnaryOperation {
|
public final class JsPostfixOperation extends JsUnaryOperation {
|
||||||
public JsPostfixOperation(JsUnaryOperator op) {
|
|
||||||
this(op, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JsPostfixOperation(JsUnaryOperator op, JsExpression arg) {
|
public JsPostfixOperation(JsUnaryOperator op, JsExpression arg) {
|
||||||
super(op, arg);
|
super(op, arg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,10 +8,6 @@ import com.google.dart.compiler.util.AstUtil;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public final class JsPrefixOperation extends JsUnaryOperation {
|
public final class JsPrefixOperation extends JsUnaryOperation {
|
||||||
public JsPrefixOperation(JsUnaryOperator op) {
|
|
||||||
this(op, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JsPrefixOperation(JsUnaryOperator op, JsExpression arg) {
|
public JsPrefixOperation(JsUnaryOperator op, JsExpression arg) {
|
||||||
super(op, arg);
|
super(op, arg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ public abstract class JsUnaryOperation extends JsExpressionImpl {
|
|||||||
|
|
||||||
private final JsUnaryOperator op;
|
private final JsUnaryOperator op;
|
||||||
|
|
||||||
public JsUnaryOperation(JsUnaryOperator op) {
|
|
||||||
this(op, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
public JsUnaryOperation(JsUnaryOperator op, JsExpression arg) {
|
public JsUnaryOperation(JsUnaryOperator op, JsExpression arg) {
|
||||||
super();
|
super();
|
||||||
this.op = op;
|
this.op = op;
|
||||||
|
|||||||
Reference in New Issue
Block a user