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

Unified Diff: frog/leg/scanner/string_scanner.dart

Issue 9204006: Make SourceString Iterable<int>. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « frog/leg/scanner/byte_strings.dart ('k') | frog/leg/scanner/token.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/scanner/string_scanner.dart
diff --git a/frog/leg/scanner/string_scanner.dart b/frog/leg/scanner/string_scanner.dart
index 58efaa0990750693345a1e61b92fe385f053021b..0b0d28f6fe723d4c0a30dd5b865fcfaaa855a932 100644
--- a/frog/leg/scanner/string_scanner.dart
+++ b/frog/leg/scanner/string_scanner.dart
@@ -47,6 +47,9 @@ class SubstringWrapper implements SourceString {
return other is SourceString && toString() == other.toString();
}
+ Iterator<int> iterator() =>
+ new StringCodeIterator.substring(stringValue, begin, end);
+
int get length() => end - begin;
void printOn(StringBuffer sb) {
« no previous file with comments | « frog/leg/scanner/byte_strings.dart ('k') | frog/leg/scanner/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698