Remove `@TagNumber(...)` annotations?
- Dominant language
- Dart
- Stars
- 572
- Forks
- 196
- Avg merge
- 1h 59m
- Merged PRs (30d)
- 2
Description
I'm unclear what the `@$pb.TagNumber(104)` annotations are used for. Thay add quite a bit of noise to the generated code - each message field is tagged w/ four `TagNumber` annotations.
```dart
/// Used as a ...
@$pb.TagNumber(103)
$core.String get apiShortName => $_getSZ(2);
@$pb.TagNumber(103)
set apiShortName($core.String v) {
$_setString(2, v);
}
@$pb.TagNumber(103)
$core.bool hasApiShortName() => $_has(2);
@$pb.TagNumber(103)
void clearApiShortName() => $_clearField(103);
```
Do we know of any use cases / users of these annotations? (or, if they are being used, why we're tagging all for items for the field instead of just something like the getter)
The docs for the annotation say; `'Annotation for marking accessors that belong together.\n\nAllows tooling to associate related accessors'`.
cc @osa1 (and also @sigurdm, who may also have context here)
Contributor guide
Assessment
This issue has not been assessed yet.