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

Unified Diff: pkg/analyzer/lib/src/summary/link.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/dart/analysis/driver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 8640a71aba0e1aaeb12371a1379370c317314b1f..ce323b9964984bd3284138c2c8c4647823dbbccd 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -1294,8 +1294,11 @@ class CompilationUnitElementInBuildUnit extends CompilationUnitElementForLink {
*/
void link() {
if (library._linker.strongMode) {
- new InstanceMemberInferrer(enclosingElement._linker.typeProvider,
- enclosingElement.inheritanceManager, new Set<FieldElement>())
+ new InstanceMemberInferrer(
+ enclosingElement._linker.typeProvider,
+ (clazz) => (clazz.library as LibraryElementInBuildUnit)
+ .inheritanceManager,
+ new Set<FieldElement>())
.inferCompilationUnit(this);
for (TopLevelVariableElementForLink variable in topLevelVariables) {
variable.link(this);
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698