Rename ParamList to TuplePattern (#3479)

Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
Geoff Romer
2023-12-08 23:35:47 +00:00
committed by GitHub
co-authored by Richard Smith
parent 407079c33a
commit 6e65a30b5d
132 changed files with 524 additions and 500 deletions
+3 -1
View File
@@ -115,9 +115,11 @@ auto HandleBindingPattern(Context& context, Parse::NodeId parse_node) -> bool {
}
case Parse::NodeKind::ImplicitParamListStart:
case Parse::NodeKind::ParamListStart:
case Parse::NodeKind::TuplePatternStart:
// Parameters can have incomplete types in a function declaration, but not
// in a function definition. We don't know which kind we have here.
// TODO: A tuple pattern can appear in other places than function
// parameters.
context.AddInstAndPush(parse_node,
SemIR::Param{name_node, cast_type_id, name_id});
// TODO: Create a `BindName` instruction.