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
+2 -1
View File
@@ -42,7 +42,8 @@ auto HandleParseNode(Context& context, Parse::ImplIntroducerId node_id)
// TODO: Instead use a separate parse node kinds for `impl` and `impl forall`,
// and only push a pattern block in `forall` case.
context.pattern_block_stack().Push();
context.full_pattern_stack().PushFullPattern();
context.full_pattern_stack().PushFullPattern(
FullPatternStack::Kind::ImplicitParamList);
return true;
}