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

Unified Diff: pkg/yaml/lib/model.dart

Issue 12295014: Remove deprecated Strings class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « pkg/unittest/lib/src/config.dart ('k') | pkg/yaml/test/yaml_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/lib/model.dart
diff --git a/pkg/yaml/lib/model.dart b/pkg/yaml/lib/model.dart
index 7a609b9e204eafaca7899e22afb921338407a04c..9f1474e9634476284de382c01f72eab3c8785700 100644
--- a/pkg/yaml/lib/model.dart
+++ b/pkg/yaml/lib/model.dart
@@ -90,8 +90,7 @@ class _SequenceNode extends _Node {
return true;
}
- String toString() =>
- '$tag [${Strings.join(content.map((e) => '$e'), ', ')}]';
+ String toString() => '$tag [${content.map((e) => '$e').join(', ')}]';
int get hashCode => super.hashCode ^ _hashCode(content);
@@ -179,7 +178,7 @@ class _ScalarNode extends _Node {
}
}
});
- return '"${Strings.join(escapedValue, '')}"';
+ return '"${escapedValue.join()}"';
}
throw new YamlException("unknown scalar value: $value");
@@ -193,7 +192,7 @@ class _ScalarNode extends _Node {
assert(length >= str.length);
var prefix = [];
prefix.insertRange(0, length - str.length, '0');
- return '${Strings.join(prefix, '')}$str';
+ return '${prefix.join()}$str';
}
int get hashCode => super.hashCode ^ content.hashCode;
« no previous file with comments | « pkg/unittest/lib/src/config.dart ('k') | pkg/yaml/test/yaml_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698