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

Unified Diff: pkg/compiler/lib/src/scanner/token.dart

Issue 1225273002: Remove flag for enabling null-aware operators. They are now on by default. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
Index: pkg/compiler/lib/src/scanner/token.dart
diff --git a/pkg/compiler/lib/src/scanner/token.dart b/pkg/compiler/lib/src/scanner/token.dart
index c1a502b9ee497c514b9309309f0073f37c5b13e8..c7c74d1b4a39e126b61204d08da0b9942bcf4314 100644
--- a/pkg/compiler/lib/src/scanner/token.dart
+++ b/pkg/compiler/lib/src/scanner/token.dart
@@ -262,21 +262,6 @@ class BadInputToken extends ErrorToken {
}
}
-// TODO(sigmund): delete once we enable null-aware-operators by default.
-class UnsupportedNullAwareToken extends ErrorToken {
- final String operator;
-
- UnsupportedNullAwareToken(this.operator, int charOffset)
- : super(charOffset);
-
- String toString() => "UnsupportedNullAwareToken($operator)";
-
- String get assertionMessage => "'$operator' isn't supported without "
- "the --enable-null-aware-operators flag.";
-
- int get charCount => operator.length;
-}
-
class UnterminatedToken extends ErrorToken {
final String start;
final int endOffset;
« no previous file with comments | « pkg/compiler/lib/src/scanner/string_scanner.dart ('k') | pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698