Support for base: T;, .base, x.base. (#3450)

No support for `extend base` yet, in an effort to minimize collisions
with #3412.
This commit is contained in:
Richard Smith
2023-12-04 22:45:59 +00:00
committed by GitHub
parent 30155dbb72
commit 7dffa0c7ec
34 changed files with 1088 additions and 74 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ auto DeclNameStack::FinishName() -> NameContext {
.PopAndDiscardSoloParseNode<Parse::NodeKind::QualifiedDecl>();
} else {
// The name had no qualifiers, so we need to process the node now.
auto [parse_node, name_id] =
context_->node_stack().PopWithParseNode<Parse::NodeKind::Name>();
auto [parse_node, name_id] = context_->node_stack().PopNameWithParseNode();
ApplyNameQualifier(parse_node, name_id);
}