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

Unified Diff: pkg/compiler/lib/src/scanner/utf8_bytes_scanner.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
« no previous file with comments | « pkg/compiler/lib/src/scanner/token.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart
diff --git a/pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart b/pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart
index f242f57ebeaf10fad75a21b95e6cb10924c44602..d919596154580c9a6e09b6a710dfafb7142d9544 100644
--- a/pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart
+++ b/pkg/compiler/lib/src/scanner/utf8_bytes_scanner.dart
@@ -69,10 +69,9 @@ class Utf8BytesScanner extends ArrayBasedScanner {
* array whose last element is '0' to signal the end of the file. If this
* is not the case, the entire array is copied before scanning.
*/
- Utf8BytesScanner(SourceFile file, {bool includeComments: false,
- bool enableNullAwareOperators: false})
+ Utf8BytesScanner(SourceFile file, {bool includeComments: false})
: bytes = file.slowUtf8ZeroTerminatedBytes(),
- super(file, includeComments, enableNullAwareOperators) {
+ super(file, includeComments) {
assert(bytes.last == 0);
// Skip a leading BOM.
if (_containsBomAt(0)) byteOffset += 3;
@@ -86,10 +85,9 @@ class Utf8BytesScanner extends ArrayBasedScanner {
* scanning.
*/
Utf8BytesScanner.fromBytes(List<int> zeroTerminatedBytes,
- {bool includeComments: false,
- bool enableNullAwareOperators: false})
+ {bool includeComments: false})
: this.bytes = zeroTerminatedBytes,
- super(null, includeComments, enableNullAwareOperators) {
+ super(null, includeComments) {
assert(bytes.last == 0);
}
« no previous file with comments | « pkg/compiler/lib/src/scanner/token.dart ('k') | pkg/compiler/lib/src/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698