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
@@ -55,8 +55,7 @@ auto HandleBindingPattern(Context& context, Parse::NodeId parse_node) -> bool {
// TODO: Handle `_` bindings.
// Every other kind of pattern binding has a name.
auto [name_node, name_id] =
context.node_stack().PopWithParseNode<Parse::NodeKind::Name>();
auto [name_node, name_id] = context.node_stack().PopNameWithParseNode();
// Allocate an instruction of the appropriate kind, linked to the name for
// error locations.