Skip to content

Commit 37890f9

Browse files
committed
1 parent da81562 commit 37890f9

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pkg/meta/lib/meta.dart

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,21 @@ const _Protected protected = const _Protected();
117117
/// corresponding to a named parameter that has this annotation.
118118
const Required required = const Required();
119119

120-
/// Used to annotate a field is allowed to be overridden in Strong Mode.
120+
/// Used to annotate a field that is allowed to be overridden in Strong Mode.
121121
const _Virtual virtual = const _Virtual();
122122

123+
/// Used to annotate an instance member that was made public so that it could be
124+
/// overridden but that is not intended to be referenced from outside the
125+
/// defining library.
126+
///
127+
/// Tools, such as the analyzer, can provide feedback if
128+
///
129+
/// * the annotation is associated with a declaration other than a public
130+
/// instance member in a class, or
131+
/// * the member is referenced outside of the defining library.
132+
const _VisibleForOverriding visibleForOverriding =
133+
const _VisibleForOverriding();
134+
123135
/// Used to annotate a declaration was made public, so that it is more visible
124136
/// than otherwise necessary, to make code testable.
125137
///
@@ -190,6 +202,10 @@ class _Virtual {
190202
const _Virtual();
191203
}
192204

205+
class _VisibleForOverriding {
206+
const _VisibleForOverriding();
207+
}
208+
193209
class _VisibleForTesting {
194210
const _VisibleForTesting();
195211
}

0 commit comments

Comments
 (0)