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

Unified Diff: test/generated_sdk/lib/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/generated_sdk/lib/core/string.dart ('k') | test/generated_sdk/lib/core/uri.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/generated_sdk/lib/core/string_buffer.dart
diff --git a/test/generated_sdk/lib/core/string_buffer.dart b/test/generated_sdk/lib/core/string_buffer.dart
index b18f511f869df1258313807dc93783cb412a2ded..186952ae5edd1c55db174645c1ca94ab7a5a1f30 100644
--- a/test/generated_sdk/lib/core/string_buffer.dart
+++ b/test/generated_sdk/lib/core/string_buffer.dart
@@ -13,10 +13,13 @@ part of dart.core;
*/
class StringBuffer implements StringSink {
- @patch
+ /** Creates the string buffer with an initial content. */
StringBuffer([Object content = ""]) : _contents = '$content';
- @patch
+ /**
+ * Returns the length of the content that has been accumulated so far.
+ * This is a constant-time operation.
+ */
int get length => _contents.length;
/** Returns whether the buffer is empty. This is a constant-time operation. */
@@ -28,12 +31,12 @@ class StringBuffer implements StringSink {
*/
bool get isNotEmpty => !isEmpty;
- @patch
+ /// Adds the contents of [obj], converted to a string, to the buffer.
void write(Object obj) {
_writeString('$obj');
}
- @patch
+ /// Adds the string representation of [charCode] to the buffer.
void writeCharCode(int charCode) {
_writeString(new String.fromCharCode(charCode));
}
@@ -59,11 +62,13 @@ class StringBuffer implements StringSink {
write("\n");
}
- @patch
+ /**
+ * Clears the string buffer.
+ */
void clear() {
_contents = "";
}
- @patch
+ /// Returns the contents of buffer as a concatenated string.
String toString() => Primitives.flattenString(_contents);
}
« no previous file with comments | « test/generated_sdk/lib/core/string.dart ('k') | test/generated_sdk/lib/core/uri.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698