mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 09:00:27 +00: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:
1 parent
4a73b36688
commit
9d942f4633
347 files changed
+9148
-5802
No files matched your search
@@ -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