Skip to content

Commit 76ae676

Browse files
srawlinscommit-bot@chromium.org
authored andcommitted
Fix meta CHANGELOG and doc comment after feedback
Bug: #27372 Change-Id: If532ad81e833589642b696b5ef0c291ccaac1e3e Reviewed-on: https://dart-review.googlesource.com/71121 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 23829ad commit 76ae676

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

pkg/meta/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
## 1.1.7
22

3-
* Introduce `@sealed` to declare that a class cannot be extended by, implemented
4-
by, or mixed into another class. (SDK issue
3+
* Introduce `@sealed` to declare that a class or mixin is not allowed as a
4+
super-type.
5+
6+
Only classes in the same package as a class or mixin annotated with `@sealed`
7+
may extend, implement or mix-in the annotated class or mixin. (SDK issue
58
[27372](https://github.com/dart-lang/sdk/issues/27372)).
69

710
## 1.1.6

pkg/meta/lib/meta.dart

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,17 @@ const _Protected protected = const _Protected();
188188
/// corresponding to a named parameter that has this annotation.
189189
const Required required = const Required();
190190

191-
/// Annotation marking a class as unusable as a super-type, outside of the
192-
/// package in which the class is declared.
191+
/// Annotation marking a class or mixin as not allowed as a super-type.
193192
///
194-
/// Given a class _C_, which is annotated with this, and a class _D_, which
195-
/// extends, implements, or mixes in _C_, then tools, such as the analyzer, may
196-
/// emit warnings if:
193+
/// Classes in the same package as the marked class or mixin may extend,
194+
/// implement or mix-in the annotated class or mixin.
197195
///
198-
/// * _C_ and _D_ are declared in different packages, or
199-
/// * _C_ and _D_ are declared in the same package, and _D_ is not also
196+
/// Given a class or mixin `c`, which is annotated with this, and a class or
197+
/// mixin `d`, which extends, implements, or mixes in `c`, then tools, such as
198+
/// the analyzer, may emit warnings if:
199+
///
200+
/// * `c` and `d` are declared in different packages, or
201+
/// * `c` and `d` are declared in the same package, and `d` is not also
200202
/// annotated with this.
201203
const _Sealed sealed = const _Sealed();
202204

0 commit comments

Comments
 (0)