mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 07:21:04 +01:00
Basic SemIR partial support (#5736)
This adds something similar to the level of `const` support - that it's a type, but not the conversions and limitations on usage that are needed. --------- Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
This commit is contained in:
co-authored by
Chandler Carruth
parent
49212feac6
commit
b39a0f0c8c
@@ -514,6 +514,12 @@ class Stringifier {
|
||||
name_scope.name_id());
|
||||
}
|
||||
|
||||
auto StringifyInst(InstId /*inst_id*/, PartialType inst) -> void {
|
||||
*out_ << "partial ";
|
||||
|
||||
step_stack_->PushInstId(inst.inner_id);
|
||||
}
|
||||
|
||||
auto StringifyInst(InstId /*inst_id*/, PatternType inst) -> void {
|
||||
*out_ << "<pattern for ";
|
||||
step_stack_->Push(inst.scrutinee_type_inst_id, ">");
|
||||
|
||||
Reference in New Issue
Block a user