mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 02:17:16 +00:00
b321254093
constant. As const-only parameters are not planned, see https://github.com/dart-lang/language/issues/1684, an annotation with analyzer support could help a bit at least, see https://github.com/dart-lang/sdk/issues/29381. The motivation is to enforce const arguments for methods annotated with `@ResourceIdentifier`, to be able to record the argument values at build time, see https://dart-review.googlesource.com/c/sdk/+/329961. Tested: pkg/analyzer/test/src/diagnostics/const_argument_test.dart Change-Id: I2b8d2dce0c899fc0caa4985d892a5d031c747521 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/357701 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Lasse Nielsen <lrn@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Moritz Sümmermann <mosum@google.com> Reviewed-by: Marya Belanger <mbelanger@google.com> |
||
---|---|---|
.. | ||
analysis_driver | ||
benchmark/heap | ||
diagnostics | ||
experiments | ||
messages | ||
summary | ||
test_log_parser | ||
wolf | ||
fasta_migration_progress.sh | ||
generate_files | ||
update_id_tests.dart |