[Constraint] NFC: Rename ClosureBodyElement to SyntacticElement

`SyntacticElement` represents a statement, pattern, declaration,
condition, or expression and could originate from i.e. a closure,
a function or a result builder body.
This commit is contained in:
Pavel Yaskevich
2022-04-26 09:50:45 -07:00
parent 565ed69c80
commit 6a65810d30
10 changed files with 84 additions and 84 deletions

View File

@@ -5079,8 +5079,8 @@ void constraints::simplifyLocator(ASTNode &anchor,
continue;
}
case ConstraintLocator::ClosureBodyElement: {
auto bodyElt = path[0].castTo<LocatorPathElt::ClosureBodyElement>();
case ConstraintLocator::SyntacticElement: {
auto bodyElt = path[0].castTo<LocatorPathElt::SyntacticElement>();
anchor = bodyElt.getElement();
path = path.slice(1);
continue;