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

Unified Diff: lib/compiler/implementation/scanner/string_scanner.dart

Issue 10539021: Scanner can include comments in the token stream. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Nested comments bug fixed Created 8 years, 6 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: lib/compiler/implementation/scanner/string_scanner.dart
diff --git a/lib/compiler/implementation/scanner/string_scanner.dart b/lib/compiler/implementation/scanner/string_scanner.dart
index 2f295abf39edb08f4315e72072c2f51e8a3519f4..d45e7ff06b9168b2fa95f9f1a356031a6e68b309 100644
--- a/lib/compiler/implementation/scanner/string_scanner.dart
+++ b/lib/compiler/implementation/scanner/string_scanner.dart
@@ -9,7 +9,8 @@
class StringScanner extends ArrayBasedScanner<SourceString> {
final String string;
- StringScanner(String this.string) : super();
+ StringScanner(String this.string, [bool includeComments = false])
+ : super(includeComments);
int nextByte() => charAt(++byteOffset);

Powered by Google App Engine
This is Rietveld 408576698