@@ -296,7 +296,7 @@ class TypeVariableType::Implementation {
296
296
void setRawOptions (unsigned bits) {
297
297
getTypeVariable ()->Bits .TypeVariableType .Options = bits;
298
298
assert (getTypeVariable ()->Bits .TypeVariableType .Options == bits
299
- && " Trucation " );
299
+ && " Truncation " );
300
300
}
301
301
302
302
// / Whether this type variable can bind to an lvalue type.
@@ -2006,7 +2006,7 @@ class SolutionApplicationTarget {
2006
2006
!expression.pattern ->isImplicit ();
2007
2007
}
2008
2008
2009
- // / Check whether this is an initializaion for `async let` pattern.
2009
+ // / Check whether this is an initialization for `async let` pattern.
2010
2010
bool isAsyncLetInitializer () const {
2011
2011
if (!(kind == Kind::expression &&
2012
2012
expression.contextualPurpose == CTP_Initialization))
@@ -2843,7 +2843,7 @@ class ConstraintSystem {
2843
2843
2844
2844
// / Disable the given constraint; this change will be rolled back
2845
2845
// / when we exit the current solver scope.
2846
- void disableContraint (Constraint *constraint) {
2846
+ void disableConstraint (Constraint *constraint) {
2847
2847
constraint->setDisabled ();
2848
2848
disabledConstraints.push_back (constraint);
2849
2849
}
@@ -3180,7 +3180,7 @@ class ConstraintSystem {
3180
3180
// /
3181
3181
// / \param solutions The set of solutions to filter.
3182
3182
// /
3183
- // / \param minimize The flag which idicates if the
3183
+ // / \param minimize The flag which indicates if the
3184
3184
// / set of solutions should be filtered even if there is
3185
3185
// / no single best solution, see `findBestSolution` for
3186
3186
// / more details.
@@ -3374,7 +3374,7 @@ class ConstraintSystem {
3374
3374
return known->second ;
3375
3375
}
3376
3376
3377
- // / Retrieve type type of the given declaration to be used in
3377
+ // / Retrieve type of the given declaration to be used in
3378
3378
// / constraint system, this is better than calling `getType()`
3379
3379
// / directly because it accounts of constraint system flags.
3380
3380
Type getVarType (const VarDecl *var);
@@ -3506,7 +3506,7 @@ class ConstraintSystem {
3506
3506
std::pair<Type, OpenedArchetypeType *> openExistentialType (
3507
3507
Type type, ConstraintLocator *locator);
3508
3508
3509
- // / Retrive the constraint locator for the given anchor and
3509
+ // / Retrieve the constraint locator for the given anchor and
3510
3510
// / path, uniqued and automatically infer the summary flags
3511
3511
ConstraintLocator *
3512
3512
getConstraintLocator (ASTNode anchor,
@@ -4058,12 +4058,12 @@ class ConstraintSystem {
4058
4058
isRepresentativeFor (TypeVariableType *typeVar,
4059
4059
ConstraintLocator::PathElementKind kind) const ;
4060
4060
4061
- // / Gets the VarDecl associateed with resolvedOverload, and the type of the
4061
+ // / Gets the VarDecl associated with resolvedOverload, and the type of the
4062
4062
// / projection if the decl has an associated property wrapper with a projectedValue.
4063
4063
Optional<std::pair<VarDecl *, Type>>
4064
4064
getPropertyWrapperProjectionInfo (SelectedOverload resolvedOverload);
4065
4065
4066
- // / Gets the VarDecl associateed with resolvedOverload, and the type of the
4066
+ // / Gets the VarDecl associated with resolvedOverload, and the type of the
4067
4067
// / backing storage if the decl has an associated property wrapper.
4068
4068
Optional<std::pair<VarDecl *, Type>>
4069
4069
getPropertyWrapperInformation (SelectedOverload resolvedOverload);
@@ -5715,7 +5715,7 @@ matchCallArguments(
5715
5715
Expr *getArgumentLabelTargetExpr (Expr *fn);
5716
5716
5717
5717
// / 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
5719
5719
// / variable and anything that depends on it to their non-dependent bounds.
5720
5720
Type typeEraseOpenedExistentialReference (Type type, Type existentialBaseType,
5721
5721
TypeVariableType *openedTypeVar,
@@ -5787,7 +5787,7 @@ bool isPatternMatchingOperator(ASTNode node);
5787
5787
// / "standard" comparison operator such as "==", "!=", ">" etc.
5788
5788
bool isStandardComparisonOperator (ASTNode node);
5789
5789
5790
- // / If given expression references operator overlaod (s)
5790
+ // / If given expression references operator overload (s)
5791
5791
// / extract and produce name of the operator.
5792
5792
Optional<Identifier> getOperatorName (Expr *expr);
5793
5793
@@ -6052,7 +6052,7 @@ class TypeVarBindingProducer : public BindingProducer<TypeVariableBinding> {
6052
6052
// / be supertypes extracted from one of the current bindings
6053
6053
// / or default literal types etc.
6054
6054
// /
6055
- // / \returns true if some new bindings were sucessfully computed,
6055
+ // / \returns true if some new bindings were successfully computed,
6056
6056
// / false otherwise.
6057
6057
bool computeNext ();
6058
6058
@@ -6201,15 +6201,15 @@ bool isKnownKeyPathType(Type type);
6201
6201
// / `{Writable, ReferenceWritable}KeyPath`.
6202
6202
bool isKnownKeyPathDecl (ASTContext &ctx, ValueDecl *decl);
6203
6203
6204
- // / Determine whether givne closure has any explicit `return`
6204
+ // / Determine whether given closure has any explicit `return`
6205
6205
// / statements that could produce non-void result.
6206
6206
bool hasExplicitResult (ClosureExpr *closure);
6207
6207
6208
6208
// / Emit diagnostics for syntactic restrictions within a given solution
6209
6209
// / application target.
6210
6210
void performSyntacticDiagnosticsForTarget (
6211
6211
const SolutionApplicationTarget &target,
6212
- bool isExprStmt,bool disableExprAvailabiltyChecking = false );
6212
+ bool isExprStmt,bool disableExprAvailabilityChecking = false );
6213
6213
6214
6214
// / Given a member of a protocol, check whether `Self` type of that
6215
6215
// / protocol is contextually bound to some concrete type via same-type
0 commit comments