mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 06:11:05 +01:00
Generate parameter pattern-match IR from pattern IR (#4388)
Also propagate the pattern IR along with the pattern-match IR, and use it where appropriate. Strictly speaking, some parts of the pattern-match IR are allocated eagerly, while traversing the pattern's parse tree, but they still aren't actually emitted until we traverse the associated pattern insts. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Jon Ross-Perkins
parent
4a73b36688
commit
9d942f4633
@@ -377,9 +377,9 @@ auto DeclNameStack::ResolveAsScope(const NameContext& name_context,
|
||||
return InvalidResult;
|
||||
}
|
||||
|
||||
auto new_params = DeclParams(name.name_loc_id, name.first_param_node_id,
|
||||
name.last_param_node_id, name.implicit_params_id,
|
||||
name.params_id);
|
||||
auto new_params = DeclParams(
|
||||
name.name_loc_id, name.first_param_node_id, name.last_param_node_id,
|
||||
name.implicit_param_patterns_id, name.param_patterns_id);
|
||||
|
||||
// Find the scope corresponding to the resolved instruction.
|
||||
// TODO: When diagnosing qualifiers on names, print a diagnostic that talks
|
||||
|
||||
Reference in New Issue
Block a user