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

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

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (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/core/string.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 abdd7c1f49344345ea9770fbdc7f1248b58a5735..15a7b00bce766ca2cee7603aaaef7a4a01c6bb92 100644
--- a/test/dart_codegen/expect/core/string_buffer.dart
+++ b/test/dart_codegen/expect/core/string_buffer.dart
@@ -1,16 +1,16 @@
part of dart.core;
class StringBuffer implements StringSink {
- @patch StringBuffer([Object content = ""]) : _contents = '$content';
- @patch int get length => DDC$RT.cast(_contents.length, dynamic, int,
- "CastGeneral", """line 20, column 21 of dart:core/string_buffer.dart: """,
+ 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;
- @patch void write(Object obj) {
+ void write(Object obj) {
_writeString('$obj');
}
- @patch void writeCharCode(int charCode) {
+ void writeCharCode(int charCode) {
_writeString(new String.fromCharCode(charCode));
}
void writeAll(Iterable objects, [String separator = ""]) {
@@ -32,10 +32,10 @@ class StringBuffer implements StringSink {
write(obj);
write("\n");
}
- @patch void clear() {
+ void clear() {
_contents = "";
}
- @patch String toString() => ((__x40) => DDC$RT.cast(__x40, dynamic, String,
- "CastGeneral", """line 68, column 24 of dart:core/string_buffer.dart: """,
+ 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));
}
« no previous file with comments | « test/dart_codegen/expect/core/string.dart ('k') | test/dart_codegen/expect/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698