mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01: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:
@@ -118,7 +118,7 @@ auto DeclarationNameStack::UpdateScopeIfNeeded(NameContext& name_context)
|
||||
auto resolved_node =
|
||||
context_->semantics_ir().GetNode(name_context.resolved_node_id);
|
||||
switch (resolved_node.kind()) {
|
||||
case SemIR::NodeKind::Namespace:
|
||||
case SemIR::Namespace::Kind:
|
||||
name_context.state = NameContext::State::Resolved;
|
||||
name_context.target_scope_id =
|
||||
resolved_node.As<SemIR::Namespace>().name_scope_id;
|
||||
|
||||
Reference in New Issue
Block a user