Binding pattern naming cleanup (#3410)

- Rename `PatternBinding` to `BindingPattern`.
- Use `BindingPattern` rather than `Pattern` in the names of
binding-pattern-specific parse states.
This commit is contained in:
Geoff Romer
2023-12-01 21:36:51 +00:00
committed by GitHub
parent 18c3622bec
commit b8d4e2f41b
131 changed files with 349 additions and 278 deletions
+1 -1
View File
@@ -294,6 +294,7 @@ class NodeStack {
static constexpr auto ParseNodeKindToIdKind(Parse::NodeKind kind) -> IdKind {
switch (kind) {
case Parse::NodeKind::ArrayExpr:
case Parse::NodeKind::BindingPattern:
case Parse::NodeKind::CallExpr:
case Parse::NodeKind::CallExprStart:
case Parse::NodeKind::IfExprThen:
@@ -303,7 +304,6 @@ class NodeStack {
case Parse::NodeKind::MemberAccessExpr:
case Parse::NodeKind::NameExpr:
case Parse::NodeKind::ParenExpr:
case Parse::NodeKind::PatternBinding:
case Parse::NodeKind::PostfixOperator:
case Parse::NodeKind::PrefixOperator:
case Parse::NodeKind::ReturnType: