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

Unified Diff: sdk/lib/_internal/dartdoc/lib/dartdoc.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
Index: sdk/lib/_internal/dartdoc/lib/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
index 59ab4856e5a3dc048bf2d55e4b0c9a9af59e6136..e0305ab5829217de350f5dabe6583050fdf3e5e1 100644
--- a/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/lib/dartdoc.dart
@@ -691,7 +691,7 @@ class Dartdoc {
for (final typeVariable in type.originalDeclaration.typeVariables) {
typeVariables.add(typeVariable.displayName);
}
- typeInfo[ARGS] = Strings.join(typeVariables, ', ');
+ typeInfo[ARGS] = typeVariables.join(', ');
}
types.add(typeInfo);
}
@@ -1766,15 +1766,14 @@ class Dartdoc {
if (typeParams.isEmpty) {
return type.simpleName;
}
- final params = Strings.join(typeParams, ', ');
+ final params = typeParams.join(', ');
return '${type.simpleName}<$params>';
}
// See if it's an instantiation of a generic type.
final typeArgs = type.typeArguments;
if (typeArgs.length > 0) {
- final args =
- Strings.join(typeArgs.map((arg) => typeName(arg)), ', ');
+ final args = typeArgs.map((arg) => typeName(arg)).join(', ');
return '${type.originalDeclaration.simpleName}<$args>';
}
@@ -1793,7 +1792,7 @@ class Dartdoc {
lines[i] = unindent(lines[i], column);
}
- final code = Strings.join(lines, '\n');
+ final code = lines.join('\n');
return code;
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/core_patch.dart ('k') | sdk/lib/_internal/dartdoc/lib/src/dartdoc/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698