mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:44:41 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user