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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2679243002: Make fields private, add DeclaredVariables, put library into a field. (Closed)
Patch Set: Revert 'analyzeWithoutTasks'. Created 3 years, 10 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 | « pkg/analyzer/lib/src/dart/analysis/analysis_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index 8e63c6cf6ab9f2c90aa5bcaa29a76c5768f32d04..f5694fbea868efbb725b70e9ae6ee69f2743ffab 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -715,10 +715,14 @@ class AnalysisDriver {
CompilationUnit resolvedUnit;
List<int> bytes;
if (analyzeWithoutTasks) {
- AnalyzerImpl analyzer = new AnalyzerImpl(analysisOptions,
- sourceFactory, _fileTracker.fsState, libraryContext.store);
- Map<FileState, UnitAnalysisResult> results =
- analyzer.analyze(library);
+ AnalyzerImpl analyzer = new AnalyzerImpl(
+ analysisOptions,
+ declaredVariables,
+ sourceFactory,
+ _fileTracker.fsState,
+ libraryContext.store,
+ library);
+ Map<FileState, UnitAnalysisResult> results = analyzer.analyze();
UnitAnalysisResult fileResult = results[file];
resolvedUnit = fileResult.unit;
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/analysis_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698