mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 18:56:40 +00:00
Rename semantics InvalidType to Error (#2975)
Following up on zygoloid's request [on #2940](https://github.com/carbon-language/carbon-lang/pull/2940#discussion_r1253522564)
This commit is contained in:
1 parent
ea982ad2c8
commit
bc84f109fe
28 files changed
+60
-58
No files matched your search
@@ -17,14 +17,14 @@ auto SemanticsIR::MakeBuiltinIR() -> SemanticsIR {
|
||||
SemanticsIR semantics_ir(/*builtin_ir=*/nullptr);
|
||||
semantics_ir.nodes_.reserve(SemanticsBuiltinKind::ValidCount);
|
||||
|
||||
// InvalidType uses a self-referential type so that it's not accidentally
|
||||
// treated as a normal type. Every other builtin is a type, including the
|
||||
// Error uses a self-referential type so that it's not accidentally treated as
|
||||
// a normal type. Every other builtin is a type, including the
|
||||
// self-referential TypeType.
|
||||
#define CARBON_SEMANTICS_BUILTIN_KIND(Name, ...) \
|
||||
semantics_ir.nodes_.push_back(SemanticsNode::Builtin::Make( \
|
||||
SemanticsBuiltinKind::Name, \
|
||||
SemanticsBuiltinKind::Name == SemanticsBuiltinKind::InvalidType \
|
||||
? SemanticsTypeId::InvalidType \
|
||||
#define CARBON_SEMANTICS_BUILTIN_KIND(Name, ...) \
|
||||
semantics_ir.nodes_.push_back(SemanticsNode::Builtin::Make( \
|
||||
SemanticsBuiltinKind::Name, \
|
||||
SemanticsBuiltinKind::Name == SemanticsBuiltinKind::Error \
|
||||
? SemanticsTypeId::Error \
|
||||
: SemanticsTypeId::TypeType));
|
||||
#include "toolchain/semantics/semantics_builtin_kind.def"
|
||||
|
||||
|
||||
Reference in new issue
Block a user