Skip to content

Commit b23587a

Browse files
Add test coverage for comment copying
1 parent 0160c12 commit b23587a

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

test_fixtures/gold_output_files/backwards_compatible/basic.over_react.g.dart.goldFile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ abstract class _$BasicPropsAccessorsMixin implements _$BasicProps {
2020
@override
2121
Map get props;
2222

23+
/// Test that doc comment is copied over.
24+
///
2325
/// <!-- Generated from [_$BasicProps.basicProp] -->
2426
@override
2527
@deprecated
2628
@requiredProp
2729
String get basicProp =>
2830
props[_$key__basicProp___$BasicProps] ??
2931
null; // Add ` ?? null` to workaround DDC bug: <https://github.com/dart-lang/sdk/issues/36052>;
32+
/// Test that doc comment is copied over.
33+
///
3034
/// <!-- Generated from [_$BasicProps.basicProp] -->
3135
@override
3236
@deprecated

test_fixtures/gold_output_files/backwards_compatible/basic_library.over_react.g.dart.goldFile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ abstract class _$BasicPartOfLibPropsAccessorsMixin
2222
@override
2323
Map get props;
2424

25+
/// Test that doc comment is copied over.
26+
///
2527
/// <!-- Generated from [_$BasicPartOfLibProps.basicProp] -->
2628
@override
2729
String get basicProp =>
2830
props[_$key__basicProp___$BasicPartOfLibProps] ??
2931
null; // Add ` ?? null` to workaround DDC bug: <https://github.com/dart-lang/sdk/issues/36052>;
32+
/// Test that doc comment is copied over.
33+
///
3034
/// <!-- Generated from [_$BasicPartOfLibProps.basicProp] -->
3135
@override
3236
set basicProp(String value) =>

test_fixtures/gold_output_files/basic.over_react.g.dart.goldFile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ abstract class _$BasicPropsAccessorsMixin implements _$BasicProps {
2020
@override
2121
Map get props;
2222

23+
/// Test that doc comment is copied over.
24+
///
2325
/// <!-- Generated from [_$BasicProps.basicProp] -->
2426
@override
2527
@deprecated
2628
@requiredProp
2729
String get basicProp =>
2830
props[_$key__basicProp___$BasicProps] ??
2931
null; // Add ` ?? null` to workaround DDC bug: <https://github.com/dart-lang/sdk/issues/36052>;
32+
/// Test that doc comment is copied over.
33+
///
3034
/// <!-- Generated from [_$BasicProps.basicProp] -->
3135
@override
3236
@deprecated

test_fixtures/gold_output_files/basic_library.over_react.g.dart.goldFile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ abstract class _$BasicPartOfLibPropsAccessorsMixin
2222
@override
2323
Map get props;
2424

25+
/// Test that doc comment is copied over.
26+
///
2527
/// <!-- Generated from [_$BasicPartOfLibProps.basicProp] -->
2628
@override
2729
String get basicProp =>
2830
props[_$key__basicProp___$BasicPartOfLibProps] ??
2931
null; // Add ` ?? null` to workaround DDC bug: <https://github.com/dart-lang/sdk/issues/36052>;
32+
/// Test that doc comment is copied over.
33+
///
3034
/// <!-- Generated from [_$BasicPartOfLibProps.basicProp] -->
3135
@override
3236
set basicProp(String value) =>

test_fixtures/source_files/backwards_compatible/basic.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class BasicProps extends _$BasicProps with _$BasicPropsAccessorsMixin {
1212
@Props()
1313
//// ignore: mixin_of_non_class,undefined_class
1414
class _$BasicProps extends UiProps {
15+
/// Test that doc comment is copied over.
1516
@deprecated
1617
@requiredProp
1718
String basicProp;

test_fixtures/source_files/backwards_compatible/part_of_basic_library.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class BasicPartOfLibProps extends _$BasicPartOfLibProps with _$BasicPartOfLibPro
1212
class _$BasicPartOfLibProps extends UiProps
1313
with ExamplePropsMixinClass, $ExamplePropsMixinClass {
1414

15+
/// Test that doc comment is copied over.
1516
String basicProp;
1617
String basic1;
1718
String basic2;

test_fixtures/source_files/basic.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ UiFactory<BasicProps> Basic = _$Basic;
88
@Props()
99
//// ignore: mixin_of_non_class,undefined_class
1010
class _$BasicProps extends UiProps {
11+
/// Test that doc comment is copied over.
1112
@deprecated
1213
@requiredProp
1314
String basicProp;

test_fixtures/source_files/part_of_basic_library.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ UiFactory<BasicPartOfLibProps> BasicPartOfLib = _$BasicPartOfLib;
77
class _$BasicPartOfLibProps extends UiProps
88
with ExamplePropsMixinClass {
99

10+
/// Test that doc comment is copied over.
1011
String basicProp;
1112
String basic1;
1213
String basic2;

0 commit comments

Comments
 (0)