mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-18 17:30:28 +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
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user