aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-11-20 20:47:20 +0000
committerMichael Williamson <mike@zwobble.org>2023-11-20 20:47:20 +0000
commit1947263a598890083864a925405d4d5b54f48f29 (patch)
tree85dffb4d61aa4d8e5ed4a6198afb3b9d2a20e18e /src/test/java
parente406708eb8a77a5929982947d11d44b52223e812 (diff)
Store patio local type as explicit field
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/org/shedlang/compiler/patio/instructions/Patio.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java b/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java
index 451628da..a076b058 100644
--- a/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java
+++ b/src/test/java/org/shedlang/compiler/patio/instructions/Patio.java
@@ -217,8 +217,8 @@ public class Patio {
);
}
- public static PatioLocal.Param param(String name, PatioType type) {
- return new PatioLocal.Param(name, type);
+ public static PatioLocal param(String name, PatioType type) {
+ return new PatioLocal(name, type, PatioLocalType.PARAM);
}
public static PatioInstruction return_(PatioOperand value) {
@@ -242,12 +242,12 @@ public class Patio {
return new PatioUnreachable(Sources.NULL);
}
- public static PatioLocal.Val val(String name, PatioType type) {
- return new PatioLocal.Val(name, type);
+ public static PatioLocal val(String name, PatioType type) {
+ return new PatioLocal(name, type, PatioLocalType.VAL);
}
- public static PatioLocal.Var var(String name, PatioType type) {
- return new PatioLocal.Var(name, type);
+ public static PatioLocal var(String name, PatioType type) {
+ return new PatioLocal(name, type, PatioLocalType.VAR);
}
public static PatioInstruction varLoad(PatioLocalRef target, PatioLocalRef value) {