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

Unified Diff: pkg/analyzer/lib/src/generated/resolver.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/resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/resolver.dart b/pkg/analyzer/lib/src/generated/resolver.dart
index f033d5373e57d1aa5dc1645be810d36e50b8c7f3..bc8654af222cc3cf98577b3028221355e97b59f2 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -11458,6 +11458,28 @@ class ResolverVisitor extends ScopedVisitor {
return null;
}
+ /**
+ * Implementation of this method should be synchronized with
+ * [visitClassDeclaration].
+ */
+ visitClassDeclarationIncrementally(ClassDeclaration node) {
+ //
+ // Resolve the metadata in the library scope.
+ //
+ if (node.metadata != null) {
+ node.metadata.accept(this);
+ }
+ _enclosingClassDeclaration = node;
+ //
+ // Continue the class resolution.
+ //
+ enclosingClass = node.element;
+ _typeAnalyzer.thisType =
+ enclosingClass == null ? null : enclosingClass.type;
+ node.accept(_elementResolver);
+ node.accept(_typeAnalyzer);
+ }
+
@override
Object visitComment(Comment node) {
if (node.parent is FunctionDeclaration ||

Powered by Google App Engine
This is Rietveld 408576698