Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1669)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 246963005: Change ErrorNode to masquerade as a null literal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r35381 and exception for MessageKind.UNMATCHED_TOKEN. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index d74f51f9c8f0fdcdc084cb4799cfb6defe656e5e..c399cb02fcb7beb7bfa02dfecc0278636d5969b1 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -319,14 +319,12 @@ abstract class Statement extends Node {
bool isValidBreakTarget() => true;
}
-/// Errorneous expression that behaves as a literal integer (0).
-class ErrorExpression extends LiteralInt {
+/// Errorneous expression that behaves as a literal null.
+class ErrorExpression extends LiteralNull {
ErrorExpression(token)
- : super(token, null);
+ : super(token);
ErrorExpression asErrorExpression() => this;
-
- int get value => 0;
}
/**
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698