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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 11085003: Convert String to a class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged to tip of bleeding_edge. Updated test expecteation Created 8 years, 1 month 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 | « runtime/vm/snapshot_ids.h ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index f75c3d7998b56307202d4083157c04b84a5ecb0f..f22748b6aeb733117e472ecaa147dd292868866c 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -167,8 +167,7 @@ patch class _ListImpl<E> {
}
-// Patch for String implementation.
-patch class _StringImpl {
+patch class String {
patch factory String.fromCharCodes(List<int> charCodes) {
checkNull(charCodes);
if (!isJsArray(charCodes)) {
@@ -177,7 +176,10 @@ patch class _StringImpl {
}
return Primitives.stringFromCharCodes(charCodes);
}
+}
+// Patch for String implementation.
+patch class Strings {
patch static String join(List<String> strings, String separator) {
checkNull(strings);
checkNull(separator);
« no previous file with comments | « runtime/vm/snapshot_ids.h ('k') | sdk/lib/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698