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

Side by Side Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 2795743002: Add context information to driver and add hooks for plugin management (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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_cli.src.driver; 5 library analyzer_cli.src.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:io' as io; 9 import 'dart:io' as io;
10 10
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 579
580 if (options.enableNewAnalysisDriver) { 580 if (options.enableNewAnalysisDriver) {
581 PerformanceLog log = new PerformanceLog(null); 581 PerformanceLog log = new PerformanceLog(null);
582 AnalysisDriverScheduler scheduler = new AnalysisDriverScheduler(log); 582 AnalysisDriverScheduler scheduler = new AnalysisDriverScheduler(log);
583 analysisDriver = new AnalysisDriver( 583 analysisDriver = new AnalysisDriver(
584 scheduler, 584 scheduler,
585 log, 585 log,
586 resourceProvider, 586 resourceProvider,
587 analysisDriverMemoryByteStore, 587 analysisDriverMemoryByteStore,
588 new FileContentOverlay(), 588 new FileContentOverlay(),
589 'test', 589 null,
590 context.sourceFactory, 590 context.sourceFactory,
591 context.analysisOptions); 591 context.analysisOptions);
592 analysisDriver.results.listen((_) {}); 592 analysisDriver.results.listen((_) {});
593 analysisDriver.exceptions.listen((_) {}); 593 analysisDriver.exceptions.listen((_) {});
594 scheduler.start(); 594 scheduler.start();
595 } else { 595 } else {
596 if (sdkBundle != null) { 596 if (sdkBundle != null) {
597 _context.resultProvider = 597 _context.resultProvider =
598 new InputPackagesResultProvider(_context, summaryDataStore); 598 new InputPackagesResultProvider(_context, summaryDataStore);
599 } 599 }
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 for (var package in packages) { 912 for (var package in packages) {
913 var packageName = path.basename(package.path); 913 var packageName = path.basename(package.path);
914 var realPath = package.resolveSymbolicLinksSync(); 914 var realPath = package.resolveSymbolicLinksSync();
915 result[packageName] = [ 915 result[packageName] = [
916 PhysicalResourceProvider.INSTANCE.getFolder(realPath) 916 PhysicalResourceProvider.INSTANCE.getFolder(realPath)
917 ]; 917 ];
918 } 918 }
919 return result; 919 return result;
920 } 920 }
921 } 921 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698