fix(codegen): Fixes reference to parent while deserializing (#711)

This commit is contained in:
Kamron Batman 2021-08-21 12:23:01 -07:00 committed by GitHub
parent c0a8672db3
commit 473e752606
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,7 +146,7 @@ namespace SerializationGenerator
source,
innerIndent,
property,
"this"
parentFieldOrProperty?.Name ?? "this"
);
(rule as IPostDeserializeMethod)?.PostDeserializeMethod(source, innerIndent, property, compilation, classSymbol);
@ -168,7 +168,7 @@ namespace SerializationGenerator
source,
indent,
property,
"this"
parentFieldOrProperty?.Name ?? "this"
);
(rule as IPostDeserializeMethod)?.PostDeserializeMethod(source, indent, property, compilation, classSymbol);
}