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

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

Issue 1008583002: Fix hints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/incremental_resolver.dart
diff --git a/pkg/analyzer/lib/src/generated/incremental_resolver.dart b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
index 5832ef8365a03e585f38a8e9443e5d68d8ca46f2..fe0df9254d5d239ee9ef5d4a8dc24ba0bfc87475 100644
--- a/pkg/analyzer/lib/src/generated/incremental_resolver.dart
+++ b/pkg/analyzer/lib/src/generated/incremental_resolver.dart
@@ -637,19 +637,19 @@ class DeclarationMatcher extends RecursiveAstVisitor {
element is CompilationUnitElement ? element : element.enclosingElement;
while (parent != null) {
if (parent is CompilationUnitElement) {
- _enclosingUnit = parent as CompilationUnitElement;
+ _enclosingUnit = parent;
_enclosingLibrary = element.library;
} else if (parent is ClassElement) {
if (_enclosingClass == null) {
- _enclosingClass = parent as ClassElement;
+ _enclosingClass = parent;
}
} else if (parent is FunctionTypeAliasElement) {
if (_enclosingAlias == null) {
- _enclosingAlias = parent as FunctionTypeAliasElement;
+ _enclosingAlias = parent;
}
} else if (parent is ParameterElement) {
if (_enclosingParameter == null) {
- _enclosingParameter = parent as ParameterElement;
+ _enclosingParameter = parent;
}
}
parent = parent.enclosingElement;
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698