@@ -296,7 +296,7 @@ class TypeVariableType::Implementation {
296296 void setRawOptions (unsigned bits) {
297297 getTypeVariable ()->Bits .TypeVariableType .Options = bits;
298298 assert (getTypeVariable ()->Bits .TypeVariableType .Options == bits
299- && " Trucation " );
299+ && " Truncation " );
300300 }
301301
302302 // / Whether this type variable can bind to an lvalue type.
@@ -2006,7 +2006,7 @@ class SolutionApplicationTarget {
20062006 !expression.pattern ->isImplicit ();
20072007 }
20082008
2009- // / Check whether this is an initializaion for `async let` pattern.
2009+ // / Check whether this is an initialization for `async let` pattern.
20102010 bool isAsyncLetInitializer () const {
20112011 if (!(kind == Kind::expression &&
20122012 expression.contextualPurpose == CTP_Initialization))
@@ -2843,7 +2843,7 @@ class ConstraintSystem {
28432843
28442844 // / Disable the given constraint; this change will be rolled back
28452845 // / when we exit the current solver scope.
2846- void disableContraint (Constraint *constraint) {
2846+ void disableConstraint (Constraint *constraint) {
28472847 constraint->setDisabled ();
28482848 disabledConstraints.push_back (constraint);
28492849 }
@@ -3180,7 +3180,7 @@ class ConstraintSystem {
31803180 // /
31813181 // / \param solutions The set of solutions to filter.
31823182 // /
3183- // / \param minimize The flag which idicates if the
3183+ // / \param minimize The flag which indicates if the
31843184 // / set of solutions should be filtered even if there is
31853185 // / no single best solution, see `findBestSolution` for
31863186 // / more details.
@@ -3374,7 +3374,7 @@ class ConstraintSystem {
33743374 return known->second ;
33753375 }
33763376
3377- // / Retrieve type type of the given declaration to be used in
3377+ // / Retrieve type of the given declaration to be used in
33783378 // / constraint system, this is better than calling `getType()`
33793379 // / directly because it accounts of constraint system flags.
33803380 Type getVarType (const VarDecl *var);
@@ -3506,7 +3506,7 @@ class ConstraintSystem {
35063506 std::pair<Type, OpenedArchetypeType *> openExistentialType (
35073507 Type type, ConstraintLocator *locator);
35083508
3509- // / Retrive the constraint locator for the given anchor and
3509+ // / Retrieve the constraint locator for the given anchor and
35103510 // / path, uniqued and automatically infer the summary flags
35113511 ConstraintLocator *
35123512 getConstraintLocator (ASTNode anchor,
@@ -4058,12 +4058,12 @@ class ConstraintSystem {
40584058 isRepresentativeFor (TypeVariableType *typeVar,
40594059 ConstraintLocator::PathElementKind kind) const ;
40604060
4061- // / Gets the VarDecl associateed with resolvedOverload, and the type of the
4061+ // / Gets the VarDecl associated with resolvedOverload, and the type of the
40624062 // / projection if the decl has an associated property wrapper with a projectedValue.
40634063 Optional<std::pair<VarDecl *, Type>>
40644064 getPropertyWrapperProjectionInfo (SelectedOverload resolvedOverload);
40654065
4066- // / Gets the VarDecl associateed with resolvedOverload, and the type of the
4066+ // / Gets the VarDecl associated with resolvedOverload, and the type of the
40674067 // / backing storage if the decl has an associated property wrapper.
40684068 Optional<std::pair<VarDecl *, Type>>
40694069 getPropertyWrapperInformation (SelectedOverload resolvedOverload);
@@ -5715,7 +5715,7 @@ matchCallArguments(
57155715Expr *getArgumentLabelTargetExpr (Expr *fn);
57165716
57175717// / Given a type that includes an existential type that has been opened to
5718- // / the given type variable, type-erase occurences of that opened type
5718+ // / the given type variable, type-erase occurrences of that opened type
57195719// / variable and anything that depends on it to their non-dependent bounds.
57205720Type typeEraseOpenedExistentialReference (Type type, Type existentialBaseType,
57215721 TypeVariableType *openedTypeVar,
@@ -5787,7 +5787,7 @@ bool isPatternMatchingOperator(ASTNode node);
57875787// / "standard" comparison operator such as "==", "!=", ">" etc.
57885788bool isStandardComparisonOperator (ASTNode node);
57895789
5790- // / If given expression references operator overlaod (s)
5790+ // / If given expression references operator overload (s)
57915791// / extract and produce name of the operator.
57925792Optional<Identifier> getOperatorName (Expr *expr);
57935793
@@ -6052,7 +6052,7 @@ class TypeVarBindingProducer : public BindingProducer<TypeVariableBinding> {
60526052 // / be supertypes extracted from one of the current bindings
60536053 // / or default literal types etc.
60546054 // /
6055- // / \returns true if some new bindings were sucessfully computed,
6055+ // / \returns true if some new bindings were successfully computed,
60566056 // / false otherwise.
60576057 bool computeNext ();
60586058
@@ -6201,15 +6201,15 @@ bool isKnownKeyPathType(Type type);
62016201// / `{Writable, ReferenceWritable}KeyPath`.
62026202bool isKnownKeyPathDecl (ASTContext &ctx, ValueDecl *decl);
62036203
6204- // / Determine whether givne closure has any explicit `return`
6204+ // / Determine whether given closure has any explicit `return`
62056205// / statements that could produce non-void result.
62066206bool hasExplicitResult (ClosureExpr *closure);
62076207
62086208// / Emit diagnostics for syntactic restrictions within a given solution
62096209// / application target.
62106210void performSyntacticDiagnosticsForTarget (
62116211 const SolutionApplicationTarget &target,
6212- bool isExprStmt,bool disableExprAvailabiltyChecking = false );
6212+ bool isExprStmt,bool disableExprAvailabilityChecking = false );
62136213
62146214// / Given a member of a protocol, check whether `Self` type of that
62156215// / protocol is contextually bound to some concrete type via same-type
0 commit comments