Skip to content

Commit

Permalink
Add GetIndex to output visitor.
Browse files Browse the repository at this point in the history
  • Loading branch information
atrexus committed Feb 4, 2024
1 parent 00beeb8 commit deb4520
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Unluau/IL/Visitors/OutputVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Xml.Linq;
using Unluau.IL.Blocks;
using Unluau.IL.Instructions;
using Unluau.IL.Values;
using Unluau.Utils;

namespace Unluau.IL.Visitors
Expand Down Expand Up @@ -63,6 +62,13 @@ public override bool Visit(GetIndexSelf node)
return false;
}

public override bool Visit(GetIndex node)
{
Writer.Write(Format(node.Context, $"GetIndex", node.Slot.ToString(), node.Index.ToString()));

return false;
}

public override bool Visit(Move node)
{
Writer.Write(Format(node.Context, $"Move", node.Target.ToString(), node.Source.ToString()));
Expand Down

0 comments on commit deb4520

Please sign in to comment.