Skip to content

Spelling ast #42463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 99 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
978cf0d
spelling: accessor
jsoref Apr 17, 2022
10053fb
spelling: accommodates
jsoref Apr 17, 2022
48aa515
spelling: argument
jsoref Apr 17, 2022
d14cabf
spelling: associated
jsoref Apr 17, 2022
42b4b34
spelling: availability
jsoref Apr 17, 2022
abb1854
spelling: available
jsoref Apr 17, 2022
6c33ef8
spelling: belongs
jsoref Apr 17, 2022
dfc5490
spelling: bookkeeping
jsoref Apr 17, 2022
80efb8c
spelling: building
jsoref Apr 17, 2022
50b02cd
spelling: clazz
jsoref Apr 17, 2022
ce9f84b
spelling: clonable
jsoref Apr 17, 2022
e1017dd
spelling: closure
jsoref Apr 17, 2022
0b9e3fa
spelling: concatenated
jsoref Apr 17, 2022
bcd4427
spelling: conformance
jsoref Apr 17, 2022
ad5fb38
spelling: context
jsoref Apr 17, 2022
d2b98e6
spelling: conversion
jsoref Apr 17, 2022
ab7762a
spelling: correspondence
jsoref Apr 17, 2022
9aee1fe
spelling: declarations
jsoref Apr 17, 2022
ae8eec2
spelling: declared
jsoref Apr 17, 2022
b2c49a2
spelling: defining
jsoref Apr 17, 2022
bf6c74e
spelling: delayed
jsoref Apr 17, 2022
6c275b5
spelling: dependency
jsoref Apr 17, 2022
fe88ca8
spelling: deployed
jsoref Apr 17, 2022
2b8c892
spelling: descendants
jsoref Apr 17, 2022
fdb3517
spelling: diagnose
jsoref Apr 17, 2022
d596d43
spelling: diagnostic
jsoref Apr 17, 2022
3d5ed74
spelling: equitable
jsoref Apr 17, 2022
18cad78
spelling: evaluation
jsoref Apr 17, 2022
864e437
spelling: exclusivity
jsoref Apr 17, 2022
cdbb658
spelling: existence
jsoref Apr 17, 2022
1b5b9e5
spelling: existential
jsoref Apr 17, 2022
406bd2f
spelling: explicit
jsoref Apr 17, 2022
56dc3bb
spelling: expressed
jsoref Apr 17, 2022
6cbc229
spelling: for
jsoref Apr 17, 2022
593dcc3
spelling: foreign
jsoref Apr 17, 2022
0cb1ea0
spelling: function
jsoref Apr 17, 2022
8ae187d
spelling: identifier
jsoref Apr 17, 2022
3e10dd0
spelling: implicit
jsoref Apr 17, 2022
8d25cee
spelling: indices
jsoref Apr 17, 2022
ee99084
spelling: information
jsoref Apr 17, 2022
0244344
spelling: instance
jsoref Apr 17, 2022
f4d8d88
spelling: interchangeable
jsoref Apr 17, 2022
ee02b8b
spelling: interface
jsoref Apr 17, 2022
bc05f88
spelling: introduced
jsoref Apr 17, 2022
f7917c1
spelling: invalid
jsoref Apr 17, 2022
4d4e785
spelling: kind-in
jsoref Apr 19, 2022
003e6de
spelling: least
jsoref Apr 17, 2022
a95aa36
spelling: library
jsoref Apr 17, 2022
fc890e5
spelling: location
jsoref Apr 17, 2022
19988a4
spelling: namespace
jsoref Apr 17, 2022
417f550
spelling: necessary
jsoref Apr 17, 2022
5712270
spelling: nonexistent
jsoref Apr 19, 2022
a04c7fd
spelling: not
jsoref Apr 17, 2022
e13103e
spelling: number
jsoref Apr 17, 2022
956adc3
spelling: obtains
jsoref Apr 17, 2022
f2cb644
spelling: occurs
jsoref Apr 17, 2022
2048868
spelling: opaque
jsoref Apr 17, 2022
bb00319
spelling: overridden
jsoref Apr 17, 2022
f75ad07
spelling: parameter
jsoref Apr 17, 2022
19dde12
spelling: precede
jsoref Apr 17, 2022
f9b2f81
spelling: preceding
jsoref Apr 17, 2022
2e2b5b7
spelling: property
jsoref Apr 17, 2022
f662af5
spelling: protocol
jsoref Apr 17, 2022
db9e1ca
spelling: qualified
jsoref Apr 17, 2022
0833db1
spelling: recognized
jsoref Apr 17, 2022
aad0153
spelling: recursively
jsoref Apr 17, 2022
0c9617d
spelling: references
jsoref Apr 17, 2022
6be5979
spelling: relaxing
jsoref Apr 17, 2022
62bd2ea
spelling: represented
jsoref Apr 17, 2022
8fc1c19
spelling: request
jsoref Apr 17, 2022
85059da
spelling: requirement
jsoref Apr 17, 2022
6ab4c63
spelling: requirements
jsoref Apr 17, 2022
88cb0bb
spelling: retrieve
jsoref Apr 17, 2022
0a77090
spelling: returned
jsoref Apr 17, 2022
88883f6
spelling: satisfied
jsoref Apr 17, 2022
e857fe5
spelling: satisfy
jsoref Apr 17, 2022
2814f65
spelling: scanner
jsoref Apr 17, 2022
4b896a8
spelling: siblings
jsoref Apr 17, 2022
8fb77b9
spelling: simplified
jsoref Apr 17, 2022
2ee825c
spelling: something
jsoref Apr 17, 2022
f44a5f1
spelling: source
jsoref Apr 17, 2022
1bda7a7
spelling: specializations
jsoref Apr 17, 2022
c8f662c
spelling: specially
jsoref Apr 17, 2022
76867d7
spelling: statement
jsoref Apr 17, 2022
30cec52
spelling: stripped
jsoref Apr 18, 2022
7690c41
spelling: structure
jsoref Apr 18, 2022
8eb241d
spelling: substitution
jsoref Apr 17, 2022
c80c3a9
spelling: the
jsoref Apr 17, 2022
f46911a
spelling: transform
jsoref Apr 17, 2022
c157323
spelling: transformed
jsoref Apr 17, 2022
5358ec5
spelling: transitively
jsoref Apr 17, 2022
81856dc
spelling: transparent
jsoref Apr 17, 2022
36708ff
spelling: typecheck
jsoref Apr 17, 2022
ab25b44
spelling: unknown
jsoref Apr 17, 2022
2cf9bc9
spelling: unlabeled
jsoref Apr 17, 2022
2631422
spelling: unqualified
jsoref Apr 17, 2022
3cc92a8
spelling: whether
jsoref Apr 17, 2022
83f469b
spelling: with
jsoref Apr 17, 2022
100785c
spelling: scanner
jsoref Apr 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SwiftCompilerSources/Sources/AST/DiagnosticEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public struct DiagnosticEngine {
// Build a higher-order function to wrap every 'withBridgedXXX { ... }'
// calls, so we don't escape anything from the closure. 'bridgedArgs' and
// 'bridgedFixIts' are temporary storage to store bridged values. So they
// should not be used after the closue is executed.
// should not be used after the closure is executed.

var closure: () -> Void = {
bridgedArgs.withBridgedArrayRef { bridgedArgsRef in
Expand Down
12 changes: 6 additions & 6 deletions include/swift/AST/ASTContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class ASTContext final {
ASTContext(const ASTContext&) = delete;
void operator=(const ASTContext&) = delete;

ASTContext(LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
ASTContext(LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
ClangImporterOptions &ClangImporterOpts,
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
Expand All @@ -238,7 +238,7 @@ class ASTContext final {

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

static ASTContext *get(LangOptions &langOpts, TypeCheckerOptions &typeckOpts,
static ASTContext *get(LangOptions &langOpts, TypeCheckerOptions &typecheckOpts,
SILOptions &silOpts, SearchPathOptions &SearchPathOpts,
ClangImporterOptions &ClangImporterOpts,
symbolgraphgen::SymbolGraphOptions &SymbolGraphOpts,
Expand Down Expand Up @@ -483,7 +483,7 @@ class ASTContext final {
setVector.size());
}

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

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

enum class OverrideGenericSignatureReqCheck {
/// Base method's generic requirements are satisifed by derived method
/// Base method's generic requirements are satisfied by derived method
BaseReqSatisfiedByDerived,

/// Derived method's generic requirements are satisifed by base method
/// Derived method's generic requirements are satisfied by base method
DerivedReqSatisfiedByBase
};

Expand Down
10 changes: 5 additions & 5 deletions include/swift/AST/ASTPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ enum class PrintStructureKind {
DefaultArgumentClause,
/// '<T, U: Requirement>'.
DeclGenericParameterClause,
/// 'where T: Collection, T.Element: Equtable'.
/// 'where T: Collection, T.Element: Equitable'.
DeclGenericRequirementClause,
/// ' async throws'.
EffectsSpecifiers,
Expand Down Expand Up @@ -294,10 +294,10 @@ class ASTPrinter {

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

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

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

/// Make a callback to printDeclLoc(), performing any necessary bookeeping.
/// Make a callback to printDeclLoc(), performing any necessary bookkeeping.
void callPrintDeclLoc(const Decl *D) {
forceNewlines();
printDeclLoc(D);
}

/// Make a callback to printNamePre(), performing any necessary bookeeping.
/// Make a callback to printNamePre(), performing any necessary bookkeeping.
void callPrintNamePre(PrintNameContext Context) {
forceNewlines();
printNamePre(Context);
Expand Down
4 changes: 2 additions & 2 deletions include/swift/AST/ASTScope.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class ASTScopeImpl : public ASTAllocated<ASTScopeImpl> {

public:
/// The tree is organized by source location and for most nodes this is also
/// what obtaines for scoping. However, guards are different. The scope after
/// what obtains for scoping. However, guards are different. The scope after
/// the guard else must hop into the innermoset scope of the guard condition.
virtual NullablePtr<const ASTScopeImpl> getLookupParent() const {
return getParent();
Expand Down Expand Up @@ -544,7 +544,7 @@ class GenericTypeOrExtensionScope : public ASTScopeImpl {
/// \c tryBindExtension needs to get the extended nominal, and the DeclContext
/// is the parent of the \c ExtensionDecl. If the \c SourceRange of an \c
/// ExtensionScope were to start where the \c ExtensionDecl says, the lookup
/// source locaiton would fall within the \c ExtensionScope. This inclusion
/// source location would fall within the \c ExtensionScope. This inclusion
/// would cause the lazy \c ExtensionScope to be expanded which would ask for
/// its generic parameters in order to create those sub-scopes. That request
/// would cause a cycle because it would ask for the extended nominal. So,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/ASTWalker.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class ASTWalker {
/// TapExpr.
virtual bool shouldWalkIntoTapExpression() { return true; }

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

Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DebuggerClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class DebuggerClient {
ResultVector &RV) = 0;

/// The following functions allow the debugger to modify the results of a
/// qualfied lookup as needed. These methods may add, remove or modify the
/// qualified lookup as needed. These methods may add, remove or modify the
/// entries in `decls`. See the corresponding DeclContext::lookupInXYZ
/// functions defined in NameLookup.cpp for more context.
///
Expand Down
28 changes: 14 additions & 14 deletions include/swift/AST/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2174,7 +2174,7 @@ class GenericParameterReferenceInfo final {
using OptionalTypePosition = OptionalEnum<decltype(TypePosition::Covariant)>;

public:
/// Whether the uncurried interface type of the declaration, stipped of any
/// Whether the uncurried interface type of the declaration, stripped of any
/// optionality, is a direct reference to the generic parameter at hand. For
/// example, "func foo(x: Int) -> () -> Self?" has a covariant 'Self' result.
bool hasCovariantSelfResult;
Expand Down Expand Up @@ -2249,7 +2249,7 @@ class ValueDecl : public Decl {
unsigned isFinalComputed : 1;

/// Whether this declaration is 'final'. A final class can't be subclassed,
/// a final class member can't be overriden.
/// a final class member can't be overridden.
unsigned isFinal : 1;

/// Whether the "isIUO" bit" has been computed yet.
Expand Down Expand Up @@ -2699,7 +2699,7 @@ class ValueDecl : public Decl {
/// \param treatNonResultCovariantSelfAsInvariant When set, covariant 'Self'
/// references that are not in covariant result type position are considered
/// invariant. This position is the uncurried interface type of a declaration,
/// stipped of any optionality. For example, this is true for 'Self' in
/// stripped of any optionality. For example, this is true for 'Self' in
/// 'func foo(Int) -> () -> Self?'.
GenericParameterReferenceInfo findExistentialSelfReferences(
Type baseTy, bool treatNonResultCovariantSelfAsInvariant) const;
Expand Down Expand Up @@ -2802,7 +2802,7 @@ class OpaqueTypeDecl final :

private:
/// The original declaration that "names" the opaque type. Although a specific
/// opaque type cannot be explicitly named, oapque types can propagate
/// opaque type cannot be explicitly named, opaque types can propagate
/// arbitrarily through expressions, so we need to know *which* opaque type is
/// propagated.
///
Expand Down Expand Up @@ -3202,7 +3202,7 @@ class GenericTypeParamDecl final :
/// Determine whether this generic parameter represents an opaque type.
///
/// \code
/// // "some P" is representated by a generic type parameter.
/// // "some P" is represented by a generic type parameter.
/// func f() -> [some P] { ... }
/// \endcode
bool isOpaqueType() const {
Expand Down Expand Up @@ -4342,7 +4342,7 @@ class ClassDecl final : public NominalTypeDecl {
return !hasClangNode();
}

/// Used to determine if this class decl is a foriegn reference type. I.e., a
/// Used to determine if this class decl is a foreign reference type. I.e., a
/// non-reference-counted swift reference type that was imported from a C++
/// record.
bool isForeignReferenceType() const;
Expand Down Expand Up @@ -4379,7 +4379,7 @@ using PrimaryAssociatedTypeName = std::pair<Identifier, SourceLoc>;
/// Every protocol has an implicitly-created 'Self' generic parameter that
/// stands for a type that conforms to the protocol. For example,
///
/// protocol Cloneable {
/// protocol Clonable {
/// func clone() -> Self
/// }
///
Expand Down Expand Up @@ -5493,11 +5493,11 @@ class VarDecl : public AbstractStorageDecl {
/// bound generic version.
VarDecl *getPropertyWrapperBackingProperty() const;

/// Retreive the projection var for a property that has an attached
/// Retrieve the projection var for a property that has an attached
/// property wrapper with a \c projectedValue .
VarDecl *getPropertyWrapperProjectionVar() const;

/// Retrieve the local wrapped value var for for a parameter that has
/// Retrieve the local wrapped value var for a parameter that has
/// an attached property wrapper.
VarDecl *getPropertyWrapperWrappedValueVar() const;

Expand Down Expand Up @@ -6626,7 +6626,7 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
Optional<Fingerprint> getBodyFingerprint() const;

/// Retrieve the fingerprint of the body including the local type members and
/// the local funcition bodies.
/// the local function bodies.
Optional<Fingerprint> getBodyFingerprintIncludingLocalTypeMembers() const;

/// Retrieve the source range of the *original* function body.
Expand Down Expand Up @@ -6744,7 +6744,7 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {

/// If \p asyncAlternative is set, then compare its parameters to this
/// (presumed synchronous) function's parameters to find the index of the
/// completion handler parameter. This should be the the only missing
/// completion handler parameter. This should be the only missing
/// parameter in \p asyncAlternative, ignoring defaulted parameters if they
/// have the same label. It must have a void-returning function type and be
/// attributed with @escaping but not @autoclosure.
Expand Down Expand Up @@ -7096,7 +7096,7 @@ class AccessorDecl final : public FuncDecl {
/// attribute. For example a "mutating set" accessor.
bool isExplicitNonMutating() const;

/// Is the accesor one of the kinds that's assumed nonmutating by default?
/// Is the accessor one of the kinds that's assumed nonmutating by default?
bool isAssumedNonMutating() const;

/// Is this accessor one of the kinds that's implicitly a coroutine?
Expand Down Expand Up @@ -7812,7 +7812,7 @@ class OperatorDecl : public Decl {
case DeclKind::PostfixOperator:
return OperatorFixity::Postfix;
}
llvm_unreachable("inavlid decl kind");
llvm_unreachable("invalid decl kind");
}

SourceLoc getOperatorLoc() const { return OperatorLoc; }
Expand Down Expand Up @@ -7969,7 +7969,7 @@ class MissingMemberDecl : public Decl {
}
};

/// Find references to the given generic paramater in the type signature of the
/// Find references to the given generic parameter in the type signature of the
/// given declaration using the given generic signature.
///
/// \param skipParamIndex If the value is a function or subscript declaration,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DeclNodes.def
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
#define LAST_DECL(Id)
#endif

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

ABSTRACT_DECL(Value, Decl)
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DiagnosticsCommon.def
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ ERROR(scanner_find_cycle, none,
ERROR(scanner_arguments_invalid, none,
"dependencies scanner cannot be configured with arguments: '%0'", (StringRef))

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

REMARK(remark_reuse_cache, none,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DiagnosticsFrontend.def
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ ERROR(batch_scan_input_file_corrupted,none,
(StringRef))

ERROR(unknown_platform_name, none,
"unkown platform name %0", (StringRef))
"unknown platform name %0", (StringRef))

ERROR(unknown_swift_module_name, none,
"cannot find Swift module with name %0", (StringRef))
Expand Down
4 changes: 2 additions & 2 deletions include/swift/AST/DiagnosticsParse.def
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ ERROR(sil_witness_protocol_conformance_not_found,none,
ERROR(sil_diff_witness_expected_token,PointsToFirstBadToken,
"expected '%0' in differentiability witness", (StringRef))
ERROR(sil_diff_witness_unknown_kind,PointsToFirstBadToken,
"unknonwn differentiability kind '%0'; expected 'forward', 'reverse', "
"unknown differentiability kind '%0'; expected 'forward', 'reverse', "
"'normal', or 'linear'", (StringRef))
ERROR(sil_diff_witness_serialized_declaration,none,
"differentiability witness declaration should not be serialized", ())
Expand Down Expand Up @@ -1062,7 +1062,7 @@ ERROR(expected_expr_throw,PointsToFirstBadToken,
ERROR(expected_await_not_async,none,
"found 'async' in expression; did you mean 'await'?", ())

// Yield Statment
// Yield Statement
ERROR(expected_expr_yield,PointsToFirstBadToken,
"expected expression in 'yield' statement", ())
ERROR(unexpected_label_yield,none,
Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DiagnosticsSIL.def
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ ERROR(performance_objectivec,none,
ERROR(performance_unknown_callees,none,
"called function is not known at compile time and can have unpredictable performance", ())
ERROR(performance_callee_unavailable,none,
"called function is not availbale in this module and can have unpredictable performance", ())
"called function is not available in this module and can have unpredictable performance", ())
NOTE(performance_called_from,none,
"called from here", ())

Expand Down
2 changes: 1 addition & 1 deletion include/swift/AST/DiagnosticsSema.def
Original file line number Diff line number Diff line change
Expand Up @@ -5437,7 +5437,7 @@ ERROR(borrowed_on_objc_protocol_requirement,none,
//------------------------------------------------------------------------------

ERROR(dynamic_with_transparent,none,
"a declaration cannot be both '@_tranparent' and 'dynamic'",
"a declaration cannot be both '@_transparent' and 'dynamic'",
())

//------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions include/swift/AST/Expr.h
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ class InterpolatedStringLiteralExpr : public LiteralExpr {
return Loc;
}

/// Could also be computed by relexing.
/// Could also be computed by relaxing.
SourceLoc getTrailingQuoteLoc() const {
return TrailingQuoteLoc;
}
Expand Down Expand Up @@ -3029,7 +3029,7 @@ class LinearToDifferentiableFunctionExpr : public ImplicitConversionExpr {
};

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

/// The original wrappedValue initialization expression provided via
/// \c = on a proprety with attached property wrappers.
/// \c = on a property with attached property wrappers.
Expr *getOriginalWrappedValue() const {
return WrappedValue;
}
Expand Down
14 changes: 7 additions & 7 deletions include/swift/AST/FineGrainedDependencies.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ template <typename Key1, typename Key2, typename Value> class TwoStageMap {
Value findAndErase(const Key1 &k1, const Key2 &k2) {
auto &submap = map[k1];
auto iter = submap.find(k2);
assert(iter != submap.end() && "Cannot erase nonexistant element.");
assert(iter != submap.end() && "Cannot erase nonexistent element.");
Value v = iter->second;
submap.erase(iter);
return v;
Expand Down Expand Up @@ -260,10 +260,10 @@ class BiIndexedTwoStageMap {
Optional<Value> find(const Key2 &k2, Key1 &k1) const { return find(k1, k2); }

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

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

bool verify() const;

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

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

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

friend ::llvm::yaml::MappingTraits<DepGraphNode>;
Expand Down
Loading