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

Side by Side Diff: pkg/analyzer/lib/source/pub_package_map_provider.dart

Issue 1322513004: Reformat code to reduce churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/plugin/options.dart ('k') | pkg/analyzer/lib/source/sdk_ext.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library source.pub_package_map_provider; 5 library source.pub_package_map_provider;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:core' hide Resource; 9 import 'dart:core' hide Resource;
10 import 'dart:io' as io; 10 import 'dart:io' as io;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 /** 156 /**
157 * Run pub list to determine the packages and input files. 157 * Run pub list to determine the packages and input files.
158 */ 158 */
159 io.ProcessResult _runPubListDefault(Folder folder) { 159 io.ProcessResult _runPubListDefault(Folder folder) {
160 String executablePath = sdk.pubExecutable.getAbsolutePath(); 160 String executablePath = sdk.pubExecutable.getAbsolutePath();
161 List<String> arguments = [PUB_LIST_COMMAND]; 161 List<String> arguments = [PUB_LIST_COMMAND];
162 String workingDirectory = folder.path; 162 String workingDirectory = folder.path;
163 int subprocessId = AnalysisEngine.instance.instrumentationService 163 int subprocessId = AnalysisEngine.instance.instrumentationService
164 .logSubprocessStart(executablePath, arguments, workingDirectory); 164 .logSubprocessStart(executablePath, arguments, workingDirectory);
165 io.ProcessResult result = io.Process.runSync(executablePath, arguments, 165 io.ProcessResult result = io.Process
166 workingDirectory: workingDirectory); 166 .runSync(executablePath, arguments, workingDirectory: workingDirectory);
167 AnalysisEngine.instance.instrumentationService.logSubprocessResult( 167 AnalysisEngine.instance.instrumentationService.logSubprocessResult(
168 subprocessId, result.exitCode, result.stdout, result.stderr); 168 subprocessId, result.exitCode, result.stdout, result.stderr);
169 return result; 169 return result;
170 } 170 }
171 } 171 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/plugin/options.dart ('k') | pkg/analyzer/lib/source/sdk_ext.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698