mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 18:01:12 +00: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:
13 files changed
+198
-46
No files matched your search
@@ -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