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

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

Issue 751553003: Extend resolution Scope with ResolutionContext and set it for ResolverVisitor. (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 ac3c180cfc1ae13ee34fbfc5f0fe7a5af6ec1a24..1d21abc228ea2c72ed9e4343b1cc930bb327c71f 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -11016,10 +11016,10 @@ class ResolverVisitor extends ScopedVisitor {
StaticTypeAnalyzer _typeAnalyzer;
/**
- * The class element representing the class containing the current node, or `null` if the
- * current node is not contained in a class.
+ * The class element representing the class containing the current node,
+ * or `null` if the current node is not contained in a class.
*/
- ClassElement _enclosingClass = null;
+ ClassElement enclosingClass = null;
/**
* The class declaration representing the class containing the current node, or `null` if
@@ -11132,18 +11132,6 @@ class ResolverVisitor extends ScopedVisitor {
set elementResolver_J2DAccessor(__v) => _elementResolver = __v;
/**
- * Return the class element representing the class containing the current node, or `null` if
- * the current node is not contained in a class.
- *
- * @return the class element representing the class containing the current node
- */
- ClassElement get enclosingClass => _enclosingClass;
-
- get enclosingClass_J2DAccessor => _enclosingClass;
-
- set enclosingClass_J2DAccessor(__v) => _enclosingClass = __v;
-
- /**
* Return the element representing the function containing the current node, or `null` if
* the current node is not contained in a function.
*
@@ -11433,17 +11421,17 @@ class ResolverVisitor extends ScopedVisitor {
//
// Continue the class resolution.
//
- ClassElement outerType = _enclosingClass;
+ ClassElement outerType = enclosingClass;
try {
- _enclosingClass = node.element;
+ enclosingClass = node.element;
_typeAnalyzer.thisType =
- _enclosingClass == null ? null : _enclosingClass.type;
+ enclosingClass == null ? null : enclosingClass.type;
super.visitClassDeclaration(node);
node.accept(_elementResolver);
node.accept(_typeAnalyzer);
} finally {
_typeAnalyzer.thisType = outerType == null ? null : outerType.type;
- _enclosingClass = outerType;
+ enclosingClass = outerType;
_enclosingClassDeclaration = null;
}
return null;
@@ -12637,7 +12625,7 @@ abstract class ScopedVisitor extends UnifyingAstVisitor<Object> {
* The class containing the AST nodes being visited,
* or `null` if we are not in the scope of a class.
*/
- ClassElement _enclosingClass;
+ ClassElement enclosingClass;
/**
* Initialize a newly created visitor to resolve the nodes in a compilation unit.
@@ -12848,15 +12836,15 @@ abstract class ScopedVisitor extends UnifyingAstVisitor<Object> {
new CaughtException(new AnalysisException(), null));
super.visitClassDeclaration(node);
} else {
- ClassElement outerClass = _enclosingClass;
+ ClassElement outerClass = enclosingClass;
try {
- _enclosingClass = node.element;
+ enclosingClass = node.element;
_nameScope = new TypeParameterScope(_nameScope, classElement);
visitClassDeclarationInScope(node);
_nameScope = new ClassScope(_nameScope, classElement);
visitClassMembersInScope(node);
} finally {
- _enclosingClass = outerClass;
+ enclosingClass = outerClass;
}
}
} finally {
« no previous file with comments | « pkg/analyzer/lib/src/generated/incremental_resolver.dart ('k') | pkg/analyzer/test/generated/incremental_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698