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

Unified Diff: lib/dartdoc/frog/lib/string_base.dart

Issue 10696191: Frog removed from dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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: lib/dartdoc/frog/lib/string_base.dart
diff --git a/lib/dartdoc/frog/lib/string_base.dart b/lib/dartdoc/frog/lib/string_base.dart
deleted file mode 100644
index 3903a46aba3f0b38a365b28942865dd375a5b43c..0000000000000000000000000000000000000000
--- a/lib/dartdoc/frog/lib/string_base.dart
+++ /dev/null
@@ -1,31 +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 StringBase {
- // TODO(jmesserly): this array copy is really unfortunate
- // TODO(jmesserly): check the performance of String.fromCharCode.apply
- // TODO(jmesserly): fix the generated JS name of factory ctors,
- // they shouldn't be duplicating the name.
- static String createFromCharCodes(List<int> charCodes) native @'''
-if (Object.getPrototypeOf(charCodes) !== Array.prototype) {
- charCodes = new ListFactory.ListFactory$from$factory(charCodes);
-}
-return String.fromCharCode.apply(null, charCodes);
-''' {
- // we may need to iterate over charCodes
- var i = charCodes.iterator(); i.next(); i.hasNext();
- new ListFactory.from(charCodes); // ensure List.from is generated
- }
-
- static String join(List<String> strings, String separator) {
- if (strings.length == 0) return '';
- String s = strings[0];
- for (int i = 1; i < strings.length; i++) {
- s = s + separator + strings[i];
- }
- return s;
- }
-
- static String concatAll(List<String> strings) => join(strings, "");
-}

Powered by Google App Engine
This is Rietveld 408576698