Separate pattern types from expression types (#5360)

This is a step toward treating patterns as compile-time constants, so
that we can import them more easily.
This commit is contained in:
Geoff Romer authored and GitHub committed 2025-04-28 16:54:37 +00:00
1 parent 84384cf126
commit fafb655d39
565 files changed
+11956 -8095

No files matched your search

+5
View File
@@ -501,6 +501,11 @@ class Stringifier {
name_scope.name_id());
}
auto StringifyInst(InstId /*inst_id*/, PatternType inst) -> void {
*out_ << "<pattern for ";
step_stack_->Push(inst.scrutinee_type_inst_id, ">");
}
auto StringifyInst(InstId /*inst_id*/, PointerType inst) -> void {
step_stack_->Push(inst.pointee_id, "*");
}