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

Unified Diff: dart/language/grammar/stringbuffer.dart

Issue 10917035: Remove language directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | « dart/language/grammar/examples.xsl ('k') | dart/language/namer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/language/grammar/stringbuffer.dart
diff --git a/dart/language/grammar/stringbuffer.dart b/dart/language/grammar/stringbuffer.dart
deleted file mode 100644
index ac1d2db399e1b246842bfe746cd4f72df67acbee..0000000000000000000000000000000000000000
--- a/dart/language/grammar/stringbuffer.dart
+++ /dev/null
@@ -1,53 +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.
-
-class StringBuffer {
-
- // Constructor. Optional argument [content] takes initial content.
- StringBuffer([String content = ""]) {
- init(content);
- }
-
- // Returns the length of the buffer.
- int get length() {
- return length_;
- }
-
- // Appends item to the buffer.
- void append(String str) {
- list_.add(str);
- length_ += str.length;
- }
-
- // Appends all items in strings to the buffer.
- void appendAll(Collection<String> strings) {
- strings.forEach((str) { append(str); });
- }
-
- // Clears the string buffer.
- void clear() {
- list_ = [];
- length_ = 0;
- }
-
- // Sets contents of buffer to str.
- void init(String str) {
- if (str.isEmpty()) {
- clear();
- } else {
- list_ = [str];
- length_ += str.length;
- }
- }
-
- // Returns contents of buffer as a concatenated string.
- String toString() {
- String result = String.join(list_, "");
- list_ = [result];
- return result;
- }
-
- List list_;
- int length_;
-}
« no previous file with comments | « dart/language/grammar/examples.xsl ('k') | dart/language/namer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698