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

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

Issue 524463006: Use MockSdk to speed-up tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rollback r39701 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 3f618f81e48c9b7476398185c703d75e384658c7..b016a7893f0d7accb004ac46bf2c8ef053148f5f 100644
--- a/pkg/analyzer2dart/bin/analyzer2dart.dart
+++ b/pkg/analyzer2dart/bin/analyzer2dart.dart
@@ -7,6 +7,8 @@ library analyzer2dart.cmdline;
import 'package:analyzer/analyzer.dart';
import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/src/generated/sdk.dart';
+import 'package:analyzer/src/generated/sdk_io.dart';
import 'package:analyzer/src/generated/source_io.dart';
import '../lib/src/closed_world.dart';
@@ -16,7 +18,8 @@ void main(List<String> args) {
// TODO(paulberry): hacky
String path = args[0];
- Driver analyzer2Dart = new Driver();
+ DartSdk sdk = DirectoryBasedDartSdk.defaultSdk;
+ Driver analyzer2Dart = new Driver(sdk);
// Tell the analysis server about the root
Source source = analyzer2Dart.setRealRoot(path);
« 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