meta: Sort TargetKinds
Change-Id: I9ecc0ac8050bdac6dd61b8e67e889a57cb0a0fec Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365622 Commit-Queue: Brian Wilkerson <brianwilkerson@google.com> Auto-Submit: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
committed by
Commit Queue
parent
3cd3efd29c
commit
1bfae529f7
@@ -350,12 +350,12 @@ class TargetKind {
|
||||
static const extensionType = TargetKind._('extension types', 'extensionType');
|
||||
static const field = TargetKind._('fields', 'field');
|
||||
static const function = TargetKind._('top-level functions', 'function');
|
||||
static const optionalParameter =
|
||||
TargetKind._('optional parameters', 'optionalParameter');
|
||||
static const library = TargetKind._('libraries', 'library');
|
||||
static const getter = TargetKind._('getters', 'getter');
|
||||
static const method = TargetKind._('methods', 'method');
|
||||
static const mixinType = TargetKind._('mixins', 'mixinType');
|
||||
static const optionalParameter =
|
||||
TargetKind._('optional parameters', 'optionalParameter');
|
||||
static const overridableMember =
|
||||
TargetKind._('overridable members', 'overridableMember');
|
||||
static const parameter = TargetKind._('parameters', 'parameter');
|
||||
@@ -377,12 +377,12 @@ class TargetKind {
|
||||
extensionType,
|
||||
field,
|
||||
function,
|
||||
overridableMember,
|
||||
library,
|
||||
getter,
|
||||
method,
|
||||
mixinType,
|
||||
optionalParameter,
|
||||
overridableMember,
|
||||
parameter,
|
||||
setter,
|
||||
topLevelVariable,
|
||||
|
||||
@@ -67,6 +67,18 @@ class TargetKind {
|
||||
/// Indicates that an annotation is valid on any mixin declaration.
|
||||
static const mixinType = TargetKind._('mixins', 'mixinType');
|
||||
|
||||
/// Indicates that an annotation is valid on any optional formal parameter
|
||||
/// declaration, whether it's in a constructor, function (named or anonymous),
|
||||
/// function type, function-typed formal parameter, or method.
|
||||
static const optionalParameter =
|
||||
TargetKind._('optional parameters', 'optionalParameter');
|
||||
|
||||
/// Indicates that an annotation is valid on any overridable instance member
|
||||
/// declaration, whether it's in a class, enum, extension type, or mixin. This
|
||||
/// includes instance fields, getters, setters, methods, and operators.
|
||||
static const overridableMember =
|
||||
TargetKind._('overridable members', 'overridableMember');
|
||||
|
||||
/// Indicates that an annotation is valid on any formal parameter declaration,
|
||||
/// whether it's in a function, method, constructor, or closure.
|
||||
static const parameter = TargetKind._('parameters', 'parameter');
|
||||
@@ -101,6 +113,8 @@ class TargetKind {
|
||||
getter,
|
||||
method,
|
||||
mixinType,
|
||||
optionalParameter,
|
||||
overridableMember,
|
||||
parameter,
|
||||
setter,
|
||||
topLevelVariable,
|
||||
|
||||
@@ -74,12 +74,6 @@ class TargetKind {
|
||||
/// declaration.
|
||||
static const function = TargetKind._('top-level functions', 'function');
|
||||
|
||||
/// Indicates that an annotation is valid on any overridable instance member
|
||||
/// declaration, whether it's in a class, enum, extension type, or mixin. This
|
||||
/// includes instance fields, getters, setters, methods, and operators.
|
||||
static const overridableMember =
|
||||
TargetKind._('overridable members', 'overridableMember');
|
||||
|
||||
/// Indicates that an annotation is valid on the first directive in a library,
|
||||
/// whether that's a `library`, `import`, `export` or `part` directive. This
|
||||
/// doesn't include the `part of` directive in a part file.
|
||||
@@ -104,6 +98,12 @@ class TargetKind {
|
||||
static const optionalParameter =
|
||||
TargetKind._('optional parameters', 'optionalParameter');
|
||||
|
||||
/// Indicates that an annotation is valid on any overridable instance member
|
||||
/// declaration, whether it's in a class, enum, extension type, or mixin. This
|
||||
/// includes instance fields, getters, setters, methods, and operators.
|
||||
static const overridableMember =
|
||||
TargetKind._('overridable members', 'overridableMember');
|
||||
|
||||
/// Indicates that an annotation is valid on any formal parameter declaration,
|
||||
/// whether it's in a constructor, function (named or anonymous), function
|
||||
/// type, function-typed formal parameter, or method.
|
||||
@@ -146,12 +146,12 @@ class TargetKind {
|
||||
extensionType,
|
||||
field,
|
||||
function,
|
||||
overridableMember,
|
||||
library,
|
||||
getter,
|
||||
method,
|
||||
mixinType,
|
||||
optionalParameter,
|
||||
overridableMember,
|
||||
parameter,
|
||||
setter,
|
||||
topLevelVariable,
|
||||
|
||||
Reference in New Issue
Block a user