From 5cd607f1246d8fe6a962e0eb03be5c2426813d31 Mon Sep 17 00:00:00 2001 From: Joanna May Date: Tue, 4 Jun 2024 00:01:08 -0500 Subject: [PATCH] fix: cap filenames --- ... A_ChildBaseFullyQualified58F37FBE84.g.cs} | 0 ... B_ChildBaseFullyQualifiedF9E7B51DD8.g.cs} | 0 ... C_ChildBaseFullyQualifiedD92201992B.g.cs} | 0 ... TestCases_VersionedModel065A186606F.g.cs} | 0 ... TestCases_VersionedModel16E175F28F0.g.cs} | 0 ... TestCases_VersionedModel2BDB0396AC8.g.cs} | 0 ... TestCases_VersionedModel3F29481B82C.g.cs} | 0 ... Tests_TestCases_BaseModel6634CD33B5.g.cs} | 0 ... _AInnerContainer_ZMyModel860D3B41EA.g.cs} | 0 ... _ChildBaseFullyQualified2447EE53E80.g.cs} | 0 ... _MyContainerClass_MyModel67E837FC39.g.cs} | 0 ... _TestCases_OuterContainer41DE6B7671.g.cs} | 0 ... _TestCases_VersionedModel97F401129D.g.cs} | 0 ... _Tests_TestCases_NameOfId962412A9E9.g.cs} | 0 ... _Tests_TestCases_SomeType31193CB4B4.g.cs} | 0 ... ator_Tests_TestCases_NoId2554B6C950.g.cs} | 0 ... e_ChildBaseFullyQualifiedF82AB94D12.g.cs} | 0 ... eeplyNamespaced_SomeChild7E3B519F42.g.cs} | 0 ... endsTypeFromSomewhereElseE4FBAC4551.g.cs} | 0 ... er2_DeeplyNestedBaseClassAC795ED913.g.cs} | 0 ... estCases_ConcreteChildOneCC2D9F5CA5.g.cs} | 0 ... estCases_ConcreteChildTwo177A70AE02.g.cs} | 0 ... her_A_B_C_D_SomeBaseClassECA01F390E.g.cs} | 0 ... hildBaseNotFullyQualified96BFFBDF77.g.cs} | 0 ... ingDeeplyNamespaced_ChildB31D784D2E.g.cs} | 0 ... nnerContainer_AOtherModel42232E4BF8.g.cs} | 0 ... ntainer_TypeInGlobalScopeF72964AC7A.g.cs} | 0 ... or_Tests_TestCases_MyType1CDCCD6086.g.cs} | 0 ... r_ChildBaseFullyQualified695F3233EA.g.cs} | 0 ... s_AttributesWithNamedArgs21E465F742.g.cs} | 0 ... s_TestCases_InitArgsModel651DDFA4A7.g.cs} | 0 ... s_TestCases_PropertyModel4D221791B1.g.cs} | 0 ... sts_TestCases_Collections23D60571D5.g.cs} | 0 ... tractTypeWithVersionIsBad8F1C3FCB0B.g.cs} | 0 ... ts_TestCases_AbstractTypeF9039C5995.g.cs} | 0 ... ts_TestCases_DerivedModel2583598D69.g.cs} | 0 ... ts_TestCases_PartialModelED2F9C08D8.g.cs} | 0 ... wo_IThree_Four_NestedType7FDE758058.g.cs} | 0 .../src/models/DeclaredType.cs | 24 ++++- ...ckensoft_Introspectio128A6C22666FE7CE.g.cs | 52 +++++++++++ ...ckensoft_Introspectio1BBA70C2FA7FBDBB.g.cs | 52 +++++++++++ ...ckensoft_Introspectio444FE4CECBE7E572.g.cs | 54 +++++++++++ ...ckensoft_Introspectio48A151444DFB44AF.g.cs | 46 ++++++++++ ...ckensoft_Introspectio4BE1D24FF6A4782E.g.cs | 68 ++++++++++++++ ...ckensoft_Introspectio6490C6691E41E943.g.cs | 52 +++++++++++ ...ckensoft_Introspectio8B1441D70FB8BF24.g.cs | 73 +++++++++++++++ ...ckensoft_IntrospectioC336F212B5DD8E71.g.cs | 52 +++++++++++ ...ckensoft_IntrospectioCABA6A96F062FA2B.g.cs | 52 +++++++++++ ...ckensoft_IntrospectioE4FE38B50BED7369.g.cs | 49 ++++++++++ ...ckensoft_IntrospectioED46EB8D28D57DDD.g.cs | 91 +++++++++++++++++++ ...ckensoft_IntrospectioFA9606B7B5491774.g.cs | 52 +++++++++++ .../GraphTest_SubtypeA_SubtypeBCBE7E572.g.cs | 54 +++++++++++ .../Tests_TypeGraphTest_Model4FF6A4782E.g.cs | 68 ++++++++++++++ ...ests_TypeGraphTest_NoSubtypes0BED7369.g.cs | 49 ++++++++++ ...ts_TypeGraphVersionTest_Model1E41E943.g.cs | 52 +++++++++++ .../TypeGraphVersionTest_Model1B5DD8E71.g.cs | 52 +++++++++++ .../TypeGraphVersionTest_Model2666FE7CE.g.cs | 52 +++++++++++ .../TypeGraphVersionTest_Model3B5491774.g.cs | 52 +++++++++++ .../_TypeGraphTest_NoSubtypesB50BED7369.g.cs | 49 ++++++++++ ...peGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs | 54 +++++++++++ .../_TypeGraphVersionTest_Model1E41E943.g.cs | 52 +++++++++++ ...MemberMetadataTest_ChildModel0FB8BF24.g.cs | 73 +++++++++++++++ .../aphMemberMetadataTest_Model28D57DDD.g.cs | 91 +++++++++++++++++++ .../aphTest_SubtypeA_SubtypeBCECBE7E572.g.cs | 54 +++++++++++ ...GraphMemberMetadataTest_Model28D57DDD.g.cs | 91 +++++++++++++++++++ ...ion_Tests_TypeGraphTest_ModelF6A4782E.g.cs | 68 ++++++++++++++ .../erMetadataTest_ChildModelD70FB8BF24.g.cs | 73 +++++++++++++++ .../ests_TypeGraphTest_SubtypeAF062FA2B.g.cs | 52 +++++++++++ .../ests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model1B5DD8E71.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model2666FE7CE.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model3B5491774.g.cs | 52 +++++++++++ ...MemberMetadataTest_ChildModel0FB8BF24.g.cs | 73 +++++++++++++++ .../hMemberMetadataTest_Model8D28D57DDD.g.cs | 91 +++++++++++++++++++ ..._Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs | 52 +++++++++++ ..._Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs | 52 +++++++++++ .../mberMetadataTest_ChildModel0FB8BF24.g.cs | 73 +++++++++++++++ .../n_Tests_TypeGraphTest_ModelF6A4782E.g.cs | 68 ++++++++++++++ ...ests_TypeGraphTest_NoSubtypes0BED7369.g.cs | 49 ++++++++++ ..._Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs | 52 +++++++++++ ..._Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs | 52 +++++++++++ ..._Introspection_Tests_MyTypeWi4DFB44AF.g.cs | 46 ++++++++++ ...ection_Tests_MyTypeWithAMixin4DFB44AF.g.cs | 46 ++++++++++ ..._Introspection_Tests_TypeGrap0BED7369.g.cs | 49 ++++++++++ ..._Introspection_Tests_TypeGrap0FB8BF24.g.cs | 73 +++++++++++++++ ..._Introspection_Tests_TypeGrap1E41E943.g.cs | 52 +++++++++++ ..._Introspection_Tests_TypeGrap28D57DDD.g.cs | 91 +++++++++++++++++++ ..._Introspection_Tests_TypeGrap666FE7CE.g.cs | 52 +++++++++++ ..._Introspection_Tests_TypeGrapB5491774.g.cs | 52 +++++++++++ ..._Introspection_Tests_TypeGrapB5DD8E71.g.cs | 52 +++++++++++ ..._Introspection_Tests_TypeGrapCBE7E572.g.cs | 54 +++++++++++ ..._Introspection_Tests_TypeGrapF062FA2B.g.cs | 52 +++++++++++ ..._Introspection_Tests_TypeGrapF6A4782E.g.cs | 68 ++++++++++++++ ..._Introspection_Tests_TypeGrapFA7FBDBB.g.cs | 52 +++++++++++ ...MemberMetadataTest_ChildModel0FB8BF24.g.cs | 73 +++++++++++++++ ...GraphMemberMetadataTest_Model28D57DDD.g.cs | 91 +++++++++++++++++++ ...ion_Tests_TypeGraphTest_ModelF6A4782E.g.cs | 68 ++++++++++++++ ...ests_TypeGraphTest_NoSubtypes0BED7369.g.cs | 49 ++++++++++ ..._Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs | 52 +++++++++++ ...peGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs | 54 +++++++++++ ..._Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model1B5DD8E71.g.cs | 52 +++++++++++ ...ts_TypeGraphVersionTest_Model1E41E943.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model2666FE7CE.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model3B5491774.g.cs | 52 +++++++++++ .../on_Tests_MyTypeWithAMixin444DFB44AF.g.cs | 46 ++++++++++ ...ection_Tests_MyTypeWithAMixin4DFB44AF.g.cs | 46 ++++++++++ .../peGraphVersionTest_Model112B5DD8E71.g.cs | 52 +++++++++++ .../peGraphVersionTest_Model222666FE7CE.g.cs | 52 +++++++++++ .../peGraphVersionTest_Model3B7B5491774.g.cs | 52 +++++++++++ ...ection_Tests_MyTypeWithAMixin4DFB44AF.g.cs | 46 ++++++++++ ...ts_TypeGraphVersionTest_Model1E41E943.g.cs | 52 +++++++++++ .../tion_Tests_MyTypeWithAMixin4DFB44AF.g.cs | 46 ++++++++++ ...ion_Tests_TypeGraphTest_ModelF6A4782E.g.cs | 68 ++++++++++++++ .../ts_TypeGraphTest_NoSubtypes0BED7369.g.cs | 49 ++++++++++ .../ts_TypeGraphTest_SubtypeA96F062FA2B.g.cs | 52 +++++++++++ .../ts_TypeGraphTest_SubtypeCC2FA7FBDBB.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model1B5DD8E71.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model2666FE7CE.g.cs | 52 +++++++++++ ...s_TypeGraphVersionTest_Model3B5491774.g.cs | 52 +++++++++++ ...GraphMemberMetadataTest_Model28D57DDD.g.cs | 91 +++++++++++++++++++ ...peGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs | 54 +++++++++++ .../ypeGraphVersionTest_Model691E41E943.g.cs | 52 +++++++++++ .../badges/branch_coverage.svg | 4 +- .../badges/line_coverage.svg | 4 +- 125 files changed, 4878 insertions(+), 5 deletions(-) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_A_ChildBaseFullyQualified.g.cs => A_ChildBaseFullyQualified58F37FBE84.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_A_B_ChildBaseFullyQualified.g.cs => B_ChildBaseFullyQualifiedF9E7B51DD8.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_A_B_C_ChildBaseFullyQualified.g.cs => C_ChildBaseFullyQualifiedD92201992B.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel0.g.cs => TestCases_VersionedModel065A186606F.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel1.g.cs => TestCases_VersionedModel16E175F28F0.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel2.g.cs => TestCases_VersionedModel2BDB0396AC8.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel3.g.cs => TestCases_VersionedModel3F29481B82C.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_BaseModel.g.cs => Tests_TestCases_BaseModel6634CD33B5.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_ZMyModel.g.cs => _AInnerContainer_ZMyModel860D3B41EA.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_ChildBaseFullyQualified2.g.cs => _ChildBaseFullyQualified2447EE53E80.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_MyContainerClass_MyModel.g.cs => _MyContainerClass_MyModel67E837FC39.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer.g.cs => _TestCases_OuterContainer41DE6B7671.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel.g.cs => _TestCases_VersionedModel97F401129D.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_NameOfId.g.cs => _Tests_TestCases_NameOfId962412A9E9.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_SomeType.g.cs => _Tests_TestCases_SomeType31193CB4B4.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_NoId.g.cs => ator_Tests_TestCases_NoId2554B6C950.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{AlternativeNamespace_ChildBaseFullyQualified.g.cs => e_ChildBaseFullyQualifiedF82AB94D12.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{BaseClasses_A_B_UsingDeeplyNamespaced_SomeChild.g.cs => eeplyNamespaced_SomeChild7E3B519F42.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{AliasedStuff_Nested_ExtendsTypeFromSomewhereElse.g.cs => endsTypeFromSomewhereElseE4FBAC4551.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{BaseClasses_A_B_DeeplyNamespaced_Container_Container2_DeeplyNestedBaseClass.g.cs => er2_DeeplyNestedBaseClassAC795ED913.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildOne.g.cs => estCases_ConcreteChildOneCC2D9F5CA5.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildTwo.g.cs => estCases_ConcreteChildTwo177A70AE02.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_A_B_C_D_SomeBaseClass.g.cs => her_A_B_C_D_SomeBaseClassECA01F390E.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{AlternativeNamespace_ChildBaseNotFullyQualified.g.cs => hildBaseNotFullyQualified96BFFBDF77.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{BaseClasses_A_B_UsingDeeplyNamespaced_Child.g.cs => ingDeeplyNamespaced_ChildB31D784D2E.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_AOtherModel.g.cs => nnerContainer_AOtherModel42232E4BF8.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{GlobalScopeContainer_TypeInGlobalScope.g.cs => ntainer_TypeInGlobalScopeF72964AC7A.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_MyType.g.cs => or_Tests_TestCases_MyType1CDCCD6086.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{OtherNamespace_Altogether_ChildBaseFullyQualified.g.cs => r_ChildBaseFullyQualified695F3233EA.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_AttributesWithNamedArgs.g.cs => s_AttributesWithNamedArgs21E465F742.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_InitArgsModel.g.cs => s_TestCases_InitArgsModel651DDFA4A7.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_PropertyModel.g.cs => s_TestCases_PropertyModel4D221791B1.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_Collections.g.cs => sts_TestCases_Collections23D60571D5.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_AbstractTypeWithVersionIsBad.g.cs => tractTypeWithVersionIsBad8F1C3FCB0B.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_AbstractType.g.cs => ts_TestCases_AbstractTypeF9039C5995.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_DerivedModel.g.cs => ts_TestCases_DerivedModel2583598D69.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_PartialModel.g.cs => ts_TestCases_PartialModelED2F9C08D8.g.cs} (100%) rename Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/{Chickensoft_Introspection_Generator_Tests_TestCases_One_Two_IThree_Four_NestedType.g.cs => wo_IThree_Four_NestedType7FDE758058.g.cs} (100%) create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio128A6C22666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio1BBA70C2FA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio444FE4CECBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio48A151444DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio4BE1D24FF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio6490C6691E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio8B1441D70FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioC336F212B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioCABA6A96F062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioE4FE38B50BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioED46EB8D28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioFA9606B7B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GraphTest_SubtypeA_SubtypeBCBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_Model4FF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphVersionTest_Model1E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model1B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model2666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model3B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_NoSubtypesB50BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphVersionTest_Model1E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_ChildModel0FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_Model28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphTest_SubtypeA_SubtypeBCECBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eGraphMemberMetadataTest_Model28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ection_Tests_TypeGraphTest_ModelF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/erMetadataTest_ChildModelD70FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeAF062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model1B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model2666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model3B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_ChildModel0FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_Model8D28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/mberMetadataTest_ChildModel0FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_ModelF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWi4DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWithAMixin4DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap1E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapCBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapFA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_ChildModel0FB8BF24.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_Model28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_ModelF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model2666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model3B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/on_Tests_MyTypeWithAMixin444DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ospection_Tests_MyTypeWithAMixin4DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model112B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model222666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model3B7B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/pection_Tests_MyTypeWithAMixin4DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TypeGraphVersionTest_Model1E41E943.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_MyTypeWithAMixin4DFB44AF.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_TypeGraphTest_ModelF6A4782E.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_NoSubtypes0BED7369.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeA96F062FA2B.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeCC2FA7FBDBB.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model1B5DD8E71.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model2666FE7CE.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model3B5491774.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphMemberMetadataTest_Model28D57DDD.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs create mode 100644 Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphVersionTest_Model691E41E943.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_ChildBaseFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/A_ChildBaseFullyQualified58F37FBE84.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_ChildBaseFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/A_ChildBaseFullyQualified58F37FBE84.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_ChildBaseFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/B_ChildBaseFullyQualifiedF9E7B51DD8.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_ChildBaseFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/B_ChildBaseFullyQualifiedF9E7B51DD8.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_C_ChildBaseFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/C_ChildBaseFullyQualifiedD92201992B.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_C_ChildBaseFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/C_ChildBaseFullyQualifiedD92201992B.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel0.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel065A186606F.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel0.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel065A186606F.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel1.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel16E175F28F0.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel1.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel16E175F28F0.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel2.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel2BDB0396AC8.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel2.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel2BDB0396AC8.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel3.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel3F29481B82C.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel3.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TestCases_VersionedModel3F29481B82C.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_BaseModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TestCases_BaseModel6634CD33B5.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_BaseModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TestCases_BaseModel6634CD33B5.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_ZMyModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_AInnerContainer_ZMyModel860D3B41EA.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_ZMyModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_AInnerContainer_ZMyModel860D3B41EA.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_ChildBaseFullyQualified2.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_ChildBaseFullyQualified2447EE53E80.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_ChildBaseFullyQualified2.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_ChildBaseFullyQualified2447EE53E80.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_MyContainerClass_MyModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_MyContainerClass_MyModel67E837FC39.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_MyContainerClass_MyModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_MyContainerClass_MyModel67E837FC39.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TestCases_OuterContainer41DE6B7671.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TestCases_OuterContainer41DE6B7671.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TestCases_VersionedModel97F401129D.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_VersionedModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TestCases_VersionedModel97F401129D.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_NameOfId.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_Tests_TestCases_NameOfId962412A9E9.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_NameOfId.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_Tests_TestCases_NameOfId962412A9E9.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_SomeType.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_Tests_TestCases_SomeType31193CB4B4.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_SomeType.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_Tests_TestCases_SomeType31193CB4B4.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_NoId.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ator_Tests_TestCases_NoId2554B6C950.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_NoId.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ator_Tests_TestCases_NoId2554B6C950.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AlternativeNamespace_ChildBaseFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/e_ChildBaseFullyQualifiedF82AB94D12.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AlternativeNamespace_ChildBaseFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/e_ChildBaseFullyQualifiedF82AB94D12.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_UsingDeeplyNamespaced_SomeChild.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eeplyNamespaced_SomeChild7E3B519F42.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_UsingDeeplyNamespaced_SomeChild.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eeplyNamespaced_SomeChild7E3B519F42.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AliasedStuff_Nested_ExtendsTypeFromSomewhereElse.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/endsTypeFromSomewhereElseE4FBAC4551.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AliasedStuff_Nested_ExtendsTypeFromSomewhereElse.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/endsTypeFromSomewhereElseE4FBAC4551.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_DeeplyNamespaced_Container_Container2_DeeplyNestedBaseClass.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/er2_DeeplyNestedBaseClassAC795ED913.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_DeeplyNamespaced_Container_Container2_DeeplyNestedBaseClass.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/er2_DeeplyNestedBaseClassAC795ED913.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildOne.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/estCases_ConcreteChildOneCC2D9F5CA5.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildOne.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/estCases_ConcreteChildOneCC2D9F5CA5.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildTwo.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/estCases_ConcreteChildTwo177A70AE02.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_ConcreteChildTwo.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/estCases_ConcreteChildTwo177A70AE02.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_C_D_SomeBaseClass.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/her_A_B_C_D_SomeBaseClassECA01F390E.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_A_B_C_D_SomeBaseClass.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/her_A_B_C_D_SomeBaseClassECA01F390E.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AlternativeNamespace_ChildBaseNotFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hildBaseNotFullyQualified96BFFBDF77.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/AlternativeNamespace_ChildBaseNotFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hildBaseNotFullyQualified96BFFBDF77.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_UsingDeeplyNamespaced_Child.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ingDeeplyNamespaced_ChildB31D784D2E.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/BaseClasses_A_B_UsingDeeplyNamespaced_Child.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ingDeeplyNamespaced_ChildB31D784D2E.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_AOtherModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/nnerContainer_AOtherModel42232E4BF8.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_OuterContainer_MidContainer_AInnerContainer_AOtherModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/nnerContainer_AOtherModel42232E4BF8.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GlobalScopeContainer_TypeInGlobalScope.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ntainer_TypeInGlobalScopeF72964AC7A.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GlobalScopeContainer_TypeInGlobalScope.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ntainer_TypeInGlobalScopeF72964AC7A.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_MyType.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/or_Tests_TestCases_MyType1CDCCD6086.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_MyType.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/or_Tests_TestCases_MyType1CDCCD6086.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_ChildBaseFullyQualified.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/r_ChildBaseFullyQualified695F3233EA.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/OtherNamespace_Altogether_ChildBaseFullyQualified.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/r_ChildBaseFullyQualified695F3233EA.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AttributesWithNamedArgs.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_AttributesWithNamedArgs21E465F742.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AttributesWithNamedArgs.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_AttributesWithNamedArgs21E465F742.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_InitArgsModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_InitArgsModel651DDFA4A7.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_InitArgsModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_InitArgsModel651DDFA4A7.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_PropertyModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_PropertyModel4D221791B1.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_PropertyModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/s_TestCases_PropertyModel4D221791B1.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_Collections.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TestCases_Collections23D60571D5.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_Collections.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TestCases_Collections23D60571D5.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AbstractTypeWithVersionIsBad.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tractTypeWithVersionIsBad8F1C3FCB0B.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AbstractTypeWithVersionIsBad.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tractTypeWithVersionIsBad8F1C3FCB0B.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AbstractType.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_AbstractTypeF9039C5995.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_AbstractType.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_AbstractTypeF9039C5995.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_DerivedModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_DerivedModel2583598D69.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_DerivedModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_DerivedModel2583598D69.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_PartialModel.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_PartialModelED2F9C08D8.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_PartialModel.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TestCases_PartialModelED2F9C08D8.g.cs diff --git a/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_One_Two_IThree_Four_NestedType.g.cs b/Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/wo_IThree_Four_NestedType7FDE758058.g.cs similarity index 100% rename from Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspection_Generator_Tests_TestCases_One_Two_IThree_Four_NestedType.g.cs rename to Chickensoft.Introspection.Generator.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/wo_IThree_Four_NestedType7FDE758058.g.cs diff --git a/Chickensoft.Introspection.Generator/src/models/DeclaredType.cs b/Chickensoft.Introspection.Generator/src/models/DeclaredType.cs index fa36f78..0acad87 100644 --- a/Chickensoft.Introspection.Generator/src/models/DeclaredType.cs +++ b/Chickensoft.Introspection.Generator/src/models/DeclaredType.cs @@ -5,6 +5,7 @@ namespace Chickensoft.Introspection.Generator.Models; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; +using System.Security.Cryptography; using Chickensoft.Introspection.Generator.Utils; using Microsoft.CodeAnalysis; @@ -41,8 +42,29 @@ public sealed record DeclaredType( ImmutableArray Attributes, ImmutableArray Mixins ) { + private static readonly MD5 _md5 = MD5.Create(); + private const int NAME_PORTION = 25; + private const int HASH_PORTION = 10; + /// Output filename (only works for non-generic types). - public string Filename => FullNameOpen.Replace('.', '_'); + public string Filename { + get { + var name = FullNameOpen.Replace('.', '_'); + + if (name.Length <= NAME_PORTION + HASH_PORTION) { + return name; + } + + // Name is too long, grab last section of the string + var truncated = name.Substring(name.Length - NAME_PORTION); + var hash = _md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes(name)); + var hashString = BitConverter.ToString(hash).Replace("-", ""); + var hashLast = hashString.Substring( + hashString.Length - HASH_PORTION + ); + return $"{truncated}{hashLast}"; + } + } /// /// Fully qualified, open generic name, as determined based on syntax nodes diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio128A6C22666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio128A6C22666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio128A6C22666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio1BBA70C2FA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio1BBA70C2FA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio1BBA70C2FA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio444FE4CECBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio444FE4CECBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio444FE4CECBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio48A151444DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio48A151444DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio48A151444DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio4BE1D24FF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio4BE1D24FF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio4BE1D24FF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio6490C6691E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio6490C6691E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio6490C6691E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio8B1441D70FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio8B1441D70FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_Introspectio8B1441D70FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioC336F212B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioC336F212B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioC336F212B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioCABA6A96F062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioCABA6A96F062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioCABA6A96F062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioE4FE38B50BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioE4FE38B50BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioE4FE38B50BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioED46EB8D28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioED46EB8D28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioED46EB8D28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioFA9606B7B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioFA9606B7B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Chickensoft_IntrospectioFA9606B7B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GraphTest_SubtypeA_SubtypeBCBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GraphTest_SubtypeA_SubtypeBCBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/GraphTest_SubtypeA_SubtypeBCBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_Model4FF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_Model4FF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_Model4FF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphVersionTest_Model1E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphVersionTest_Model1E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/Tests_TypeGraphVersionTest_Model1E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model1B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model1B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model1B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model2666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model2666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model2666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model3B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model3B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/TypeGraphVersionTest_Model3B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_NoSubtypesB50BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_NoSubtypesB50BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_NoSubtypesB50BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphVersionTest_Model1E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphVersionTest_Model1E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/_TypeGraphVersionTest_Model1E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_ChildModel0FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_ChildModel0FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_ChildModel0FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_Model28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_Model28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphMemberMetadataTest_Model28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphTest_SubtypeA_SubtypeBCECBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphTest_SubtypeA_SubtypeBCECBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/aphTest_SubtypeA_SubtypeBCECBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eGraphMemberMetadataTest_Model28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eGraphMemberMetadataTest_Model28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/eGraphMemberMetadataTest_Model28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ection_Tests_TypeGraphTest_ModelF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ection_Tests_TypeGraphTest_ModelF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ection_Tests_TypeGraphTest_ModelF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/erMetadataTest_ChildModelD70FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/erMetadataTest_ChildModelD70FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/erMetadataTest_ChildModelD70FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeAF062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeAF062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeAF062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model1B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model1B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model1B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model2666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model2666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model2666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model3B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model3B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ests_TypeGraphVersionTest_Model3B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_ChildModel0FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_ChildModel0FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_ChildModel0FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_Model8D28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_Model8D28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/hMemberMetadataTest_Model8D28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ion_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/mberMetadataTest_ChildModel0FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/mberMetadataTest_ChildModel0FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/mberMetadataTest_ChildModel0FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_ModelF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_ModelF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_ModelF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/n_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWi4DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWi4DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWi4DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWithAMixin4DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWithAMixin4DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_MyTypeWithAMixin4DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap0FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap1E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap1E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap1E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrap666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapB5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapCBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapCBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapCBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapFA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapFA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGrapFA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_ChildModel0FB8BF24.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_ChildModel0FB8BF24.g.cs new file mode 100644 index 0000000..9b6e306 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_ChildModel0FB8BF24.g.cs @@ -0,0 +1,73 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class ChildModel : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(ChildModel))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(ChildModel); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "ChildName", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((ChildModel)obj).ChildName, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property ChildName on ChildModel is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("child") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing ChildModel requires init args."); + return new ChildModel() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + ChildName = args.ContainsKey("ChildName") ? (string)args["ChildName"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_Model28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_Model28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphMemberMetadataTest_Model28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_ModelF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_ModelF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_ModelF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_NoSubtypes0BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeAF062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphTest_SubtypeCFA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model1E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model2666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model2666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model2666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model3B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model3B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/oft_Introspection_Tests_TypeGraphVersionTest_Model3B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/on_Tests_MyTypeWithAMixin444DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/on_Tests_MyTypeWithAMixin444DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/on_Tests_MyTypeWithAMixin444DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ospection_Tests_MyTypeWithAMixin4DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ospection_Tests_MyTypeWithAMixin4DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ospection_Tests_MyTypeWithAMixin4DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model112B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model112B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model112B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model222666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model222666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model222666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model3B7B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model3B7B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/peGraphVersionTest_Model3B7B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/pection_Tests_MyTypeWithAMixin4DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/pection_Tests_MyTypeWithAMixin4DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/pection_Tests_MyTypeWithAMixin4DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TypeGraphVersionTest_Model1E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TypeGraphVersionTest_Model1E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/sts_TypeGraphVersionTest_Model1E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_MyTypeWithAMixin4DFB44AF.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_MyTypeWithAMixin4DFB44AF.g.cs new file mode 100644 index 0000000..45ce086 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_MyTypeWithAMixin4DFB44AF.g.cs @@ -0,0 +1,46 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Shouldly; +using System; +using Xunit; + +partial class MyTypeWithAMixin : Chickensoft.Introspection.IIntrospective, IMixin1, IMixin2 { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(MyTypeWithAMixin))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(MyTypeWithAMixin); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute(typeof(IMixin1), typeof(IMixin2)) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + typeof(IMixin1), + typeof(IMixin2) + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + [typeof(IMixin1)] = (obj) => ((IMixin1)obj).Handler(), + [typeof(IMixin2)] = (obj) => ((IMixin2)obj).Handler() + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new MyTypeWithAMixin(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_TypeGraphTest_ModelF6A4782E.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_TypeGraphTest_ModelF6A4782E.g.cs new file mode 100644 index 0000000..9a64e85 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/tion_Tests_TypeGraphTest_ModelF6A4782E.g.cs @@ -0,0 +1,68 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: false, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? _) => { }, + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_NoSubtypes0BED7369.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_NoSubtypes0BED7369.g.cs new file mode 100644 index 0000000..4a8ff7e --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_NoSubtypes0BED7369.g.cs @@ -0,0 +1,49 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class NoSubtypes : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(NoSubtypes))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(NoSubtypes); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new NoSubtypes(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeA96F062FA2B.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeA96F062FA2B.g.cs new file mode 100644 index 0000000..8192ec5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeA96F062FA2B.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeA))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeA); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_a") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeA(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeCC2FA7FBDBB.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeCC2FA7FBDBB.g.cs new file mode 100644 index 0000000..efec892 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphTest_SubtypeCC2FA7FBDBB.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeC : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeC))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeC); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_c") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeC(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model1B5DD8E71.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model1B5DD8E71.g.cs new file mode 100644 index 0000000..ee6fb49 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model1B5DD8E71.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model1 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model1))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model1); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(1) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model1(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model2666FE7CE.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model2666FE7CE.g.cs new file mode 100644 index 0000000..bcc8f82 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model2666FE7CE.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model2 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model2))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model2); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(2) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model2(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model3B5491774.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model3B5491774.g.cs new file mode 100644 index 0000000..407e031 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ts_TypeGraphVersionTest_Model3B5491774.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model3 : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model3))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model3); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(VersionAttribute)] = new System.Attribute[] { + new VersionAttribute(3) + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new Model3(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphMemberMetadataTest_Model28D57DDD.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphMemberMetadataTest_Model28D57DDD.g.cs new file mode 100644 index 0000000..21f99e5 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphMemberMetadataTest_Model28D57DDD.g.cs @@ -0,0 +1,91 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphMemberMetadataTest { + partial class Model : Chickensoft.Introspection.IIntrospective { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = true; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + new Chickensoft.Introspection.PropertyMetadata( + Name: "Age", + IsInit: true, + IsRequired: true, + Getter: (object obj) => ((Model)obj).Age, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Age on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(int), + ClosedType: typeof(int), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("age") + } + } + ), + new Chickensoft.Introspection.PropertyMetadata( + Name: "Name", + IsInit: true, + IsRequired: false, + Getter: (object obj) => ((Model)obj).Name, + Setter: (object obj, object? value) => throw new System.InvalidOperationException("Property Name on Model is init-only."), + GenericType: new GenericType( + OpenType: typeof(string), + ClosedType: typeof(string), + Arguments: System.Array.Empty(), + GenericTypeGetter: receiver => receiver.Receive(), + GenericTypeGetter2: default + ), + Attributes: new System.Collections.Generic.Dictionary() { + } + ) + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + }, + [typeof(TagAttribute)] = new System.Attribute[] { + new TagAttribute("model") + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + args = args ?? throw new System.ArgumentNullException(nameof(args), "Constructing Model requires init args."); + return new Model() { + Age = args.ContainsKey("Age") ? (int)args["Age"] : default!, + Name = args.ContainsKey("Name") ? (string)args["Name"] : default! + }; + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs new file mode 100644 index 0000000..6aad067 --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphTest_SubtypeA_SubtypeBCBE7E572.g.cs @@ -0,0 +1,54 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphTest { + partial class SubtypeA { + partial class SubtypeB : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(SubtypeB))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(SubtypeB); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("test_model_subtype_b") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + return new SubtypeB(); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphVersionTest_Model691E41E943.g.cs b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphVersionTest_Model691E41E943.g.cs new file mode 100644 index 0000000..112fb9d --- /dev/null +++ b/Chickensoft.Introspection.Tests/.generated/Chickensoft.Introspection.Generator/Chickensoft.Introspection.Generator.TypeGenerator/ypeGraphVersionTest_Model691E41E943.g.cs @@ -0,0 +1,52 @@ +#pragma warning disable +#nullable enable +namespace Chickensoft.Introspection.Tests; + +using Chickensoft.Introspection; +using Moq; +using Shouldly; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using Xunit; + +partial class TypeGraphVersionTest { + partial class Model : Chickensoft.Introspection.IIntrospective, Chickensoft.Introspection.IIdentifiable { + public Chickensoft.Introspection.MixinBlackboard MixinState { get; } = new(); + + public Chickensoft.Introspection.IMetatype Metatype => ((Chickensoft.Introspection.IIntrospectiveTypeMetadata)Chickensoft.Introspection.Types.Graph.GetMetadata(typeof(Model))).Metatype; + + public class MetatypeMetadata : Chickensoft.Introspection.IMetatype { + public System.Type Type => typeof(Model); + public bool HasInitProperties { get; } = false; + + public System.Collections.Generic.IReadOnlyList Properties { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary Attributes { get; } = new System.Collections.Generic.Dictionary() { + [typeof(IdAttribute)] = new System.Attribute[] { + new IdAttribute("version_test_model") + }, + [typeof(MetaAttribute)] = new System.Attribute[] { + new MetaAttribute() + } + }; + + public System.Collections.Generic.IReadOnlyList Mixins { get; } = new System.Collections.Generic.List() { + }; + + public System.Collections.Generic.IReadOnlyDictionary> MixinHandlers { get; } = new System.Collections.Generic.Dictionary>() { + }; + + + public object Construct(System.Collections.Generic.IReadOnlyDictionary? args = null) { + throw new System.NotImplementedException("Model is not instantiable."); + } + public override bool Equals(object obj) => true; + public override int GetHashCode() => base.GetHashCode(); + } + } +} +#nullable restore +#pragma warning restore diff --git a/Chickensoft.Introspection.Tests/badges/branch_coverage.svg b/Chickensoft.Introspection.Tests/badges/branch_coverage.svg index 083a841..cc017fc 100644 --- a/Chickensoft.Introspection.Tests/badges/branch_coverage.svg +++ b/Chickensoft.Introspection.Tests/badges/branch_coverage.svg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3267fc9a014d46d23e8277d53ee7f4d2614d028d2ee51b2de892db3922bb2071 -size 7276 +oid sha256:7ce7844d3ba8c9572c3b69e692577880eef0a933dd29df2cee61acc8b0c8f8c3 +size 7388 diff --git a/Chickensoft.Introspection.Tests/badges/line_coverage.svg b/Chickensoft.Introspection.Tests/badges/line_coverage.svg index 4f0da9b..c2cc7ce 100644 --- a/Chickensoft.Introspection.Tests/badges/line_coverage.svg +++ b/Chickensoft.Introspection.Tests/badges/line_coverage.svg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:131fd757899610a44240b6f6814bd74acddfd9ff63b1562f2223360670c10825 -size 5049 +oid sha256:b5770c82fa07a9f273c9e27a171fa96075709de25820e6b636918206b5cb465c +size 5161