Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.
The most recent comments in #300 (from here) report on a bug (missing import prefixes for certain expressions). Turns out that generic function instantiations (f<T>) were not supported. This PR adds support for those expressions in _extractConstantCode (which means that it should be supported everywhere, including metadata). This PR also prepares reflectable for release as version 4.0.4.
The most recent comments in #300 (from here) report on a bug (missing import prefixes for certain expressions). Turns out that generic function instantiations (
f<T>
) were not supported. This PR adds support for those expressions in_extractConstantCode
(which means that it should be supported everywhere, including metadata). This PR also prepares reflectable for release as version 4.0.4.