google / reflectable.dart

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.
https://pub.dev/packages/reflectable
BSD 3-Clause "New" or "Revised" License
374 stars 56 forks source link

Fix #300 #303

Closed eernstg closed 1 year ago

eernstg commented 1 year ago

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.

eernstg commented 1 year ago

Hi @sigurdm, here's one more bug fix. Can you find the time to take a look?

eernstg commented 1 year ago

Thanks!