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

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

Issue 1845403003: Begin implementing type inference for AST summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Break a long line. Created 4 years, 9 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/task/dart.dart ('k') | pkg/analyzer/test/src/summary/summarize_ast_strong_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/task/strong_mode.dart
diff --git a/pkg/analyzer/lib/src/task/strong_mode.dart b/pkg/analyzer/lib/src/task/strong_mode.dart
index 3d621cf0043670395b1f96baf494069035793162..233e5c48ffaaf607fe44d6d200d2a453fe9d6509 100644
--- a/pkg/analyzer/lib/src/task/strong_mode.dart
+++ b/pkg/analyzer/lib/src/task/strong_mode.dart
@@ -75,7 +75,7 @@ class InstanceMemberInferrer {
/**
* The inheritance manager used to find overridden method.
*/
- InheritanceManager inheritanceManager;
+ final InheritanceManager inheritanceManager;
/**
* The classes that have been visited while attempting to infer the types of
@@ -87,7 +87,8 @@ class InstanceMemberInferrer {
/**
* Initialize a newly create inferrer.
*/
- InstanceMemberInferrer(this.typeProvider, {TypeSystem typeSystem})
+ InstanceMemberInferrer(this.typeProvider, this.inheritanceManager,
+ {TypeSystem typeSystem})
: typeSystem = (typeSystem != null) ? typeSystem : new TypeSystemImpl();
/**
@@ -95,7 +96,6 @@ class InstanceMemberInferrer {
* compilation [unit].
*/
void inferCompilationUnit(CompilationUnitElement unit) {
- inheritanceManager = new InheritanceManager(unit.library);
unit.types.forEach((ClassElement classElement) {
try {
_inferClass(classElement);
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/src/summary/summarize_ast_strong_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698