@@ -2174,7 +2174,7 @@ class GenericParameterReferenceInfo final {
21742174 using OptionalTypePosition = OptionalEnum<decltype (TypePosition::Covariant)>;
21752175
21762176public:
2177- // / Whether the uncurried interface type of the declaration, stipped of any
2177+ // / Whether the uncurried interface type of the declaration, stripped of any
21782178 // / optionality, is a direct reference to the generic parameter at hand. For
21792179 // / example, "func foo(x: Int) -> () -> Self?" has a covariant 'Self' result.
21802180 bool hasCovariantSelfResult;
@@ -2249,7 +2249,7 @@ class ValueDecl : public Decl {
22492249 unsigned isFinalComputed : 1 ;
22502250
22512251 // / Whether this declaration is 'final'. A final class can't be subclassed,
2252- // / a final class member can't be overriden .
2252+ // / a final class member can't be overridden .
22532253 unsigned isFinal : 1 ;
22542254
22552255 // / Whether the "isIUO" bit" has been computed yet.
@@ -2699,7 +2699,7 @@ class ValueDecl : public Decl {
26992699 // / \param treatNonResultCovariantSelfAsInvariant When set, covariant 'Self'
27002700 // / references that are not in covariant result type position are considered
27012701 // / invariant. This position is the uncurried interface type of a declaration,
2702- // / stipped of any optionality. For example, this is true for 'Self' in
2702+ // / stripped of any optionality. For example, this is true for 'Self' in
27032703 // / 'func foo(Int) -> () -> Self?'.
27042704 GenericParameterReferenceInfo findExistentialSelfReferences (
27052705 Type baseTy, bool treatNonResultCovariantSelfAsInvariant) const ;
@@ -2802,7 +2802,7 @@ class OpaqueTypeDecl final :
28022802
28032803private:
28042804 // / The original declaration that "names" the opaque type. Although a specific
2805- // / opaque type cannot be explicitly named, oapque types can propagate
2805+ // / opaque type cannot be explicitly named, opaque types can propagate
28062806 // / arbitrarily through expressions, so we need to know *which* opaque type is
28072807 // / propagated.
28082808 // /
@@ -3202,7 +3202,7 @@ class GenericTypeParamDecl final :
32023202 // / Determine whether this generic parameter represents an opaque type.
32033203 // /
32043204 // / \code
3205- // / // "some P" is representated by a generic type parameter.
3205+ // / // "some P" is represented by a generic type parameter.
32063206 // / func f() -> [some P] { ... }
32073207 // / \endcode
32083208 bool isOpaqueType () const {
@@ -4342,7 +4342,7 @@ class ClassDecl final : public NominalTypeDecl {
43424342 return !hasClangNode ();
43434343 }
43444344
4345- // / Used to determine if this class decl is a foriegn reference type. I.e., a
4345+ // / Used to determine if this class decl is a foreign reference type. I.e., a
43464346 // / non-reference-counted swift reference type that was imported from a C++
43474347 // / record.
43484348 bool isForeignReferenceType () const ;
@@ -4379,7 +4379,7 @@ using PrimaryAssociatedTypeName = std::pair<Identifier, SourceLoc>;
43794379// / Every protocol has an implicitly-created 'Self' generic parameter that
43804380// / stands for a type that conforms to the protocol. For example,
43814381// /
4382- // / protocol Cloneable {
4382+ // / protocol Clonable {
43834383// / func clone() -> Self
43844384// / }
43854385// /
@@ -5503,11 +5503,11 @@ class VarDecl : public AbstractStorageDecl {
55035503 // / bound generic version.
55045504 VarDecl *getPropertyWrapperBackingProperty () const ;
55055505
5506- // / Retreive the projection var for a property that has an attached
5506+ // / Retrieve the projection var for a property that has an attached
55075507 // / property wrapper with a \c projectedValue .
55085508 VarDecl *getPropertyWrapperProjectionVar () const ;
55095509
5510- // / Retrieve the local wrapped value var for for a parameter that has
5510+ // / Retrieve the local wrapped value var for a parameter that has
55115511 // / an attached property wrapper.
55125512 VarDecl *getPropertyWrapperWrappedValueVar () const ;
55135513
@@ -6636,7 +6636,7 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
66366636 Optional<Fingerprint> getBodyFingerprint () const ;
66376637
66386638 // / Retrieve the fingerprint of the body including the local type members and
6639- // / the local funcition bodies.
6639+ // / the local function bodies.
66406640 Optional<Fingerprint> getBodyFingerprintIncludingLocalTypeMembers () const ;
66416641
66426642 // / Retrieve the source range of the *original* function body.
@@ -6754,7 +6754,7 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
67546754
67556755 // / If \p asyncAlternative is set, then compare its parameters to this
67566756 // / (presumed synchronous) function's parameters to find the index of the
6757- // / completion handler parameter. This should be the the only missing
6757+ // / completion handler parameter. This should be the only missing
67586758 // / parameter in \p asyncAlternative, ignoring defaulted parameters if they
67596759 // / have the same label. It must have a void-returning function type and be
67606760 // / attributed with @escaping but not @autoclosure.
@@ -7106,7 +7106,7 @@ class AccessorDecl final : public FuncDecl {
71067106 // / attribute. For example a "mutating set" accessor.
71077107 bool isExplicitNonMutating () const ;
71087108
7109- // / Is the accesor one of the kinds that's assumed nonmutating by default?
7109+ // / Is the accessor one of the kinds that's assumed nonmutating by default?
71107110 bool isAssumedNonMutating () const ;
71117111
71127112 // / Is this accessor one of the kinds that's implicitly a coroutine?
@@ -7822,7 +7822,7 @@ class OperatorDecl : public Decl {
78227822 case DeclKind::PostfixOperator:
78237823 return OperatorFixity::Postfix;
78247824 }
7825- llvm_unreachable (" inavlid decl kind" );
7825+ llvm_unreachable (" invalid decl kind" );
78267826 }
78277827
78287828 SourceLoc getOperatorLoc () const { return OperatorLoc; }
@@ -7979,7 +7979,7 @@ class MissingMemberDecl : public Decl {
79797979 }
79807980};
79817981
7982- // / Find references to the given generic paramater in the type signature of the
7982+ // / Find references to the given generic parameter in the type signature of the
79837983// / given declaration using the given generic signature.
79847984// /
79857985// / \param skipParamIndex If the value is a function or subscript declaration,
0 commit comments