Support for while statements. (#3258)

Basic support for type-checking and lowering of `while` statements, as
well as `break` and `continue`.
This commit is contained in:
Richard Smith
2023-10-11 19:20:46 +00:00
committed by GitHub
parent c7a9e29a89
commit 6e9d83e746
16 changed files with 710 additions and 12 deletions
+2
View File
@@ -264,6 +264,8 @@ class NodeStack {
case Parse::NodeKind::IfCondition:
case Parse::NodeKind::IfExpressionIf:
case Parse::NodeKind::ParameterList:
case Parse::NodeKind::WhileCondition:
case Parse::NodeKind::WhileConditionStart:
return IdKind::NodeBlockId;
case Parse::NodeKind::FunctionDefinitionStart:
return IdKind::FunctionId;