Start node stack push/pop setting IdT based on ParseNodeKind. (#2985)

I think there's more we can do here, but this seemed like a good
checkpoint to make sure the path I'm going down is roughly what you
expected. There's one actual edit in if expression structure to match
the increased enforcement.
This commit is contained in:
Jon Ross-Perkins
2023-07-12 23:26:53 +00:00
committed by GitHub
parent c0d18a62eb
commit 9751b4701d
16 changed files with 167 additions and 66 deletions
@@ -25,8 +25,7 @@ auto SemanticsHandlePatternBinding(SemanticsContext& context,
// Get the name.
auto [name_node, name_id] =
context.node_stack().PopWithParseNode<SemanticsStringId>(
ParseNodeKind::Name);
context.node_stack().PopWithParseNode<ParseNodeKind::Name>();
// Allocate storage, linked to the name for error locations.
auto storage_id =