dart2js: MirrorsUsed: need a way to select type + subtypes, or metatargets #13283
Labels
library-mirrors
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-enhancement
A request for a change that isn't a bug
web-dart2js
Milestone
"targets:" in MirrorsUsed seems to select only the exact type, ideally it would accept subtypes. For example:
// in package:observe
@MirrorsUsed(targets: 'observe.Observable', override: 'observe')
// We might reflect on this:
class MyFoo implements Observable {
@observable int foo; // this is reflected on
}
Alternatively if we had "metatargets:" I think that would work too.
One other twist, if I had:
class FooElement extends HtmlElement implements Observable {
@observable int foo; // this is reflected on
}
ideally, "foo" would be reflectable, but everything in HtmlElement would not be (since that would probably mess up tree shaking big time).
I think y'all know about this enhancement request already, just filing this so I can mark the Polymer code-size bug as blocked on it.
The text was updated successfully, but these errors were encountered: