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

Unified Diff: lib/compiler/implementation/scanner/byte_array_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: String interpolation identifier used new token 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/byte_array_scanner.dart
diff --git a/lib/compiler/implementation/scanner/byte_array_scanner.dart b/lib/compiler/implementation/scanner/byte_array_scanner.dart
index cdc7248e5e14204564fef0206a8b0fc8800185e0..a5d801d21288363997391c694be7217762f261d7 100644
--- a/lib/compiler/implementation/scanner/byte_array_scanner.dart
+++ b/lib/compiler/implementation/scanner/byte_array_scanner.dart
@@ -9,7 +9,8 @@
class ByteArrayScanner extends ArrayBasedScanner<ByteString> {
final List<int> bytes;
- ByteArrayScanner(List<int> this.bytes) : super();
+ ByteArrayScanner(List<int> this.bytes, [bool includeComments = false])
+ : super(includeComments);
int nextByte() => byteAt(++byteOffset);

Powered by Google App Engine
This is Rietveld 408576698