mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 17:11:04 +01:00
Rename Name -> IdentifierName given that we have several other kinds of parse nodes that represent names. (#3453)
Factor out common checking handling for the different kinds of unqualified names
This commit is contained in:
@@ -311,12 +311,12 @@ class NodeStack {
|
||||
case Parse::NodeKind::BindingPattern:
|
||||
case Parse::NodeKind::CallExpr:
|
||||
case Parse::NodeKind::CallExprStart:
|
||||
case Parse::NodeKind::IdentifierNameExpr:
|
||||
case Parse::NodeKind::IfExprThen:
|
||||
case Parse::NodeKind::IfExprElse:
|
||||
case Parse::NodeKind::IndexExpr:
|
||||
case Parse::NodeKind::InfixOperator:
|
||||
case Parse::NodeKind::MemberAccessExpr:
|
||||
case Parse::NodeKind::NameExpr:
|
||||
case Parse::NodeKind::PackageExpr:
|
||||
case Parse::NodeKind::ParenExpr:
|
||||
case Parse::NodeKind::PostfixOperator:
|
||||
@@ -343,7 +343,7 @@ class NodeStack {
|
||||
case Parse::NodeKind::ClassDefinitionStart:
|
||||
return IdKind::ClassId;
|
||||
case Parse::NodeKind::BaseName:
|
||||
case Parse::NodeKind::Name:
|
||||
case Parse::NodeKind::IdentifierName:
|
||||
return IdKind::NameId;
|
||||
case Parse::NodeKind::ArrayExprSemi:
|
||||
case Parse::NodeKind::ClassIntroducer:
|
||||
|
||||
Reference in New Issue
Block a user