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

Side by Side Diff: pkg/analyzer/lib/src/analyzer_impl.dart

Issue 557333005: Bug fix in analyzer command line to work with pub list (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 analyzer_impl; 5 library analyzer_impl;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'generated/constant.dart'; 10 import 'generated/constant.dart';
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // may be add package resolver 243 // may be add package resolver
244 { 244 {
245 JavaFile packageDirectory; 245 JavaFile packageDirectory;
246 if (options.packageRootPath != null) { 246 if (options.packageRootPath != null) {
247 packageDirectory = new JavaFile(options.packageRootPath); 247 packageDirectory = new JavaFile(options.packageRootPath);
248 resolvers.add(new PackageUriResolver([packageDirectory])); 248 resolvers.add(new PackageUriResolver([packageDirectory]));
249 } else { 249 } else {
250 PubPackageMapProvider pubPackageMapProvider = 250 PubPackageMapProvider pubPackageMapProvider =
251 new PubPackageMapProvider(PhysicalResourceProvider.INSTANCE, sdk); 251 new PubPackageMapProvider(PhysicalResourceProvider.INSTANCE, sdk);
252 PackageMapInfo packageMapInfo = pubPackageMapProvider.computePackageMap( 252 PackageMapInfo packageMapInfo = pubPackageMapProvider.computePackageMap(
253 PhysicalResourceProvider.INSTANCE.getResource('')); 253 PhysicalResourceProvider.INSTANCE.getResource('.'));
254 resolvers.add( 254 resolvers.add(
255 new PackageMapUriResolver( 255 new PackageMapUriResolver(
256 PhysicalResourceProvider.INSTANCE, 256 PhysicalResourceProvider.INSTANCE,
257 packageMapInfo.packageMap)); 257 packageMapInfo.packageMap));
258 } 258 }
259 } 259 }
260 sourceFactory = new SourceFactory(resolvers); 260 sourceFactory = new SourceFactory(resolvers);
261 context = AnalysisEngine.instance.createAnalysisContext(); 261 context = AnalysisEngine.instance.createAnalysisContext();
262 context.sourceFactory = sourceFactory; 262 context.sourceFactory = sourceFactory;
263 Map<String, String> definedVariables = options.definedVariables; 263 Map<String, String> definedVariables = options.definedVariables;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 } 401 }
402 } 402 }
403 403
404 @override 404 @override
405 void logInformation2(String message, Exception exception) { 405 void logInformation2(String message, Exception exception) {
406 if (log) { 406 if (log) {
407 stdout.writeln(message); 407 stdout.writeln(message);
408 } 408 }
409 } 409 }
410 } 410 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698