Writers: remove static WeavingFailed references

This commit is contained in:
vis2k 2021-08-20 21:36:00 +08:00
parent 7762058b86
commit 9fe4608532

View File

@ -66,7 +66,7 @@ public MethodReference GetWriteFunc(TypeReference variable, ref bool WeavingFail
catch (GenerateWriterException e)
{
Log.Error(e.Message, e.MemberReference);
Weaver.WeavingFailed = true;
WeavingFailed = true;
return null;
}
}
@ -281,7 +281,7 @@ MethodDefinition GenerateCollectionWriter(TypeReference variable, TypeReference
if (elementWriteFunc == null)
{
Log.Error($"Cannot generate writer for {variable}. Use a supported type or provide a custom writer", variable);
Weaver.WeavingFailed = true;
WeavingFailed = true;
return writerFunc;
}