fix(codegen): Fixes bulk order deed hue and codegens (#647)

- [X] Codegens some Bulk Order stuff
- [X] Fixes deserializing with a class that requires the parent as a constructor argument


Closes #641
Closes #623
This commit is contained in:
Kamron Batman 2021-06-11 19:51:03 -07:00 committed by GitHub
parent eb4e3ac070
commit 510d2e006b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 185 additions and 378 deletions

View file

@ -66,8 +66,6 @@ namespace SerializationSchemaGenerator
ReadCommentHandling = JsonCommentHandling.Skip
};
// var generatedSourcePath = Path.Join(projectPath, "Generated");
var serializableTypes = syntaxReceiver.SerializableList;
foreach (var (classSymbol, (attributeData, fieldsList)) in syntaxReceiver.ClassAndFields)
@ -80,18 +78,9 @@ namespace SerializationSchemaGenerator
fieldsList.ToImmutableArray(),
serializableTypes
);
// WriteSource(generatedSourcePath, classSymbol.ToDisplayString(), source);
}
}
);
}
public static void WriteSource(string sourcePath, string className, string source)
{
Directory.CreateDirectory(sourcePath);
var filePath = Path.Combine(sourcePath, $"{className}.Serialization.cs");
File.WriteAllText(filePath, source, Encoding.UTF8);
}
}
}