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

Unified Diff: sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 11865005: Remove Futures class, move methods to Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart ('k') | sdk/lib/async/future.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/dartdoc/bin/dartdoc.dart
diff --git a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
index 606ffb00e635b981a8c9b73afe878efefec36e23..4a5dc1f1839d284b61f3f917222bdb939a929994 100755
--- a/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
+++ b/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
@@ -37,7 +37,7 @@ main() {
final argParser = new ArgParser();
final Path libPath = scriptDir.append('../../../../');
-
+
Path pkgPath;
argParser.addFlag('no-code',
@@ -180,14 +180,14 @@ main() {
final entrypoints = <Path>[];
try {
final option = argParser.parse(args);
-
+
// This checks to see if the root of all entrypoints is the same.
// If it is not, then we display a warning, as package imports might fail.
var entrypointRoot;
for(final arg in option.rest) {
var entrypoint = new Path.fromNative(arg);
entrypoints.add(entrypoint);
-
+
if (entrypointRoot == null) {
entrypointRoot = entrypoint.directoryPath;
} else if (entrypointRoot.toNativePath() !=
@@ -208,7 +208,7 @@ main() {
print(argParser.getUsage());
exit(1);
}
-
+
if (pkgPath == null) {
pkgPath = entrypoints[0].directoryPath.append('packages/');
}
@@ -221,7 +221,7 @@ main() {
Future filesCopied = copyDirectory(scriptDir.append('../static'),
dartdoc.outputDir);
- Futures.wait([compiled, filesCopied]).then((_) {
+ Future.wait([compiled, filesCopied]).then((_) {
dartdoc.cleanup();
print('Documented ${dartdoc.totalLibraries} libraries, '
'${dartdoc.totalTypes} types, and ${dartdoc.totalMembers} members.');
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart ('k') | sdk/lib/async/future.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698