mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01: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:
@@ -168,8 +168,8 @@ struct SemanticsTypeId : public IndexBase {
|
||||
// The builtin TypeType.
|
||||
static const SemanticsTypeId TypeType;
|
||||
|
||||
// The builtin InvalidType.
|
||||
static const SemanticsTypeId InvalidType;
|
||||
// The builtin Error.
|
||||
static const SemanticsTypeId Error;
|
||||
|
||||
// An explicitly invalid ID.
|
||||
static const SemanticsTypeId Invalid;
|
||||
@@ -179,8 +179,8 @@ struct SemanticsTypeId : public IndexBase {
|
||||
out << "type";
|
||||
if (index == TypeType.index) {
|
||||
out << "TypeType";
|
||||
} else if (index == InvalidType.index) {
|
||||
out << "InvalidType";
|
||||
} else if (index == Error.index) {
|
||||
out << "Error";
|
||||
} else {
|
||||
IndexBase::Print(out);
|
||||
}
|
||||
@@ -189,7 +189,7 @@ struct SemanticsTypeId : public IndexBase {
|
||||
|
||||
constexpr SemanticsTypeId SemanticsTypeId::TypeType =
|
||||
SemanticsTypeId(SemanticsTypeId::InvalidIndex - 2);
|
||||
constexpr SemanticsTypeId SemanticsTypeId::InvalidType =
|
||||
constexpr SemanticsTypeId SemanticsTypeId::Error =
|
||||
SemanticsTypeId(SemanticsTypeId::InvalidIndex - 1);
|
||||
constexpr SemanticsTypeId SemanticsTypeId::Invalid =
|
||||
SemanticsTypeId(SemanticsTypeId::InvalidIndex);
|
||||
|
||||
Reference in New Issue
Block a user