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

Unified Diff: pkg/dev_compiler/tool/input_sdk/lib/core/string_buffer.dart

Issue 2698353003: unfork DDC's copy of most SDK libraries (Closed)
Patch Set: revert core_patch Created 3 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: pkg/dev_compiler/tool/input_sdk/lib/core/string_buffer.dart
diff --git a/pkg/dev_compiler/tool/input_sdk/lib/core/string_buffer.dart b/pkg/dev_compiler/tool/input_sdk/lib/core/string_buffer.dart
deleted file mode 100644
index 31b87801fd4de6ba386327825ef7d337cf4ced1d..0000000000000000000000000000000000000000
--- a/pkg/dev_compiler/tool/input_sdk/lib/core/string_buffer.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of dart.core;
-
-/**
- * A class for concatenating strings efficiently.
- *
- * Allows for the incremental building of a string using write*() methods.
- * The strings are concatenated to a single string only when [toString] is
- * called.
- */
-class StringBuffer implements StringSink {
-
- /** Creates the string buffer with an initial content. */
- external StringBuffer([Object content = ""]);
-
- /**
- * Returns the length of the content that has been accumulated so far.
- * This is a constant-time operation.
- */
- external int get length;
-
- /** Returns whether the buffer is empty. This is a constant-time operation. */
- bool get isEmpty => length == 0;
-
- /**
- * Returns whether the buffer is not empty. This is a constant-time
- * operation.
- */
- bool get isNotEmpty => !isEmpty;
-
- /// Adds the contents of [obj], converted to a string, to the buffer.
- external void write(Object obj);
-
- /// Adds the string representation of [charCode] to the buffer.
- external void writeCharCode(int charCode);
-
- external void writeAll(Iterable objects, [String separator = ""]);
-
- external void writeln([Object obj = ""]);
-
- /**
- * Clears the string buffer.
- */
- external void clear();
-
- /// Returns the contents of buffer as a concatenated string.
- external String toString();
-}
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/lib/core/string.dart ('k') | pkg/dev_compiler/tool/input_sdk/lib/core/string_sink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698