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

Unified Diff: pkg/analyzer/benchmark/errors_in_all_libraries.dart

Issue 2257483002: Remove more references to FileBasedSource (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/analyzer/benchmark/errors_in_all_libraries.dart
diff --git a/pkg/analyzer/benchmark/errors_in_all_libraries.dart b/pkg/analyzer/benchmark/errors_in_all_libraries.dart
index da419d9b82c988aa2cb6892681d36974cf9f55c6..be42c2b22cb7059f67f643553f2b354ca0965567 100644
--- a/pkg/analyzer/benchmark/errors_in_all_libraries.dart
+++ b/pkg/analyzer/benchmark/errors_in_all_libraries.dart
@@ -18,6 +18,7 @@ import 'package:analyzer/src/generated/java_io.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/source_io.dart';
+import 'package:analyzer/src/source/source_resource.dart';
import 'package:path/path.dart' as p;
void main(List<String> args) {
@@ -47,7 +48,7 @@ void main(List<String> args) {
options.strongModeHints = true;
var mainSource =
- new FileBasedSource(new JavaFile(p.fromUri(Platform.script)));
+ new FileSource(resourceProvider.getFile(p.fromUri(Platform.script)));
context.applyChanges(new ChangeSet()..addedSource(mainSource));
var initialLibrary =
« no previous file with comments | « no previous file | pkg/analyzer/example/resolver_driver.dart » ('j') | pkg/analyzer/test/src/summary/in_summary_source_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698