Skip to content

Commit 893efe5

Browse files
author
Joanna May
committed
fix: expose default value, make generic type receiver closures static
1 parent f63f76a commit 893efe5

21 files changed

+45
-6
lines changed

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_BaseClass.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2323
Name: "Name",
2424
IsInit: true,
2525
IsRequired: true,
26+
HasDefaultValue: false,
2627
Getter: static (object obj) => ((BaseClass)obj).Name,
2728
Setter: null,
2829
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_SetOnlyPropertyE303C8557E.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2121
Name: "Value",
2222
IsInit: false,
2323
IsRequired: false,
24+
HasDefaultValue: false,
2425
Getter: null,
2526
Setter: static (object obj, object? value) => ((SetOnlyProperty)obj).Value = (string)value!,
2627
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TestCases_BaseModel6634CD33B5.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2424
Name: "Name",
2525
IsInit: false,
2626
IsRequired: false,
27+
HasDefaultValue: true,
2728
Getter: static (object obj) => ((BaseModel)obj).Name,
2829
Setter: static (object obj, object? value) => ((BaseModel)obj).Name = (string)value!,
2930
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_MyContainerClass_MyModel67E837FC39.g.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2525
Name: "Age",
2626
IsInit: false,
2727
IsRequired: false,
28+
HasDefaultValue: true,
2829
Getter: static (object obj) => ((MyModel)obj).Age,
2930
Setter: static (object obj, object? value) => ((MyModel)obj).Age = (int)value,
3031
GenericType: new GenericType(
@@ -44,6 +45,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
4445
Name: "Name",
4546
IsInit: false,
4647
IsRequired: false,
48+
HasDefaultValue: true,
4749
Getter: static (object obj) => ((MyModel)obj).Name,
4850
Setter: static (object obj, object? value) => ((MyModel)obj).Name = (string)value!,
4951
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/er2_DeeplyNestedBaseClassAC795ED913.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2525
Name: "DeepName",
2626
IsInit: true,
2727
IsRequired: true,
28+
HasDefaultValue: false,
2829
Getter: static (object obj) => ((DeeplyNestedBaseClass)obj).DeepName,
2930
Setter: null,
3031
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/her_A_B_C_D_SomeBaseClassECA01F390E.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2727
Name: "Identifier",
2828
IsInit: true,
2929
IsRequired: true,
30+
HasDefaultValue: false,
3031
Getter: static (object obj) => ((SomeBaseClass)obj).Identifier,
3132
Setter: null,
3233
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/or_Tests_TestCases_MyType1CDCCD6086.g.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2828
Name: "MyProperty",
2929
IsInit: false,
3030
IsRequired: false,
31+
HasDefaultValue: true,
3132
Getter: static (object obj) => ((MyType)obj).MyProperty,
3233
Setter: static (object obj, object? value) => ((MyType)obj).MyProperty = (string)value!,
3334
GenericType: new GenericType(
@@ -51,6 +52,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
5152
Name: "NoAttributeSoNoMetadata",
5253
IsInit: false,
5354
IsRequired: false,
55+
HasDefaultValue: true,
5456
Getter: static (object obj) => ((MyType)obj).NoAttributeSoNoMetadata,
5557
Setter: null,
5658
GenericType: new GenericType(
@@ -67,6 +69,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
6769
Name: "OptionalFloat",
6870
IsInit: false,
6971
IsRequired: false,
72+
HasDefaultValue: true,
7073
Getter: static (object obj) => ((MyType)obj).OptionalFloat,
7174
Setter: static (object obj, object? value) => ((MyType)obj).OptionalFloat = (Nullable<float>)value,
7275
GenericType: new GenericType(
@@ -94,6 +97,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
9497
Name: "OptionalInt",
9598
IsInit: false,
9699
IsRequired: false,
100+
HasDefaultValue: true,
97101
Getter: static (object obj) => ((MyType)obj).OptionalInt,
98102
Setter: static (object obj, object? value) => ((MyType)obj).OptionalInt = (int)value,
99103
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_AttributesWithNamedArgs21E465F742.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2424
Name: "Name",
2525
IsInit: true,
2626
IsRequired: true,
27+
HasDefaultValue: false,
2728
Getter: static (object obj) => ((AttributesWithNamedArgs)obj).Name,
2829
Setter: null,
2930
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_InitArgsModel651DDFA4A7.g.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2424
Name: "Address",
2525
IsInit: false,
2626
IsRequired: false,
27+
HasDefaultValue: false,
2728
Getter: static (object obj) => ((InitArgsModel)obj).Address,
2829
Setter: static (object obj, object? value) => ((InitArgsModel)obj).Address = (string)value,
2930
GenericType: new GenericType(
@@ -43,6 +44,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
4344
Name: "Age",
4445
IsInit: true,
4546
IsRequired: true,
47+
HasDefaultValue: false,
4648
Getter: static (object obj) => ((InitArgsModel)obj).Age,
4749
Setter: null,
4850
GenericType: new GenericType(
@@ -62,6 +64,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
6264
Name: "Description",
6365
IsInit: true,
6466
IsRequired: false,
67+
HasDefaultValue: false,
6568
Getter: static (object obj) => ((InitArgsModel)obj).Description,
6669
Setter: null,
6770
GenericType: new GenericType(
@@ -81,6 +84,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
8184
Name: "HasAttended",
8285
IsInit: true,
8386
IsRequired: false,
87+
HasDefaultValue: true,
8488
Getter: static (object obj) => ((InitArgsModel)obj).HasAttended,
8589
Setter: null,
8690
GenericType: new GenericType(
@@ -100,6 +104,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
100104
Name: "IsAttending",
101105
IsInit: false,
102106
IsRequired: false,
107+
HasDefaultValue: true,
103108
Getter: static (object obj) => ((InitArgsModel)obj).IsAttending,
104109
Setter: static (object obj, object? value) => ((InitArgsModel)obj).IsAttending = (InitArgsEnum)value!,
105110
GenericType: new GenericType(
@@ -119,6 +124,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
119124
Name: "Name",
120125
IsInit: true,
121126
IsRequired: true,
127+
HasDefaultValue: false,
122128
Getter: static (object obj) => ((InitArgsModel)obj).Name,
123129
Setter: null,
124130
GenericType: new GenericType(

Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_PropertyModel4D221791B1.g.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class MetatypeMetadata : Chickensoft.Introspection.IMetatype {
2121
Name: "Value",
2222
IsInit: false,
2323
IsRequired: false,
24+
HasDefaultValue: false,
2425
Getter: static (object obj) => ((PropertyModel)obj).Value,
2526
Setter: null,
2627
GenericType: new GenericType(

0 commit comments

Comments
 (0)