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 authored and GitHub committed 2023-07-12 23:26:53 +00:00
1 parent c0d18a62eb
commit 9751b4701d
16 files changed
+167 -66

No files matched your search

@@ -17,7 +17,7 @@ auto SemanticsHandleCodeBlockStart(SemanticsContext& context,
auto SemanticsHandleCodeBlock(SemanticsContext& context,
ParseTree::Node /*parse_node*/) -> bool {
context.PopScope();
context.node_stack().PopForSoloParseNode(ParseNodeKind::CodeBlockStart);
context.node_stack().PopForSoloParseNode<ParseNodeKind::CodeBlockStart>();
return true;
}