fix(content): Converts Holiday objects to codegen (#622)

- Fixes an issue with source generators
- Source generates holiday objects.
This commit is contained in:
Kamron Batman 2021-05-27 11:06:03 -07:00 committed by GitHub
parent 81e4087acc
commit 6e9108302a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
80 changed files with 421 additions and 999 deletions

View file

@ -116,7 +116,7 @@ namespace SerializationGenerator
);
source.AppendLine();
var serializablePropertySet = new SortedSet<SerializableProperty>();
var serializablePropertySet = new SortedSet<SerializableProperty>(new SerializablePropertyComparer());
foreach (var fieldOrPropertySymbol in fieldsAndProperties)
{
@ -253,7 +253,7 @@ namespace SerializationGenerator
source.GenerateSerialCtor(context, className, isOverride);
source.AppendLine();
List<SerializableMetadata> migrations;
List<SerializableMetadata> migrations = new List<SerializableMetadata>();
if (version > 0)
{
@ -274,10 +274,6 @@ namespace SerializationGenerator
}
}
}
else
{
migrations = new List<SerializableMetadata>();
}
// Serialize Method
source.GenerateSerializeMethod(