mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSFix] Attempt to replace .subscript(...) with subscript operator
If there are no members named "subscript" available, let's try to replace it with subscript operator with might be what was intended.
This commit is contained in:
@@ -235,3 +235,12 @@ InsertExplicitCall *InsertExplicitCall::create(ConstraintSystem &cs,
|
||||
ConstraintLocator *locator) {
|
||||
return new (cs.getAllocator()) InsertExplicitCall(cs, locator);
|
||||
}
|
||||
|
||||
bool UseSubscriptOperator::diagnose(Expr *root, bool asNote) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
UseSubscriptOperator *UseSubscriptOperator::create(ConstraintSystem &cs,
|
||||
ConstraintLocator *locator) {
|
||||
return new (cs.getAllocator()) UseSubscriptOperator(cs, locator);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user