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

Unified Diff: test/dart_codegen/expect/convert/latin1.dart

Issue 959073002: Fix new line breaks on } (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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 | « test/dart_codegen/expect/convert/json.dart ('k') | test/dart_codegen/expect/convert/string_conversion.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/convert/latin1.dart
diff --git a/test/dart_codegen/expect/convert/latin1.dart b/test/dart_codegen/expect/convert/latin1.dart
index 61cc82fecb58216fa5d13e10b52877f19c25bf6f..4f4cf27159648c8c622b7d33ed18d0964e7af4aa 100644
--- a/test/dart_codegen/expect/convert/latin1.dart
+++ b/test/dart_codegen/expect/convert/latin1.dart
@@ -51,9 +51,7 @@ _sink.add(new String.fromCharCodes(source, start, end));
}
void addSlice(List<int> source, int start, int end, bool isLast) {
RangeError.checkValidRange(start, end, source.length);
- for (int i = start;
- i < end;
- i++) {
+ for (int i = start; i < end; i++) {
int char = source[i];
if (char > _LATIN1_MASK || char < 0) {
throw new FormatException("Source contains non-Latin-1 characters.");
@@ -70,9 +68,7 @@ close();
class _Latin1AllowInvalidDecoderSink extends _Latin1DecoderSink {_Latin1AllowInvalidDecoderSink(StringConversionSink sink) : super(sink);
void addSlice(List<int> source, int start, int end, bool isLast) {
RangeError.checkValidRange(start, end, source.length);
- for (int i = start;
- i < end;
- i++) {
+ for (int i = start; i < end; i++) {
int char = source[i];
if (char > _LATIN1_MASK || char < 0) {
if (i > start) _addSliceToSink(source, start, i, false);
« no previous file with comments | « test/dart_codegen/expect/convert/json.dart ('k') | test/dart_codegen/expect/convert/string_conversion.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698