enum_map_gen 0.3.2
enum_map_gen: ^0.3.2 copied to clipboard
A generator for enum_map package, a Map with compile-time check that every enum value has an entry in it.
0.3.2 #
- BREAKING: Removed the
MyEnumElementextension. UseEnumElement.constantsfromanalyzerinstead. - Require
analyzer8.1.1 or later,source_gen4.x, andbuild3.x or 4.x. This supportsanalyzerup to 14.x. Projects on olderanalyzerversions resolve 0.3.1. - Fixed blank lines between entries in the generated
entriesgetter.
0.3.1 #
- Using source_gen_test for testing generated code.
0.3.0 #
- BREAKING: Unsupported operations throw
UnsupportedErrorinstead ofException. - BREAKING: Unmodifiable map's
putIfAbsentthrowsUnsupportedErrorinstead of returning an always-existing value. - Added golden tests for generation result.
- Added tests on goldens.
- Fixed linter issues on output.
0.2.0 #
- Require
enum_map0.2.0, see its changelog.
0.1.0 #
- Initial release.