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

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

Issue 962323002: remove unused imports (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 years, 9 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 | Annotate | Revision Log
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:io' as io; 9 import 'dart:io' as io;
10 10
11 import 'package:analyzer/file_system/file_system.dart'; 11 import 'package:analyzer/file_system/file_system.dart';
12 import 'package:analyzer/source/package_map_provider.dart'; 12 import 'package:analyzer/source/package_map_provider.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 13 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/sdk_io.dart'; 14 import 'package:analyzer/src/generated/sdk_io.dart';
15 import 'package:path/path.dart';
16 15
17 /** 16 /**
18 * The function used to run pub list. 17 * The function used to run pub list.
19 */ 18 */
20 typedef io.ProcessResult RunPubList(Folder folder); 19 typedef io.ProcessResult RunPubList(Folder folder);
21 20
22 /** 21 /**
23 * Implementation of PackageMapProvider that operates by executing pub. 22 * Implementation of PackageMapProvider that operates by executing pub.
24 */ 23 */
25 class PubPackageMapProvider implements PackageMapProvider { 24 class PubPackageMapProvider implements PackageMapProvider {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 /** 154 /**
156 * Run pub list to determine the packages and input files. 155 * Run pub list to determine the packages and input files.
157 */ 156 */
158 io.ProcessResult _runPubListDefault(Folder folder) { 157 io.ProcessResult _runPubListDefault(Folder folder) {
159 return io.Process.runSync( 158 return io.Process.runSync(
160 sdk.pubExecutable.getAbsolutePath(), 159 sdk.pubExecutable.getAbsolutePath(),
161 [PUB_LIST_COMMAND], 160 [PUB_LIST_COMMAND],
162 workingDirectory: folder.path); 161 workingDirectory: folder.path);
163 } 162 }
164 } 163 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/store/split_store.dart ('k') | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698