mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] NFC: Fix a typo in a method name: wrapedTypes -> wrappedTypes
This commit is contained in:
@@ -7467,7 +7467,7 @@ SourceRange CheckedCastBaseFailure::getCastRange() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::tuple<Type, Type, unsigned>
|
std::tuple<Type, Type, unsigned>
|
||||||
CoercibleOptionalCheckedCastFailure::unwrapedTypes() const {
|
CoercibleOptionalCheckedCastFailure::unwrappedTypes() const {
|
||||||
SmallVector<Type, 4> fromOptionals;
|
SmallVector<Type, 4> fromOptionals;
|
||||||
SmallVector<Type, 4> toOptionals;
|
SmallVector<Type, 4> toOptionals;
|
||||||
Type unwrappedFromType =
|
Type unwrappedFromType =
|
||||||
@@ -7484,7 +7484,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseIfExpr() const {
|
|||||||
|
|
||||||
Type unwrappedFrom, unwrappedTo;
|
Type unwrappedFrom, unwrappedTo;
|
||||||
unsigned extraFromOptionals;
|
unsigned extraFromOptionals;
|
||||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||||
|
|
||||||
SourceRange diagFromRange = getFromRange();
|
SourceRange diagFromRange = getFromRange();
|
||||||
SourceRange diagToRange = getToRange();
|
SourceRange diagToRange = getToRange();
|
||||||
@@ -7516,7 +7516,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseForcedCastExpr() const {
|
|||||||
auto toType = getToType();
|
auto toType = getToType();
|
||||||
Type unwrappedFrom, unwrappedTo;
|
Type unwrappedFrom, unwrappedTo;
|
||||||
unsigned extraFromOptionals;
|
unsigned extraFromOptionals;
|
||||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||||
|
|
||||||
SourceRange diagFromRange = getFromRange();
|
SourceRange diagFromRange = getFromRange();
|
||||||
SourceRange diagToRange = getToRange();
|
SourceRange diagToRange = getToRange();
|
||||||
@@ -7559,7 +7559,7 @@ bool CoercibleOptionalCheckedCastFailure::diagnoseConditionalCastExpr() const {
|
|||||||
auto toType = getToType();
|
auto toType = getToType();
|
||||||
Type unwrappedFrom, unwrappedTo;
|
Type unwrappedFrom, unwrappedTo;
|
||||||
unsigned extraFromOptionals;
|
unsigned extraFromOptionals;
|
||||||
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrapedTypes();
|
std::tie(unwrappedFrom, unwrappedTo, extraFromOptionals) = unwrappedTypes();
|
||||||
|
|
||||||
SourceRange diagFromRange = getFromRange();
|
SourceRange diagFromRange = getFromRange();
|
||||||
SourceRange diagToRange = getToRange();
|
SourceRange diagToRange = getToRange();
|
||||||
|
|||||||
@@ -2496,7 +2496,7 @@ public:
|
|||||||
bool diagnoseAsError() override;
|
bool diagnoseAsError() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::tuple<Type, Type, unsigned> unwrapedTypes() const;
|
std::tuple<Type, Type, unsigned> unwrappedTypes() const;
|
||||||
|
|
||||||
bool diagnoseIfExpr() const;
|
bool diagnoseIfExpr() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user