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

Unified Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 2832893002: Issue 29398. Infer instance members using InheritanceManager of the ClassElement. (Closed)
Patch Set: Created 3 years, 8 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/summary/link.dart ('k') | pkg/analyzer/lib/src/task/strong_mode.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/dart.dart
diff --git a/pkg/analyzer/lib/src/task/dart.dart b/pkg/analyzer/lib/src/task/dart.dart
index e309717e8759e5bb6dfa5f2393c408c052049ed2..a7856f9490311fdd1e8cd44ca8cd74738d1130f0 100644
--- a/pkg/analyzer/lib/src/task/dart.dart
+++ b/pkg/analyzer/lib/src/task/dart.dart
@@ -3490,11 +3490,10 @@ class InferInstanceMembersInUnitTask extends SourceBasedAnalysisTask {
// Infer instance members.
//
if (context.analysisOptions.strongMode) {
+ var inheritanceManager = new InheritanceManager(
+ resolutionMap.elementDeclaredByCompilationUnit(unit).library);
InstanceMemberInferrer inferrer = new InstanceMemberInferrer(
- typeProvider,
- new InheritanceManager(
- resolutionMap.elementDeclaredByCompilationUnit(unit).library),
- fieldsWithDisabledInference,
+ typeProvider, (_) => inheritanceManager, fieldsWithDisabledInference,
typeSystem: context.typeSystem);
inferrer.inferCompilationUnit(unit.element);
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/link.dart ('k') | pkg/analyzer/lib/src/task/strong_mode.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698