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

Unified Diff: test/dart_codegen/expect/core/string_buffer.dart

Issue 963593002: Disable formatting and add new-lines to make tests faster. (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
Index: test/dart_codegen/expect/core/string_buffer.dart
diff --git a/test/dart_codegen/expect/core/string_buffer.dart b/test/dart_codegen/expect/core/string_buffer.dart
index 15a7b00bce766ca2cee7603aaaef7a4a01c6bb92..dfd324bfe34dcfe8bd11e1aff98a9d01a7607929 100644
--- a/test/dart_codegen/expect/core/string_buffer.dart
+++ b/test/dart_codegen/expect/core/string_buffer.dart
@@ -1,41 +1,35 @@
part of dart.core;
-
-class StringBuffer implements StringSink {
- StringBuffer([Object content = ""]) : _contents = '$content';
- int get length => DDC$RT.cast(_contents.length, dynamic, int, "CastGeneral",
- """line 23, column 21 of dart:core/string_buffer.dart: """,
- _contents.length is int, true);
- bool get isEmpty => length == 0;
- bool get isNotEmpty => !isEmpty;
- void write(Object obj) {
- _writeString('$obj');
+ class StringBuffer implements StringSink {StringBuffer([Object content = ""]) : _contents = '$content';
+ int get length => DDC$RT.cast(_contents.length, dynamic, int, "CastGeneral", """line 23, column 21 of dart:core/string_buffer.dart: """, _contents.length is int, true);
+ bool get isEmpty => length == 0;
+ bool get isNotEmpty => !isEmpty;
+ void write(Object obj) {
+ _writeString('$obj');
}
- void writeCharCode(int charCode) {
- _writeString(new String.fromCharCode(charCode));
+ void writeCharCode(int charCode) {
+ _writeString(new String.fromCharCode(charCode));
}
- void writeAll(Iterable objects, [String separator = ""]) {
- Iterator iterator = objects.iterator;
- if (!iterator.moveNext()) return;
- if (separator.isEmpty) {
- do {
- write(iterator.current);
- } while (iterator.moveNext());
- } else {
+ void writeAll(Iterable objects, [String separator = ""]) {
+ Iterator iterator = objects.iterator;
+ if (!iterator.moveNext()) return; if (separator.isEmpty) {
+ do {
write(iterator.current);
- while (iterator.moveNext()) {
- write(separator);
- write(iterator.current);
+ }
+ while (iterator.moveNext());}
+ else {
+ write(iterator.current);
+ while (iterator.moveNext()) {
+ write(separator);
+ write(iterator.current);
}
}
}
- void writeln([Object obj = ""]) {
- write(obj);
- write("\n");
+ void writeln([Object obj = ""]) {
+ write(obj);
+ write("\n");
}
- void clear() {
- _contents = "";
+ void clear() {
+ _contents = "";
}
- String toString() => ((__x40) => DDC$RT.cast(__x40, dynamic, String,
- "CastGeneral", """line 73, column 24 of dart:core/string_buffer.dart: """,
- __x40 is String, true))(Primitives.flattenString(_contents));
+ String toString() => ((__x40) => DDC$RT.cast(__x40, dynamic, String, "CastGeneral", """line 73, column 24 of dart:core/string_buffer.dart: """, __x40 is String, true))(Primitives.flattenString(_contents));
}

Powered by Google App Engine
This is Rietveld 408576698