mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Rename ParamList to TuplePattern (#3479)
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
This commit is contained in:
co-authored by
Richard Smith
parent
407079c33a
commit
6e65a30b5d
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user