mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user