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

Unified Diff: pkg/analyzer2dart/bin/analyzer2dart.dart

Issue 526823002: Use ResourceProvider instead of specialized setRealRoot/setFakeRoot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/bin/analyzer2dart.dart
diff --git a/pkg/analyzer2dart/bin/analyzer2dart.dart b/pkg/analyzer2dart/bin/analyzer2dart.dart
index b016a7893f0d7accb004ac46bf2c8ef053148f5f..e5e6328c7067a4dcf718c782bb76e74015fa1eb5 100644
--- a/pkg/analyzer2dart/bin/analyzer2dart.dart
+++ b/pkg/analyzer2dart/bin/analyzer2dart.dart
@@ -5,6 +5,7 @@
/** The entry point for the command-line version analyzer2dart. */
library analyzer2dart.cmdline;
+import 'package:analyzer/file_system/physical_file_system.dart';
import 'package:analyzer/analyzer.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/sdk.dart';
@@ -18,11 +19,12 @@ void main(List<String> args) {
// TODO(paulberry): hacky
String path = args[0];
+ PhysicalResourceProvider provider = PhysicalResourceProvider.INSTANCE;
DartSdk sdk = DirectoryBasedDartSdk.defaultSdk;
- Driver analyzer2Dart = new Driver(sdk);
+ Driver analyzer2Dart = new Driver(provider, sdk);
// Tell the analysis server about the root
- Source source = analyzer2Dart.setRealRoot(path);
+ Source source = analyzer2Dart.setRoot(path);
// Get the library element associated with the source.
FunctionElement entryPointElement = analyzer2Dart.resolveEntryPoint(source);
« no previous file with comments | « no previous file | pkg/analyzer2dart/lib/src/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698