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

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

Issue 1151163004: Implementation of null-aware operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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/scanner_task.dart ('k') | pkg/compiler/lib/src/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/scanner/string_scanner.dart
diff --git a/pkg/compiler/lib/src/scanner/string_scanner.dart b/pkg/compiler/lib/src/scanner/string_scanner.dart
index 5a30e433cb4feed7fc3755da998ae1ddaa88a1be..8eb736faf6fdb47456cdc80c5bc789dd617ec5ef 100644
--- a/pkg/compiler/lib/src/scanner/string_scanner.dart
+++ b/pkg/compiler/lib/src/scanner/string_scanner.dart
@@ -15,14 +15,16 @@ class StringScanner extends ArrayBasedScanner {
/** The current offset in [string]. */
int scanOffset = -1;
- StringScanner(SourceFile file, {bool includeComments: false})
+ StringScanner(SourceFile file, {bool includeComments: false,
+ bool enableNullAwareOperators: false})
: string = file.slowText(),
- super(file, includeComments) {
+ super(file, includeComments, enableNullAwareOperators) {
ensureZeroTermination();
}
- StringScanner.fromString(this.string, {bool includeComments: false})
- : super(null, includeComments) {
+ StringScanner.fromString(this.string, {bool includeComments: false,
+ bool enableNullAwareOperators: false})
+ : super(null, includeComments, enableNullAwareOperators) {
ensureZeroTermination();
}
« no previous file with comments | « pkg/compiler/lib/src/scanner/scanner_task.dart ('k') | pkg/compiler/lib/src/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698