mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 11:20:29 +00:00
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:
1 parent
30155dbb72
commit
7dffa0c7ec
34 files changed
+1088
-74
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user