google / google/reflectable.dart

Missing feature: Reflectable does not yet handle `...` and `if` in constant collections

Open
#181 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dart
Stars
386
Forks
67
PR merge metrics
No merged PRs in 30d

Description

This means that any use of reflectable that requires generation of code like, e.g., `const [if (b) 42, ...[43, 44]]` will fail. This issue is concerned with adding support for generating such code, or maybe expanding it into constructs which are supported today.

Note that it is still necessary to use `--enable-experiment=constant-update-2018` to get support for these constructs in `dart` and `dartanalyzer`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.