| Index: compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java
|
| diff --git a/compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java b/compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java
|
| index 159d45d00179571c3b00dda5fe1e289b09ac4b92..a41a521a42550705bc14ba622e04a42be4e9a0a8 100644
|
| --- a/compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java
|
| +++ b/compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java
|
| @@ -14,16 +14,17 @@ import com.google.dart.compiler.resolver.MethodNodeElement;
|
| public class DartUnaryExpression extends DartExpression {
|
|
|
| private final Token operator;
|
| + private final int operatorOffset;
|
| private DartExpression arg;
|
| private final boolean isPrefix;
|
| private MethodNodeElement element;
|
|
|
| - public DartUnaryExpression(Token operator, DartExpression arg, boolean isPrefix) {
|
| + public DartUnaryExpression(Token operator, int operatorOffset, DartExpression arg, boolean isPrefix) {
|
| assert operator.isUnaryOperator() || operator == Token.SUB;
|
| -
|
| - this.isPrefix = isPrefix;
|
| this.operator = operator;
|
| + this.operatorOffset = operatorOffset;
|
| this.arg = becomeParentOf(arg);
|
| + this.isPrefix = isPrefix;
|
| }
|
|
|
| public DartExpression getArg() {
|
| @@ -34,6 +35,10 @@ public class DartUnaryExpression extends DartExpression {
|
| return operator;
|
| }
|
|
|
| + public int getOperatorOffset() {
|
| + return operatorOffset;
|
| + }
|
| +
|
| public boolean isPrefix() {
|
| return isPrefix;
|
| }
|
|
|