[ dart:developer ] Add deprecation message to MAX_USER_TAGS

Follow up to https://dart-review.googlesource.com/c/sdk/+/251120/

Change-Id: Ib7fa8d1ece6d3301489f70d58793b65e0c1cfe0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/251240
Commit-Queue: Ben Konyi <bkonyi@google.com>
Reviewed-by: Kevin Moore <kevmoo@google.com>
This commit is contained in:
Ben Konyi 2022-07-12 15:40:12 +00:00 committed by Commit Bot
parent 8aafcbfe80
commit 4c263d3754
2 changed files with 7 additions and 3 deletions

View file

@ -34,6 +34,10 @@
- Deprecates `BidirectionalIterator`.
### `dart:developer`
- Deprecates `UserTag.MAX_USER_TAGS` in favor of `UserTag.maxUserTags`.
### Dart VM
Implementation of `async`/`async*`/`sync*` is revamped in Dart VM,

View file

@ -10,9 +10,9 @@ abstract class UserTag {
/// The maximum number of UserTag instances that can be created by a program.
static const maxUserTags = 64;
@deprecated
// TODO: We shouldn't be using SCREAMING_CAPS for constants, so this should
// be removed for Dart 3.0.
@Deprecated("Use 'maxUserTags' instead. Will be removed in Dart 3.0.")
// TODO(bkonyi): We shouldn't be using SCREAMING_CAPS for constants, so this
// should be removed for Dart 3.0.
static const MAX_USER_TAGS = maxUserTags;
external factory UserTag(String label);