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

Unified Diff: pkg/analyzer_plugin/lib/plugin/plugin.dart

Issue 2874803003: Add support for built-in plugins (Closed)
Patch Set: Created 3 years, 7 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
Index: pkg/analyzer_plugin/lib/plugin/plugin.dart
diff --git a/pkg/analyzer_plugin/lib/plugin/plugin.dart b/pkg/analyzer_plugin/lib/plugin/plugin.dart
index 3a1ef26033144c672e7fef88393ca94b1f2fc1a6..a5f3fa1b0d70cdd1577deaf5e494f875eb04df68 100644
--- a/pkg/analyzer_plugin/lib/plugin/plugin.dart
+++ b/pkg/analyzer_plugin/lib/plugin/plugin.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer/file_system/file_system.dart';
+import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/src/dart/analysis/driver.dart'
show AnalysisDriverGeneric, AnalysisDriverScheduler, PerformanceLog;
import 'package:analyzer/src/dart/analysis/file_state.dart';
@@ -83,7 +84,8 @@ abstract class ServerPlugin {
* is given, then it will be used to access the file system. Otherwise a
* resource provider that accesses the physical file system will be used.
*/
- ServerPlugin(this.resourceProvider) {
+ ServerPlugin(ResourceProvider provider)
+ : resourceProvider = provider ?? PhysicalResourceProvider.INSTANCE {
analysisDriverScheduler = new AnalysisDriverScheduler(performanceLog);
analysisDriverScheduler.start();
}
« no previous file with comments | « pkg/analyzer/test/instrumentation/instrumentation_test.dart ('k') | pkg/analyzer_plugin/lib/src/channel/isolate_channel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698