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:
parent
eb4e3ac070
commit
510d2e006b
32 changed files with 185 additions and 378 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue