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 authored and GitHub committed 2023-10-12 00:16:08 +00:00
1 parent 6e9d83e746
commit 8779fcd77c
11 files changed
+249 -249

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ auto Node::Print(llvm::raw_ostream& out) const -> void {
// NOLINTNEXTLINE(bugprone-switch-missing-default-case)
switch (kind_) {
#define CARBON_SEMANTICS_NODE_KIND(Name) \
case NodeKind::Name: \
case Name::Kind: \
std::apply(print_args, As<SemIR::Name>().args_tuple()); \
break;
#include "toolchain/sem_ir/node_kind.def"