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

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

Issue 2743773004: Revert "Infer types of instance methods before any other inference." (Closed)
Patch Set: Created 3 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 | « no previous file | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 9eb38ab93468fcc8c7079b93fd8b17b0948c5d83..aa31f7d2ed102124249b6a2c5a055623634bec38 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -455,12 +455,6 @@ class ClassElementImpl extends AbstractClassElementImpl
List<MethodElement> _methods;
/**
- * A flag indicating whether the types associated with the instance methods of
- * this class have been inferred.
- */
- bool _hasInferredInstanceMethods = false;
-
- /**
* A flag indicating whether the types associated with the instance members of
* this class have been inferred.
*/
@@ -657,18 +651,6 @@ class ClassElementImpl extends AbstractClassElementImpl
_hasBeenInferred = hasBeenInferred;
}
- bool get hasInferredInstanceMethods {
- if (_unlinkedClass != null) {
- return context.analysisOptions.strongMode;
- }
- return _hasInferredInstanceMethods;
- }
-
- void set hasInferredInstanceMethods(bool done) {
- _assertNotResynthesized(_unlinkedClass);
- _hasInferredInstanceMethods = done;
- }
-
@override
bool get hasNonFinalField {
List<ClassElement> classesToVisit = new List<ClassElement>();
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698