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

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

Issue 809763002: Issue 21886. Make enums available outside of the defining library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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/test/generated/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c272ed1969f1ca6dad2030c4ab6a70ccb03073ad..bd25f67db5e44bb1c1c3c810ebe3b29987200d7c 100644
--- a/pkg/analyzer/lib/src/generated/resolver.dart
+++ b/pkg/analyzer/lib/src/generated/resolver.dart
@@ -10223,6 +10223,9 @@ class NamespaceBuilder {
for (PropertyAccessorElement element in compilationUnit.accessors) {
_addIfPublic(definedNames, element);
}
+ for (ClassElement element in compilationUnit.enums) {
+ _addIfPublic(definedNames, element);
+ }
for (FunctionElement element in compilationUnit.functions) {
_addIfPublic(definedNames, element);
}
@@ -11342,6 +11345,13 @@ class ResolverVisitor extends ScopedVisitor {
}
/**
+ * Prepares this [ResolverVisitor] to using it for incremental resolution.
+ */
+ void initForIncrementalResolution() {
+ _overrideManager.enterScope();
+ }
+
+ /**
* If it is appropriate to do so, override the current type of the static and propagated elements
* associated with the given expression with the given type. Generally speaking, it is appropriate
* if the given type is more specific than the current type.
@@ -11588,13 +11598,6 @@ class ResolverVisitor extends ScopedVisitor {
return null;
}
- /**
- * Prepares this [ResolverVisitor] to using it for incremental resolution.
- */
- void initForIncrementalResolution() {
- _overrideManager.enterScope();
- }
-
@override
Object visitCompilationUnit(CompilationUnit node) {
//
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698