mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 21:51:12 +01:00
where check stage, step 2: SemIR (#4349)
The check stage now produces SemIR instructions to represent a `where` clause. It still does not check types. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com> Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
co-authored by
Josh L
Jon Ross-Perkins
parent
4c9ffb0dee
commit
bdbd1079a6
@@ -425,6 +425,7 @@ class NodeStack {
|
||||
case Parse::NodeKind::ShortCircuitOperandOr:
|
||||
case Parse::NodeKind::StructField:
|
||||
case Parse::NodeKind::StructTypeField:
|
||||
case Parse::NodeKind::WhereOperand:
|
||||
return Id::KindFor<SemIR::InstId>();
|
||||
case Parse::NodeKind::IfCondition:
|
||||
case Parse::NodeKind::IfExprIf:
|
||||
@@ -449,8 +450,6 @@ class NodeStack {
|
||||
case Parse::NodeKind::DefaultLibrary:
|
||||
case Parse::NodeKind::LibraryName:
|
||||
return Id::KindFor<SemIR::LibraryNameId>();
|
||||
case Parse::NodeKind::WhereOperand:
|
||||
return Id::KindFor<SemIR::TypeId>();
|
||||
case Parse::NodeKind::ArrayExprSemi:
|
||||
case Parse::NodeKind::BuiltinName:
|
||||
case Parse::NodeKind::ClassIntroducer:
|
||||
|
||||
Reference in New Issue
Block a user