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

Unified Diff: lib/transformer.dart

Issue 1006513003: make sure we follow the whole super chain (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: format 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 | « lib/src/mirror_loader.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/transformer.dart
diff --git a/lib/transformer.dart b/lib/transformer.dart
index 8fec4b7bb024d6b379e52bc3b41972063c211eba..078c34d76346bf7a712668832b501800d9d571ed 100644
--- a/lib/transformer.dart
+++ b/lib/transformer.dart
@@ -215,8 +215,9 @@ class _BootstrapFileBuilder {
_readAnnotations(method);
}
for (var clazz in _classesOfLibrary(library, seen)) {
- var superClass = clazz.supertype;
- while (superClass != null) {
+ readSuperClassAnnotations(InterfaceType superClass) {
+ if (superClass == null) return;
+ readSuperClassAnnotations(superClass.superclass);
if (_readAnnotations(superClass.element) &&
superClass.element.library != clazz.library) {
_logger.warning(
@@ -225,8 +226,8 @@ class _BootstrapFileBuilder {
'${superClass.name} has a dependency on this library '
'(possibly transitive).');
}
- superClass = superClass.superclass;
}
+ readSuperClassAnnotations(clazz.supertype);
_readAnnotations(clazz);
}
}
« no previous file with comments | « lib/src/mirror_loader.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698