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

Unified Diff: lib/src/info.dart

Issue 1160223006: Fix DDC errors on DDC (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: address comments Created 5 years, 7 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 | « lib/src/dependency_graph.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 1386013bd84c754f133cfa390a55efe35d90e048..d235807a394a64fede651d0497e6e7cce23e426d 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -720,8 +720,9 @@ final List<Type> infoTypes = () {
var allTypes = new Set();
var baseTypes = new Set();
var infoMirror = reflectClass(StaticInfo);
- var declarations = infoMirror.owner.declarations.values;
- for (var cls in declarations.where((d) => d is ClassMirror)) {
+ var libMirror = infoMirror.owner as LibraryMirror;
+ var declarations = libMirror.declarations.values;
+ for (ClassMirror cls in declarations.where((d) => d is ClassMirror)) {
if (cls.isSubtypeOf(infoMirror)) {
allTypes.add(cls);
baseTypes.add(cls.superclass);
« no previous file with comments | « lib/src/dependency_graph.dart ('k') | lib/src/js/printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698