mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
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:
@@ -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, "*");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user