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

Unified Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 1810393002: Fix unguarded cast to an impl class (issue 26035) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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 | « no previous file | pkg/analyzer/test/src/dart/element/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 04cdec651d799b4892edc2b5363d8b1390484ac4..d00ab5799dd8c61e492753b216339c22fcb0a550 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -3592,6 +3592,9 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement {
// a newly reachable node.
Set<LibraryElementImpl> active = new HashSet();
void invalidate(LibraryElement library) {
+ if (library is LibraryElementHandle) {
+ library = (library as LibraryElementHandle).actualElement;
+ }
LibraryElementImpl libraryImpl = library;
if (active.add(libraryImpl)) {
if (libraryImpl._libraryCycle != null) {
« no previous file with comments | « no previous file | pkg/analyzer/test/src/dart/element/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698