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

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

Issue 2551023005: Prepare for decoupling analyzer ASTs from element model. (Closed)
Patch Set: Address review comments Created 4 years 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 ad004bf2afc19f3e8e1516dbd99c8bf8ffb462a5..c7c0a93ea2029e27eb809701d42bc6608f22b263 100644
--- a/pkg/analyzer/benchmark/errors_in_all_libraries.dart
+++ b/pkg/analyzer/benchmark/errors_in_all_libraries.dart
@@ -9,6 +9,7 @@
/// it easier to connect to this with observatory.
import 'dart:io';
+import 'package:analyzer/dart/ast/standard_resolution_map.dart';
import 'package:analyzer/dart/element/element.dart';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/file_system/physical_file_system.dart';
@@ -61,7 +62,8 @@ void main(List<String> args) {
// Walk all of the transitively referenced libraries and compute errors.
var errorCount = 0;
- var allLibraries = _reachableLibraries(initialLibrary.element.library);
+ var allLibraries = _reachableLibraries(
+ resolutionMap.elementForCompilationUnit(initialLibrary).library);
for (var lib in allLibraries) {
for (var unit in lib.units) {
var source = unit.source;

Powered by Google App Engine
This is Rietveld 408576698