Skip to content

Commit 1728096

Browse files
authored
Merge pull request #59 from martindevans/GetIndex_Accessor
Added `GetIndex` accessors (alternative to PR#58, which used properties)
2 parents 1665c1c + 431ee2b commit 1728096

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Wacs.Core/Instructions/GlobalVariable.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public InstGlobalGet() : base(ByteCode.GlobalGet, +1) { }
3131

3232
private GlobalIdx Index;
3333

34+
public GlobalIdx GetIndex() => Index;
35+
3436
public int LinkStackDiff => StackDiff;
3537

3638
public bool IsConstant(IWasmValidationContext? context)
@@ -130,6 +132,8 @@ public InstGlobalSet() : base(ByteCode.GlobalSet, -1) { }
130132

131133
private GlobalIdx Index;
132134

135+
public GlobalIdx GetIndex() => Index;
136+
133137
public int LinkStackDiff => StackDiff;
134138

135139
public bool IsConstant(IWasmValidationContext? context) =>

0 commit comments

Comments
 (0)