Skip to content

Commit 877fd9a

Browse files
johnniwintherCommit Queue
authored andcommitted
[cfe] Refactor _FragmentName
This refactors the _FragmentName class to a more encapsulated approach in preparation for creating synthetic declarations together with the user defined declarations. _FragmentName is renamed to _Declaration and a subhierarchy is created to handle the various kinds of declarations and let them control how the corresponding _PreBuilder objects are created. Change-Id: I5ba3f238112caeb28f8ce6938f15905e512cab6f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/432620 Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Chloe Stefantsova <[email protected]>
1 parent da5ae47 commit 877fd9a

File tree

4 files changed

+784
-665
lines changed

4 files changed

+784
-665
lines changed

pkg/front_end/lib/src/fragment/enum_element.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ class EnumElementDeclaration
104104
TypeBuilder get type => _fragment.type;
105105

106106
@override
107-
// Coverage-ignore(suite): Not run.
108107
UriOffsetLength get uriOffset => _fragment.uriOffset;
109108

110109
@override

pkg/front_end/lib/src/fragment/primary_constructor_field.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class PrimaryConstructorFieldDeclaration
9898
TypeBuilder get type => _fragment.type;
9999

100100
@override
101-
// Coverage-ignore(suite): Not run.
102101
UriOffsetLength get uriOffset => _fragment.uriOffset;
103102

104103
// Coverage-ignore(suite): Not run.

0 commit comments

Comments
 (0)