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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart b/sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart
index 958db2f9fbf7b3a645915da8212a7a9933b0a6d9..0fa3489eee3fa3be62a8cf9eb39dd04cf9494ac4 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/string_scanner.dart
@@ -53,7 +53,7 @@ class StringScanner extends ArrayBasedScanner<SourceString> {
}
}
-class SubstringWrapper implements SourceString {
+class SubstringWrapper extends Iterable<int> implements SourceString {
final String internalString;
final int begin;
final int end;
@@ -89,7 +89,7 @@ class SubstringWrapper implements SourceString {
String get stringValue => null;
- Iterator<int> iterator() =>
+ Iterator<int> get iterator =>
new StringCodeIterator.substring(internalString, begin, end);
SourceString copyWithoutQuotes(int initial, int terminal) {

Powered by Google App Engine
This is Rietveld 408576698