Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: pkg/meta/lib/meta.dart

Issue 2352433002: support `@virtual` fields, fix #27384 (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/meta/CHANGELOG.md ('k') | pkg/meta/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/meta/lib/meta.dart
diff --git a/pkg/meta/lib/meta.dart b/pkg/meta/lib/meta.dart
index 633a4d362fb50fe80e1fd26023b6ad05b5db415b..984287546f6558dfa0ef1395c7950449d28d840d 100644
--- a/pkg/meta/lib/meta.dart
+++ b/pkg/meta/lib/meta.dart
@@ -128,7 +128,6 @@ class Required {
const Required([this.reason]);
}
-
/// Used to annotate a parameter of an instance method that overrides another
/// method.
///
@@ -137,6 +136,9 @@ class Required {
/// is a subtype of the overridden parameter type.
const _Checked checked = const _Checked();
+/// Used to annotate a field is allowed to be overridden in Strong Mode.
+const _Virtual virtual = const _Virtual();
+
class _Checked {
const _Checked();
}
@@ -161,6 +163,10 @@ class _Protected {
const _Protected();
}
+class _Virtual {
+ const _Virtual();
+}
+
class _VisibleForTesting {
const _VisibleForTesting();
}
« no previous file with comments | « pkg/meta/CHANGELOG.md ('k') | pkg/meta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698