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

Unified Diff: lib/utf/utf32.dart

Issue 11049036: Remove spurious types from constructor args that use "this." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf32.dart
diff --git a/lib/utf/utf32.dart b/lib/utf/utf32.dart
index 6f1176862bc6d23543e54314751322be51cf2e83..31c1bc8c17344d81f620a1e3585f7ca05561641f 100644
--- a/lib/utf/utf32.dart
+++ b/lib/utf/utf32.dart
@@ -173,15 +173,17 @@ bool hasUtf32leBom(List<int> utf32EncodedBytes, [int offset = 0, int length]) {
utf32EncodedBytes[offset + 2] == 0 && utf32EncodedBytes[offset + 3] == 0;
}
+typedef Utf32BytesDecoder Utf32BytesDecoderProvider();
+
/**
* Return type of [decodeUtf32AsIterable] and variants. The Iterable type
* provides an iterator on demand and the iterator will only translate bytes
* as requested by the user of the iterator. (Note: results are not cached.)
*/
class IterableUtf32Decoder implements Iterable<int> {
- final Function codeunitsProvider;
+ final Utf32BytesDecoderProvider codeunitsProvider;
- IterableUtf32Decoder._(Function this.codeunitsProvider);
+ IterableUtf32Decoder._(this.codeunitsProvider);
Utf32BytesDecoder iterator() => codeunitsProvider();
}
@@ -194,8 +196,7 @@ class Utf32BytesDecoder implements _ListRangeIterator {
final int replacementCodepoint;
Utf32BytesDecoder._fromListRangeIterator(
- _ListRangeIterator this.utf32EncodedBytesIterator,
- int this.replacementCodepoint);
+ this.utf32EncodedBytesIterator, this.replacementCodepoint);
factory Utf32BytesDecoder(List<int> utf32EncodedBytes, [
int offset = 0, int length,
« no previous file with comments | « lib/utf/utf16.dart ('k') | lib/utf/utf8.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698