diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-15 09:58:18 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-15 09:58:18 +0000 |
| commit | 7e3d270e09b5e313ba8d4bd518a1ed96fac89758 (patch) | |
| tree | 09c4d662e3d2a57a07917e7ade4cbe9d3d65b0b1 /src/main/java | |
| parent | 7c6fc48c7ab8a23f8568a2f0c57c66e77a5aa69c (diff) | |
Remove unnecessary parameter
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java index a059b723..a6f9c975 100644 --- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java +++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java @@ -381,11 +381,11 @@ public class PatioCodeGen { targets.add(target); } - var trueBodyResult = generateBlock(if_.resultCount(), if_.trueBody(), if_.source(), context); + var trueBodyResult = generateBlock(if_.resultCount(), if_.trueBody(), context); var trueBody = trueBodyResult.value(); context = trueBodyResult.context(); - var falseBodyResult = generateBlock(if_.resultCount(), if_.falseBody(), if_.source(), context); + var falseBodyResult = generateBlock(if_.resultCount(), if_.falseBody(), context); var falseBody = falseBodyResult.value(); context = falseBodyResult.context(); @@ -627,7 +627,6 @@ public class PatioCodeGen { var bodyResult = generateBlock( 1, shidCase.body(), - shidCase.source(), context ); var body = bodyResult.value(); @@ -682,7 +681,7 @@ public class PatioCodeGen { try_.handledEffect(), handlerMethodsByName, bodyContext -> - generateBlock(1, try_.body(), try_.source(), bodyContext), + generateBlock(1, try_.body(), bodyContext), try_.source(), context ); @@ -850,7 +849,6 @@ public class PatioCodeGen { private static PatioCodeGenResult<PatioBlock> generateBlock( int resultCount, ShidBlock shidBlock, - Source source, PatioCodeGenContext context ) { context = context.enterBlock(); @@ -873,7 +871,7 @@ public class PatioCodeGen { return context.toResult(new PatioBlock( instructions, targets, - source + shidBlock.source() )); } |
