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

Unified Diff: pkg/analyzer/lib/source/pub_package_map_provider.dart

Issue 975453004: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/analyzer/lib/source/package_map_resolver.dart ('k') | pkg/analyzer/lib/src/analyzer_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/source/pub_package_map_provider.dart
diff --git a/pkg/analyzer/lib/source/pub_package_map_provider.dart b/pkg/analyzer/lib/source/pub_package_map_provider.dart
index 38a9bbb53cc8c77ec6c2b298472e2ccd263db4a5..e16fbefac6eeb0f952a65ed89047aab9e18d2d81 100644
--- a/pkg/analyzer/lib/source/pub_package_map_provider.dart
+++ b/pkg/analyzer/lib/source/pub_package_map_provider.dart
@@ -71,8 +71,8 @@ class PubPackageMapProvider implements PackageMapProvider {
if (result == null || result.exitCode != 0) {
String exitCode =
result != null ? 'exit code ${result.exitCode}' : 'null';
- AnalysisEngine.instance.logger.logInformation(
- "pub $PUB_LIST_COMMAND failed: $exitCode");
+ AnalysisEngine.instance.logger
+ .logInformation("pub $PUB_LIST_COMMAND failed: $exitCode");
return computePackageMapError(folder);
}
try {
@@ -96,7 +96,8 @@ class PubPackageMapProvider implements PackageMapProvider {
// Unfortunately, "pub list-package-dirs" doesn't tell us dependencies when
// an error occurs, so just assume there is one dependency, "pubspec.lock".
List<String> dependencies = <String>[
- resourceProvider.pathContext.join(folder.path, PUBSPEC_LOCK_NAME)];
+ resourceProvider.pathContext.join(folder.path, PUBSPEC_LOCK_NAME)
+ ];
return new PackageMapInfo(null, dependencies.toSet());
}
@@ -155,9 +156,8 @@ class PubPackageMapProvider implements PackageMapProvider {
* Run pub list to determine the packages and input files.
*/
io.ProcessResult _runPubListDefault(Folder folder) {
- return io.Process.runSync(
- sdk.pubExecutable.getAbsolutePath(),
- [PUB_LIST_COMMAND],
- workingDirectory: folder.path);
+ return io.Process.runSync(sdk.pubExecutable.getAbsolutePath(), [
+ PUB_LIST_COMMAND
+ ], workingDirectory: folder.path);
}
}
« no previous file with comments | « pkg/analyzer/lib/source/package_map_resolver.dart ('k') | pkg/analyzer/lib/src/analyzer_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698