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

Unified Diff: pkg/analyzer/lib/src/generated/static_type_analyzer.dart

Issue 757193002: Fix for resolving super.method() invocations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
index 34ab70766320c7c7ba21cfabff02ae5c19ef1058..084b65de3fc5ede09fe750d3c5687810331a48ae 100644
--- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
+++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
@@ -45,10 +45,10 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
DartType _dynamicType;
/**
- * The type representing the class containing the nodes being analyzed, or `null` if the
- * nodes are not within a class.
+ * The type representing the class containing the nodes being analyzed,
+ * or `null` if the nodes are not within a class.
*/
- InterfaceType _thisType;
+ InterfaceType thisType;
/**
* The object keeping track of which elements have had their types overridden.
@@ -79,19 +79,6 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
}
/**
- * Set the type of the class being analyzed to the given type.
- *
- * @param thisType the type representing the class containing the nodes being analyzed
- */
- void set thisType(InterfaceType thisType) {
- this._thisType = thisType;
- }
-
- get thisType_J2DAccessor => _thisType;
-
- set thisType_J2DAccessor(__v) => _thisType = __v;
-
- /**
* The Dart Language Specification, 12.5: <blockquote>The static type of a string literal is
* `String`.</blockquote>
*/
@@ -1211,12 +1198,12 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
@override
Object visitSuperExpression(SuperExpression node) {
- if (_thisType == null) {
+ if (thisType == null) {
// TODO(brianwilkerson) Report this error if it hasn't already been
// reported.
_recordStaticType(node, _dynamicType);
} else {
- _recordStaticType(node, _thisType);
+ _recordStaticType(node, thisType);
}
return null;
}
@@ -1233,12 +1220,12 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
*/
@override
Object visitThisExpression(ThisExpression node) {
- if (_thisType == null) {
+ if (thisType == null) {
// TODO(brianwilkerson) Report this error if it hasn't already been
// reported.
_recordStaticType(node, _dynamicType);
} else {
- _recordStaticType(node, _thisType);
+ _recordStaticType(node, thisType);
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698