Skip to content

Commit 81d3ad7

Browse files
authored
Spelling ast (#42463)
* spelling: accessor Signed-off-by: Josh Soref <[email protected]> * spelling: accommodates Signed-off-by: Josh Soref <[email protected]> * spelling: argument Signed-off-by: Josh Soref <[email protected]> * spelling: associated Signed-off-by: Josh Soref <[email protected]> * spelling: availability Signed-off-by: Josh Soref <[email protected]> * spelling: available Signed-off-by: Josh Soref <[email protected]> * spelling: belongs Signed-off-by: Josh Soref <[email protected]> * spelling: bookkeeping Signed-off-by: Josh Soref <[email protected]> * spelling: building Signed-off-by: Josh Soref <[email protected]> * spelling: clazz Signed-off-by: Josh Soref <[email protected]> * spelling: clonable Signed-off-by: Josh Soref <[email protected]> * spelling: closure Signed-off-by: Josh Soref <[email protected]> * spelling: concatenated Signed-off-by: Josh Soref <[email protected]> * spelling: conformance Signed-off-by: Josh Soref <[email protected]> * spelling: context Signed-off-by: Josh Soref <[email protected]> * spelling: conversion Signed-off-by: Josh Soref <[email protected]> * spelling: correspondence Signed-off-by: Josh Soref <[email protected]> * spelling: declarations Signed-off-by: Josh Soref <[email protected]> * spelling: declared Signed-off-by: Josh Soref <[email protected]> * spelling: defining Signed-off-by: Josh Soref <[email protected]> * spelling: delayed Signed-off-by: Josh Soref <[email protected]> * spelling: dependency Signed-off-by: Josh Soref <[email protected]> * spelling: deployed Signed-off-by: Josh Soref <[email protected]> * spelling: descendants Signed-off-by: Josh Soref <[email protected]> * spelling: diagnose Signed-off-by: Josh Soref <[email protected]> * spelling: diagnostic Signed-off-by: Josh Soref <[email protected]> * spelling: equitable Signed-off-by: Josh Soref <[email protected]> * spelling: evaluation Signed-off-by: Josh Soref <[email protected]> * spelling: exclusivity Signed-off-by: Josh Soref <[email protected]> * spelling: existence Signed-off-by: Josh Soref <[email protected]> * spelling: existential Signed-off-by: Josh Soref <[email protected]> * spelling: explicit Signed-off-by: Josh Soref <[email protected]> * spelling: expressed Signed-off-by: Josh Soref <[email protected]> * spelling: for Signed-off-by: Josh Soref <[email protected]> * spelling: foreign Signed-off-by: Josh Soref <[email protected]> * spelling: function Signed-off-by: Josh Soref <[email protected]> * spelling: identifier Signed-off-by: Josh Soref <[email protected]> * spelling: implicit Signed-off-by: Josh Soref <[email protected]> * spelling: indices Signed-off-by: Josh Soref <[email protected]> * spelling: information Signed-off-by: Josh Soref <[email protected]> * spelling: instance Signed-off-by: Josh Soref <[email protected]> * spelling: interchangeable Signed-off-by: Josh Soref <[email protected]> * spelling: interface Signed-off-by: Josh Soref <[email protected]> * spelling: introduced Signed-off-by: Josh Soref <[email protected]> * spelling: invalid Signed-off-by: Josh Soref <[email protected]> * spelling: kind-in Signed-off-by: Josh Soref <[email protected]> * spelling: least Signed-off-by: Josh Soref <[email protected]> * spelling: library Signed-off-by: Josh Soref <[email protected]> * spelling: location Signed-off-by: Josh Soref <[email protected]> * spelling: namespace Signed-off-by: Josh Soref <[email protected]> * spelling: necessary Signed-off-by: Josh Soref <[email protected]> * spelling: nonexistent Signed-off-by: Josh Soref <[email protected]> * spelling: not Signed-off-by: Josh Soref <[email protected]> * spelling: number Signed-off-by: Josh Soref <[email protected]> * spelling: obtains Signed-off-by: Josh Soref <[email protected]> * spelling: occurs Signed-off-by: Josh Soref <[email protected]> * spelling: opaque Signed-off-by: Josh Soref <[email protected]> * spelling: overridden Signed-off-by: Josh Soref <[email protected]> * spelling: parameter Signed-off-by: Josh Soref <[email protected]> * spelling: precede Signed-off-by: Josh Soref <[email protected]> * spelling: preceding Signed-off-by: Josh Soref <[email protected]> * spelling: property Signed-off-by: Josh Soref <[email protected]> * spelling: protocol Signed-off-by: Josh Soref <[email protected]> * spelling: qualified Signed-off-by: Josh Soref <[email protected]> * spelling: recognized Signed-off-by: Josh Soref <[email protected]> * spelling: recursively Signed-off-by: Josh Soref <[email protected]> * spelling: references Signed-off-by: Josh Soref <[email protected]> * spelling: relaxing Signed-off-by: Josh Soref <[email protected]> * spelling: represented Signed-off-by: Josh Soref <[email protected]> * spelling: request Signed-off-by: Josh Soref <[email protected]> * spelling: requirement Signed-off-by: Josh Soref <[email protected]> * spelling: requirements Signed-off-by: Josh Soref <[email protected]> * spelling: retrieve Signed-off-by: Josh Soref <[email protected]> * spelling: returned Signed-off-by: Josh Soref <[email protected]> * spelling: satisfied Signed-off-by: Josh Soref <[email protected]> * spelling: satisfy Signed-off-by: Josh Soref <[email protected]> * spelling: scanner Signed-off-by: Josh Soref <[email protected]> * spelling: siblings Signed-off-by: Josh Soref <[email protected]> * spelling: simplified Signed-off-by: Josh Soref <[email protected]> * spelling: something Signed-off-by: Josh Soref <[email protected]> * spelling: source Signed-off-by: Josh Soref <[email protected]> * spelling: specializations Signed-off-by: Josh Soref <[email protected]> * spelling: specially Signed-off-by: Josh Soref <[email protected]> * spelling: statement Signed-off-by: Josh Soref <[email protected]> * spelling: stripped Signed-off-by: Josh Soref <[email protected]> * spelling: structure Signed-off-by: Josh Soref <[email protected]> * spelling: substitution Signed-off-by: Josh Soref <[email protected]> * spelling: the Signed-off-by: Josh Soref <[email protected]> * spelling: transform Signed-off-by: Josh Soref <[email protected]> * spelling: transformed Signed-off-by: Josh Soref <[email protected]> * spelling: transitively Signed-off-by: Josh Soref <[email protected]> * spelling: transparent Signed-off-by: Josh Soref <[email protected]> * spelling: typecheck Signed-off-by: Josh Soref <[email protected]> * spelling: unknown Signed-off-by: Josh Soref <[email protected]> * spelling: unlabeled Signed-off-by: Josh Soref <[email protected]> * spelling: unqualified Signed-off-by: Josh Soref <[email protected]> * spelling: whether Signed-off-by: Josh Soref <[email protected]> * spelling: with Signed-off-by: Josh Soref <[email protected]> * spelling: scanner Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent f66d9bd commit 81d3ad7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+152
-152
lines changed

SwiftCompilerSources/Sources/AST/DiagnosticEngine.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public struct DiagnosticEngine {
8282
// Build a higher-order function to wrap every 'withBridgedXXX { ... }'
8383
// calls, so we don't escape anything from the closure. 'bridgedArgs' and
8484
// 'bridgedFixIts' are temporary storage to store bridged values. So they
85-
// should not be used after the closue is executed.
85+
// should not be used after the closure is executed.
8686

8787
var closure: () -> Void = {
8888
bridgedArgs.withBridgedArrayRef { bridgedArgsRef in

include/swift/AST/ASTContext.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class ASTContext final {
223223
ASTContext(const ASTContext&) = delete;
224224
void operator=(const ASTContext&) = delete;
225225

226-
ASTContext(LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
226+
ASTContext(LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
227227
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
228228
ClangImporterOptions &ClangImporterOpts,
229229
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
@@ -238,7 +238,7 @@ class ASTContext final {
238238

239239
void operator delete(void *Data) throw();
240240

241-
static ASTContext *get(LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
241+
static ASTContext *get(LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
242242
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
243243
ClangImporterOptions &ClangImporterOpts,
244244
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
@@ -483,7 +483,7 @@ class ASTContext final {
483483
setVector.size());
484484
}
485485

486-
/// Retrive the syntax node memory manager for this context.
486+
/// Retrieve the syntax node memory manager for this context.
487487
llvm::IntrusiveRefCntPtr<syntax::SyntaxArena> getSyntaxArena() const;
488488

489489
/// Set a new stats reporter.
@@ -770,7 +770,7 @@ class ASTContext final {
770770
/// \p templateArgs must be empty. \p templateParams and \p genericArgs must
771771
/// be equal in size.
772772
///
773-
/// \returns nullptr if successful. If an error occors, returns a list of
773+
/// \returns nullptr if successful. If an error occurs, returns a list of
774774
/// types that couldn't be converted.
775775
std::unique_ptr<TemplateInstantiationError> getClangTemplateArguments(
776776
const clang::TemplateParameterList *templateParams,
@@ -1320,10 +1320,10 @@ class ASTContext final {
13201320
const ValueDecl *derived);
13211321

13221322
enum class OverrideGenericSignatureReqCheck {
1323-
/// Base method's generic requirements are satisifed by derived method
1323+
/// Base method's generic requirements are satisfied by derived method
13241324
BaseReqSatisfiedByDerived,
13251325

1326-
/// Derived method's generic requirements are satisifed by base method
1326+
/// Derived method's generic requirements are satisfied by base method
13271327
DerivedReqSatisfiedByBase
13281328
};
13291329

include/swift/AST/ASTPrinter.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ enum class PrintStructureKind {
9090
DefaultArgumentClause,
9191
/// '<T, U: Requirement>'.
9292
DeclGenericParameterClause,
93-
/// 'where T: Collection, T.Element: Equtable'.
93+
/// 'where T: Collection, T.Element: Equitable'.
9494
DeclGenericRequirementClause,
9595
/// ' async throws'.
9696
EffectsSpecifiers,
@@ -294,10 +294,10 @@ class ASTPrinter {
294294

295295
// MARK: Callback interface wrappers that perform ASTPrinter bookkeeping.
296296

297-
/// Make a callback to printDeclPre(), performing any necessary bookeeping.
297+
/// Make a callback to printDeclPre(), performing any necessary bookkeeping.
298298
void callPrintDeclPre(const Decl *D, Optional<BracketOptions> Bracket);
299299

300-
/// Make a callback to printDeclPost(), performing any necessary bookeeping.
300+
/// Make a callback to printDeclPost(), performing any necessary bookkeeping.
301301
void callPrintDeclPost(const Decl *D, Optional<BracketOptions> Bracket) {
302302
printDeclPost(D, Bracket);
303303
}
@@ -308,13 +308,13 @@ class ASTPrinter {
308308
avoidPrintDeclPost(D);
309309
}
310310

311-
/// Make a callback to printDeclLoc(), performing any necessary bookeeping.
311+
/// Make a callback to printDeclLoc(), performing any necessary bookkeeping.
312312
void callPrintDeclLoc(const Decl *D) {
313313
forceNewlines();
314314
printDeclLoc(D);
315315
}
316316

317-
/// Make a callback to printNamePre(), performing any necessary bookeeping.
317+
/// Make a callback to printNamePre(), performing any necessary bookkeeping.
318318
void callPrintNamePre(PrintNameContext Context) {
319319
forceNewlines();
320320
printNamePre(Context);

include/swift/AST/ASTScope.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ class ASTScopeImpl : public ASTAllocated<ASTScopeImpl> {
342342

343343
public:
344344
/// The tree is organized by source location and for most nodes this is also
345-
/// what obtaines for scoping. However, guards are different. The scope after
345+
/// what obtains for scoping. However, guards are different. The scope after
346346
/// the guard else must hop into the innermoset scope of the guard condition.
347347
virtual NullablePtr<const ASTScopeImpl> getLookupParent() const {
348348
return getParent();
@@ -544,7 +544,7 @@ class GenericTypeOrExtensionScope : public ASTScopeImpl {
544544
/// \c tryBindExtension needs to get the extended nominal, and the DeclContext
545545
/// is the parent of the \c ExtensionDecl. If the \c SourceRange of an \c
546546
/// ExtensionScope were to start where the \c ExtensionDecl says, the lookup
547-
/// source locaiton would fall within the \c ExtensionScope. This inclusion
547+
/// source location would fall within the \c ExtensionScope. This inclusion
548548
/// would cause the lazy \c ExtensionScope to be expanded which would ask for
549549
/// its generic parameters in order to create those sub-scopes. That request
550550
/// would cause a cycle because it would ask for the extended nominal. So,

include/swift/AST/ASTWalker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class ASTWalker {
217217
/// TapExpr.
218218
virtual bool shouldWalkIntoTapExpression() { return true; }
219219

220-
/// This method configures whether the the walker should visit the underlying
220+
/// This method configures whether the walker should visit the underlying
221221
/// value of a property wrapper placeholder.
222222
virtual bool shouldWalkIntoPropertyWrapperPlaceholderValue() { return true; }
223223

include/swift/AST/DebuggerClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class DebuggerClient {
6262
ResultVector &RV) = 0;
6363

6464
/// The following functions allow the debugger to modify the results of a
65-
/// qualfied lookup as needed. These methods may add, remove or modify the
65+
/// qualified lookup as needed. These methods may add, remove or modify the
6666
/// entries in `decls`. See the corresponding DeclContext::lookupInXYZ
6767
/// functions defined in NameLookup.cpp for more context.
6868
///

include/swift/AST/Decl.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ class GenericParameterReferenceInfo final {
21742174
using OptionalTypePosition = OptionalEnum<decltype(TypePosition::Covariant)>;
21752175

21762176
public:
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

28032803
private:
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,

include/swift/AST/DeclNodes.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
#define LAST_DECL(Id)
141141
#endif
142142

143-
// NOTE: For performance, maximize the numer of [important] abstract Decls
143+
// NOTE: For performance, maximize the number of [important] abstract Decls
144144
// where "First_XYZDecl" == 0 to improve isa/dyn_cast code gen.
145145

146146
ABSTRACT_DECL(Value, Decl)

include/swift/AST/DiagnosticsCommon.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ ERROR(scanner_find_cycle, none,
202202
ERROR(scanner_arguments_invalid, none,
203203
"dependencies scanner cannot be configured with arguments: '%0'", (StringRef))
204204

205-
WARNING(warn_scaner_deserialize_failed, none,
205+
WARNING(warn_scanner_deserialize_failed, none,
206206
"Failed to load module scanning dependency cache from: '%0', re-building scanner cache from scratch.", (StringRef))
207207

208208
REMARK(remark_reuse_cache, none,

include/swift/AST/DiagnosticsFrontend.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ ERROR(batch_scan_input_file_corrupted,none,
300300
(StringRef))
301301

302302
ERROR(unknown_platform_name, none,
303-
"unkown platform name %0", (StringRef))
303+
"unknown platform name %0", (StringRef))
304304

305305
ERROR(unknown_swift_module_name, none,
306306
"cannot find Swift module with name %0", (StringRef))

include/swift/AST/DiagnosticsParse.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ ERROR(sil_witness_protocol_conformance_not_found,none,
731731
ERROR(sil_diff_witness_expected_token,PointsToFirstBadToken,
732732
"expected '%0' in differentiability witness", (StringRef))
733733
ERROR(sil_diff_witness_unknown_kind,PointsToFirstBadToken,
734-
"unknonwn differentiability kind '%0'; expected 'forward', 'reverse', "
734+
"unknown differentiability kind '%0'; expected 'forward', 'reverse', "
735735
"'normal', or 'linear'", (StringRef))
736736
ERROR(sil_diff_witness_serialized_declaration,none,
737737
"differentiability witness declaration should not be serialized", ())
@@ -1062,7 +1062,7 @@ ERROR(expected_expr_throw,PointsToFirstBadToken,
10621062
ERROR(expected_await_not_async,none,
10631063
"found 'async' in expression; did you mean 'await'?", ())
10641064

1065-
// Yield Statment
1065+
// Yield Statement
10661066
ERROR(expected_expr_yield,PointsToFirstBadToken,
10671067
"expected expression in 'yield' statement", ())
10681068
ERROR(unexpected_label_yield,none,

include/swift/AST/DiagnosticsSIL.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ ERROR(performance_objectivec,none,
322322
ERROR(performance_unknown_callees,none,
323323
"called function is not known at compile time and can have unpredictable performance", ())
324324
ERROR(performance_callee_unavailable,none,
325-
"called function is not availbale in this module and can have unpredictable performance", ())
325+
"called function is not available in this module and can have unpredictable performance", ())
326326
NOTE(performance_called_from,none,
327327
"called from here", ())
328328

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5437,7 +5437,7 @@ ERROR(borrowed_on_objc_protocol_requirement,none,
54375437
//------------------------------------------------------------------------------
54385438

54395439
ERROR(dynamic_with_transparent,none,
5440-
"a declaration cannot be both '@_tranparent' and 'dynamic'",
5440+
"a declaration cannot be both '@_transparent' and 'dynamic'",
54415441
())
54425442

54435443
//------------------------------------------------------------------------------

include/swift/AST/Expr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ class InterpolatedStringLiteralExpr : public LiteralExpr {
958958
return Loc;
959959
}
960960

961-
/// Could also be computed by relexing.
961+
/// Could also be computed by relaxing.
962962
SourceLoc getTrailingQuoteLoc() const {
963963
return TrailingQuoteLoc;
964964
}
@@ -3029,7 +3029,7 @@ class LinearToDifferentiableFunctionExpr : public ImplicitConversionExpr {
30293029
};
30303030

30313031
/// Use an opaque type to abstract a value of the underlying concrete type,
3032-
/// possibly nested inside other types. E.g. can perform coversions "T --->
3032+
/// possibly nested inside other types. E.g. can perform conversions "T --->
30333033
/// (opaque type)" and "S<T> ---> S<(opaque type)>".
30343034
class UnderlyingToOpaqueExpr : public ImplicitConversionExpr {
30353035
public:
@@ -4285,7 +4285,7 @@ class PropertyWrapperValuePlaceholderExpr : public Expr {
42854285
bool isAutoClosure = false);
42864286

42874287
/// The original wrappedValue initialization expression provided via
4288-
/// \c = on a proprety with attached property wrappers.
4288+
/// \c = on a property with attached property wrappers.
42894289
Expr *getOriginalWrappedValue() const {
42904290
return WrappedValue;
42914291
}

include/swift/AST/FineGrainedDependencies.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ template <typename Key1, typename Key2, typename Value> class TwoStageMap {
165165
Value findAndErase(const Key1 &k1, const Key2 &k2) {
166166
auto &submap = map[k1];
167167
auto iter = submap.find(k2);
168-
assert(iter != submap.end() && "Cannot erase nonexistant element.");
168+
assert(iter != submap.end() && "Cannot erase nonexistent element.");
169169
Value v = iter->second;
170170
submap.erase(iter);
171171
return v;
@@ -260,10 +260,10 @@ class BiIndexedTwoStageMap {
260260
Optional<Value> find(const Key2 &k2, Key1 &k1) const { return find(k1, k2); }
261261

262262
/// Return the submap for a given Key1. May create one, after the fashion of
263-
/// the standard libary.
263+
/// the standard library.
264264
const Key2Map &operator[](const Key1 &k1) { return map1[k1]; }
265265
/// Return the submap for a given Key2. May create one, after the fashion of
266-
/// the standard libary.
266+
/// the standard library.
267267
const Key1Map &operator[](const Key2 &k2) { return map2[k2]; }
268268

269269
NullablePtr<const Key2Map> find(const Key1 &k1) const {
@@ -558,10 +558,10 @@ class DependencyKey {
558558

559559
bool verify() const;
560560

561-
/// Since I don't have Swift enums, ensure name corresspondence here.
561+
/// Since I don't have Swift enums, ensure name correspondence here.
562562
static void verifyNodeKindNames();
563563

564-
/// Since I don't have Swift enums, ensure name corresspondence here.
564+
/// Since I don't have Swift enums, ensure name correspondence here.
565565
static void verifyDeclAspectNames();
566566

567567
private:
@@ -637,11 +637,11 @@ class DepGraphNode {
637637
///
638638
/// However, at present, the frontend does not record this information for
639639
/// every Decl; it only records it for the source-file-as-a-whole in the
640-
/// interface hash. The inteface hash is a product of all the tokens that are
640+
/// interface hash. The interface hash is a product of all the tokens that are
641641
/// not inside of function bodies. Thus, if there is no fingerprint, when the
642642
/// frontend creates an interface node,
643643
// it adds a dependency to it from the implementation source file node (which
644-
// has the intefaceHash as its fingerprint).
644+
// has the interfaceHash as its fingerprint).
645645
Optional<Fingerprint> fingerprint;
646646

647647
friend ::llvm::yaml::MappingTraits<DepGraphNode>;

0 commit comments

Comments
 (0)