Switch from SemIR::NodeKind::Foo to SemIR::Foo::Kind wherever possible. (#3283)

This is shorter, more closely connected to code using the typed node
types, and avoids using the ambiguous word `Node` in places referring to
typed `SemIR` nodes.
This commit is contained in:
Richard Smith
2023-10-12 00:16:08 +00:00
committed by GitHub
parent 6e9d83e746
commit 8779fcd77c
11 changed files with 249 additions and 249 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ auto FunctionContext::LowerBlock(SemIR::NodeBlockId block_id) -> void {
// NOLINTNEXTLINE(bugprone-switch-missing-default-case)
switch (node.kind()) {
#define CARBON_SEMANTICS_NODE_KIND(Name) \
case SemIR::NodeKind::Name: \
case SemIR::Name::Kind: \
Handle##Name(*this, node_id, node.As<SemIR::Name>()); \
break;
#include "toolchain/sem_ir/node_kind.def"