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

Side by Side Diff: test/generated_sdk/lib/core/string_buffer.dart

Issue 955513007: merge class extensions from patch files (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 unified diff | Download patch
« no previous file with comments | « test/generated_sdk/lib/core/string.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * A class for concatenating strings efficiently. 8 * A class for concatenating strings efficiently.
9 * 9 *
10 * Allows for the incremental building of a string using write*() methods. 10 * Allows for the incremental building of a string using write*() methods.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 /** 65 /**
66 * Clears the string buffer. 66 * Clears the string buffer.
67 */ 67 */
68 void clear() { 68 void clear() {
69 _contents = ""; 69 _contents = "";
70 } 70 }
71 71
72 /// Returns the contents of buffer as a concatenated string. 72 /// Returns the contents of buffer as a concatenated string.
73 String toString() => Primitives.flattenString(_contents); 73 String toString() => Primitives.flattenString(_contents);
74
75 String _contents;
76
77 void _writeString(str) {
78 _contents = Primitives.stringConcatUnchecked(_contents, str);
79 }
74 } 80 }
OLDNEW
« no previous file with comments | « test/generated_sdk/lib/core/string.dart ('k') | tool/patch_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698