Skip to content

Commit eb0c7ed

Browse files
johnniwintherCommit Queue
authored andcommitted
[cfe] Create _ConstructorDeclaration through ConstructorDeclaration
This decouples the create of _ConstructorDeclaration from fragments, such that synthetic constructor declarations can also be created together with the name space. Change-Id: I1e384639ea0fd8672c34164038f068057e8fbd9e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436242 Reviewed-by: Chloe Stefantsova <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent cf43e2a commit eb0c7ed

File tree

2 files changed

+179
-159
lines changed

2 files changed

+179
-159
lines changed

pkg/front_end/lib/src/fragment/factory/declaration.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ abstract class FactoryDeclaration {
8686

8787
void resolveRedirectingFactory(
8888
{required SourceLibraryBuilder libraryBuilder});
89+
90+
bool get isRedirectingFactory;
8991
}
9092

9193
class FactoryDeclarationImpl
@@ -138,6 +140,9 @@ class FactoryDeclarationImpl
138140
// Coverage-ignore(suite): Not run.
139141
Uri get fileUri => _fragment.fileUri;
140142

143+
@override
144+
bool get isRedirectingFactory => _fragment.redirectionTarget != null;
145+
141146
@override
142147
List<FormalParameterBuilder>? get formals => _fragment.formals;
143148

0 commit comments

Comments
 (0)