@@ -3098,7 +3098,7 @@ abstract final class ClassOrAugmentationDeclaration
3098
3098
/// A class type alias.
3099
3099
///
3100
3100
/// classTypeAlias ::=
3101
- /// name [ TypeParameterList]? '=' classModifiers mixinApplication
3101
+ /// classModifiers 'class' [SimpleIdentifier] [ TypeParameterList]? '=' mixinApplication
3102
3102
///
3103
3103
/// classModifiers ::= 'sealed'
3104
3104
/// | 'abstract'? ('base' | 'interface' | 'final')?
@@ -3152,8 +3152,7 @@ abstract final class ClassTypeAlias implements TypeAlias {
3152
3152
/// A class type alias.
3153
3153
///
3154
3154
/// classTypeAlias ::=
3155
- /// [SimpleIdentifier] [TypeParameterList]? '=' classModifiers
3156
- /// mixinApplication
3155
+ /// classModifiers 'class' [SimpleIdentifier] [TypeParameterList]? '=' mixinApplication
3157
3156
///
3158
3157
/// classModifiers ::= 'sealed'
3159
3158
/// | 'abstract'? ('base' | 'interface' | 'final')?
@@ -8881,7 +8880,7 @@ final class FunctionReferenceImpl extends CommentReferableExpressionImpl
8881
8880
/// A function type alias.
8882
8881
///
8883
8882
/// functionTypeAlias ::=
8884
- /// functionPrefix [TypeParameterList]? [FormalParameterList] ';'
8883
+ /// 'typedef' functionPrefix [TypeParameterList]? [FormalParameterList] ';'
8885
8884
///
8886
8885
/// functionPrefix ::=
8887
8886
/// [TypeAnnotation]? [SimpleIdentifier]
@@ -8906,10 +8905,10 @@ abstract final class FunctionTypeAlias implements TypeAlias {
8906
8905
/// A function type alias.
8907
8906
///
8908
8907
/// functionTypeAlias ::=
8909
- /// functionPrefix [TypeParameterList]? [FormalParameterList] ';'
8908
+ /// 'typedef' functionPrefix [TypeParameterList]? [FormalParameterList] ';'
8910
8909
///
8911
8910
/// functionPrefix ::=
8912
- /// [TypeName ]? [SimpleIdentifier]
8911
+ /// [TypeAnnotation ]? [SimpleIdentifier]
8913
8912
final class FunctionTypeAliasImpl extends TypeAliasImpl
8914
8913
implements FunctionTypeAlias {
8915
8914
/// The name of the return type of the function type being defined, or `null`
@@ -9302,7 +9301,7 @@ final class GenericFunctionTypeImpl extends TypeAnnotationImpl
9302
9301
/// A generic type alias.
9303
9302
///
9304
9303
/// functionTypeAlias ::=
9305
- /// metadata 'typedef' name [TypeParameterList]? = [FunctionType] ';'
9304
+ /// 'typedef' [SimpleIdentifier] [TypeParameterList]? = [FunctionType] ';'
9306
9305
///
9307
9306
/// Clients may not extend, implement or mix-in this class.
9308
9307
abstract final class GenericTypeAlias implements TypeAlias {
@@ -9327,8 +9326,7 @@ abstract final class GenericTypeAlias implements TypeAlias {
9327
9326
/// A generic type alias.
9328
9327
///
9329
9328
/// functionTypeAlias ::=
9330
- /// metadata 'typedef' [SimpleIdentifier] [TypeParameterList]? =
9331
- /// [FunctionType] ';'
9329
+ /// 'typedef' [SimpleIdentifier] [TypeParameterList]? = [FunctionType] ';'
9332
9330
final class GenericTypeAliasImpl extends TypeAliasImpl
9333
9331
implements GenericTypeAlias {
9334
9332
/// The type being defined by the alias.
@@ -18473,32 +18471,28 @@ final class TryStatementImpl extends StatementImpl implements TryStatement {
18473
18471
/// The declaration of a type alias.
18474
18472
///
18475
18473
/// typeAlias ::=
18476
- /// 'typedef' typeAliasBody
18477
- ///
18478
- /// typeAliasBody ::=
18479
- /// classTypeAlias
18480
- /// | functionTypeAlias
18474
+ /// [ClassTypeAlias]
18475
+ /// | [FunctionTypeAlias]
18476
+ /// | [GenericTypeAlias]
18481
18477
///
18482
18478
/// Clients may not extend, implement or mix-in this class.
18483
18479
abstract final class TypeAlias implements NamedCompilationUnitMember {
18484
18480
/// Return the semicolon terminating the declaration.
18485
18481
Token get semicolon;
18486
18482
18487
- /// Return the token representing the 'typedef' keyword.
18483
+ /// Return the token representing the 'typedef' or 'class' keyword.
18488
18484
Token get typedefKeyword;
18489
18485
}
18490
18486
18491
18487
/// The declaration of a type alias.
18492
18488
///
18493
18489
/// typeAlias ::=
18494
- /// 'typedef' typeAliasBody
18495
- ///
18496
- /// typeAliasBody ::=
18497
- /// classTypeAlias
18498
- /// | functionTypeAlias
18490
+ /// [ClassTypeAlias]
18491
+ /// | [FunctionTypeAlias]
18492
+ /// | [GenericTypeAlias]
18499
18493
sealed class TypeAliasImpl extends NamedCompilationUnitMemberImpl
18500
18494
implements TypeAlias {
18501
- /// The token representing the 'typedef' keyword.
18495
+ /// The token representing the 'typedef' or 'class' keyword.
18502
18496
@override
18503
18497
final Token typedefKeyword;
18504
18498
0 commit comments