diff options
Diffstat (limited to 'src/Execution/ControlFlowResult.php')
| -rw-r--r-- | src/Execution/ControlFlowResult.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Execution/ControlFlowResult.php b/src/Execution/ControlFlowResult.php new file mode 100644 index 0000000..1b995d9 --- /dev/null +++ b/src/Execution/ControlFlowResult.php @@ -0,0 +1,20 @@ +<?php + +declare(strict_types=1); + +namespace Nsfisis\Waddiwasi\Execution; + +use Nsfisis\Waddiwasi\Structure\Types\LabelIdx; + +abstract readonly class ControlFlowResult +{ + final public static function Br(LabelIdx $label): ControlFlowResults\Br + { + return new ControlFlowResults\Br($label); + } + + final public static function Return(): ControlFlowResults\Return_ + { + return new ControlFlowResults\Return_(); + } +} |
