mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 17:01:11 +00:00
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:
1 parent
6e9d83e746
commit
8779fcd77c
11 files changed
+249
-249
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user