Use FullPatternStack instead of node stack for binding context (#4829)

This commit is contained in:
Geoff Romer
2025-01-23 17:25:31 +00:00
committed by GitHub
parent 9c0faf007e
commit 96256652c5
14 changed files with 117 additions and 93 deletions
+6
View File
@@ -37,6 +37,12 @@ auto HandleParseNode(Context& context, Parse::TuplePatternStartId node_id)
context.node_stack().Push(node_id);
context.param_and_arg_refs_stack().Push();
context.BeginSubpattern();
// TODO: Remove this branch once the parse tree differentiates between
// tuple patterns and param patterns.
if (context.full_pattern_stack().CurrentKind() ==
FullPatternStack::Kind::ImplicitParamList) {
context.full_pattern_stack().EndImplicitParamList();
}
return true;
}