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

+2 -1
View File
@@ -307,7 +307,8 @@ auto SemanticsContext::PopDeclarationName() -> DeclarationNameContext {
ParseNodeKind::QualifiedDeclaration) {
// Any parts from a QualifiedDeclaration will already have been processed
// into the name.
node_stack_.PopAndDiscardSoloParseNode(ParseNodeKind::QualifiedDeclaration);
node_stack_
.PopAndDiscardSoloParseNode<ParseNodeKind::QualifiedDeclaration>();
} else {
// The name had no qualifiers, so we need to process the node now.
auto [parse_node, node_or_name_id] =