Fix export tables and remove static Load method

This commit is contained in:
Yoshi Askharoun
2024-02-10 21:38:18 -06:00
parent 93fa998caa
commit 97001fbd29
4 changed files with 69 additions and 55 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ public class ObjectSection
{
readonly IEnumerable<IBodyItem> _body;
readonly MarkupLoadResult _loadResult;
readonly Dictionary<string, uint> _labelOffsetMap = new();
Dictionary<string, uint> _labelOffsetMap;
public ObjectSection(IEnumerable<IBodyItem> body, MarkupLoadResult loadResult)
{
@@ -28,6 +28,7 @@ public class ObjectSection
public ByteCodeReader Encode()
{
ByteCodeWriter writer = new();
_labelOffsetMap = new();
foreach (var bodyItem in _body)
{