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
381 stars 57 forks source link

Update analyzer to 5.0.0 #288

Closed eernstg closed 2 years ago

eernstg commented 2 years ago

The analyzer changed in several ways, and this migration gave rise to many changes. In particular, mixins and enums are no longer represented as ClassElements with an isEnum and an isMixin, and this causes many changes to types and type tests.

gmpassos commented 2 years ago

👍🏻 👏🏻 just waiting for the release! Thanx

eernstg commented 2 years ago

287, #289 will be released first, but this one is still needed because we have to stop using a bunch of APIs that are deprecated (and indeed deleted from analyzer 5.0.0).

eernstg commented 2 years ago

@sigurdm, this one is rather long (a whole bunch of methods have been deprecated in the analyzer). Would it be possible for you to find the time to review it?