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

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

Issue 1833743002: Resynthesize _DeferredClassElement instead of actual ClassElementImpl. (Closed) Base URL: git@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
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 585a012336957e4726023786b012245b00b9451d..e458c33d83996e9de0d8dae0875f33c3f36d5840 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -1082,7 +1082,9 @@ class CompilationUnitElementImpl extends UriReferencedElementImpl
*/
void set types(List<ClassElement> types) {
for (ClassElement type in types) {
- (type as ClassElementImpl).enclosingElement = this;
+ if (type is ClassElementImpl) {
Paul Berry 2016/03/24 19:40:14 Nit: it's not obvious without reading the rest of
+ type.enclosingElement = this;
+ }
}
this._types = types;
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698