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

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

Issue 10519011: Properly parse []. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/scanner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/scanner/array_based_scanner.dart
diff --git a/lib/compiler/implementation/scanner/array_based_scanner.dart b/lib/compiler/implementation/scanner/array_based_scanner.dart
index 4000cc5b103d2e903b5d163639bcdf1078626213..c3dfb5fc88c9dc003feef2910cb4624222f45dfa 100644
--- a/lib/compiler/implementation/scanner/array_based_scanner.dart
+++ b/lib/compiler/implementation/scanner/array_based_scanner.dart
@@ -74,6 +74,10 @@ class ArrayBasedScanner<S extends SourceString> extends AbstractScanner<S> {
return tokens.next;
}
+ Token previousToken() {
+ return tail;
+ }
+
void addToCharOffset(int offset) {
extraCharOffset += offset;
}
« no previous file with comments | « no previous file | lib/compiler/implementation/scanner/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698