| Index: lib/src/js/nodes.dart
|
| diff --git a/lib/src/js/nodes.dart b/lib/src/js/nodes.dart
|
| index 9e2553fb9215fcaf3604764828d77e0458b70859..ba4f4faf51dec83ebf0608638874096003a971c4 100644
|
| --- a/lib/src/js/nodes.dart
|
| +++ b/lib/src/js/nodes.dart
|
| @@ -276,16 +276,16 @@ class If extends Statement {
|
| final Node otherwise;
|
|
|
| If(this.condition, this.then, this.otherwise);
|
| - If.noElse(this.condition, this.then) : this.otherwise = new EmptyStatement();
|
| + If.noElse(this.condition, this.then) : this.otherwise = null;
|
|
|
| - bool get hasElse => otherwise is !EmptyStatement;
|
| + bool get hasElse => otherwise != null;
|
|
|
| accept(NodeVisitor visitor) => visitor.visitIf(this);
|
|
|
| void visitChildren(NodeVisitor visitor) {
|
| condition.accept(visitor);
|
| then.accept(visitor);
|
| - otherwise.accept(visitor);
|
| + if (otherwise != null) otherwise.accept(visitor);
|
| }
|
|
|
| If _clone() => new If(condition, then, otherwise);
|
|
|