-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
181 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Unluau.Common/IR/ProtoTypes/Instructions/GetTableKS.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Unluau.Common.IR.ProtoTypes.Instructions | ||
{ | ||
/// <summary> | ||
/// Represents a get table instruction with a constant key. | ||
/// </summary> | ||
public class GetTableKS(ulong value) : InstructionABC(value) | ||
{ | ||
/// <inheritdoc/> | ||
public override void Accept(Visitor visitor) | ||
{ | ||
visitor.Visit(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Unluau.Common.IR.ProtoTypes.Instructions | ||
{ | ||
public class GetTableN(uint value) : InstructionABC(value) | ||
{ | ||
/// <inheritdoc/> | ||
public override void Accept(Visitor visitor) | ||
{ | ||
visitor.Visit(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Unluau.Common.IR.ProtoTypes.Instructions | ||
{ | ||
/// <summary> | ||
/// Represents the `settable` instruction. | ||
/// </summary> | ||
public class SetTable(uint value) : InstructionABC(value) | ||
{ | ||
/// <inheritdoc/> | ||
public override void Accept(Visitor visitor) | ||
{ | ||
visitor.Visit(this); | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/Unluau.Common/IR/ProtoTypes/Instructions/SetTableKS.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Unluau.Common.IR.ProtoTypes.Instructions | ||
{ | ||
/// <summary> | ||
/// Represents a set table instruction with a constant key. | ||
/// </summary> | ||
public class SetTableKS(ulong value) : InstructionABC(value) | ||
{ | ||
/// <inheritdoc/> | ||
public override void Accept(Visitor visitor) | ||
{ | ||
visitor.Visit(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters