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(); |
} |