mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #7727 from practicalswift/typos-20170223
[gardening] Fix typos
This commit is contained in:
@@ -138,7 +138,7 @@ private:
|
||||
|
||||
/// The actual storage, described by \c storageKind.
|
||||
union {
|
||||
/// The type representation descibing where the requirement came from.
|
||||
/// The type representation describing where the requirement came from.
|
||||
const TypeRepr *typeRepr;
|
||||
|
||||
/// Where a requirement came from.
|
||||
|
||||
@@ -307,7 +307,7 @@ public:
|
||||
unsigned commonPartsCount(DeclNameViewer &Other) const;
|
||||
};
|
||||
|
||||
/// This provide a utility for writing to a underlying string buffer mulitiple
|
||||
/// This provide a utility for writing to a underlying string buffer multiple
|
||||
/// string pieces and retrieve them later when the underlying buffer is stable.
|
||||
class DelayedStringRetriever : public raw_ostream {
|
||||
SmallVectorImpl<char> &OS;
|
||||
|
||||
@@ -233,7 +233,7 @@ public:
|
||||
lexImpl();
|
||||
}
|
||||
|
||||
/// Lex a full token includig leading and trailing trivia.
|
||||
/// Lex a full token including leading and trailing trivia.
|
||||
syntax::RC<syntax::TokenSyntax> fullLex();
|
||||
|
||||
bool isKeepingComments() const {
|
||||
|
||||
@@ -221,14 +221,14 @@ public:
|
||||
withGenericParameterClause(GenericParameterClauseSyntax NewGenericParams)
|
||||
const;
|
||||
|
||||
/// Return the where clayse of the struct declaration.
|
||||
/// Return the where clause of the struct declaration.
|
||||
GenericWhereClauseSyntax getGenericWhereClause() const;
|
||||
|
||||
/// Return a StructDeclSyntax with the given generic where clause.
|
||||
StructDeclSyntax
|
||||
withWhereClause(GenericWhereClauseSyntax NewWhereClause) const;
|
||||
|
||||
/// Return the left brace '{' token of the struct declartion.
|
||||
/// Return the left brace '{' token of the struct declaration.
|
||||
RC<TokenSyntax> getLeftBraceToken() const;
|
||||
|
||||
/// Return a StructDeclSyntax with the given left brace '{' token.
|
||||
@@ -240,7 +240,7 @@ public:
|
||||
/// Return a StructDeclSyntax with the given new members.
|
||||
StructDeclSyntax withMembers(DeclMembersSyntax NewMembers) const;
|
||||
|
||||
/// Return the right brace '}' token of the struct declartion.
|
||||
/// Return the right brace '}' token of the struct declaration.
|
||||
RC<TokenSyntax> getRightBraceToken() const;
|
||||
|
||||
/// Return a StructDeclSyntax with the given right brace '}' token.
|
||||
|
||||
@@ -24,6 +24,6 @@ template <typename Inner>
|
||||
using RC = llvm::IntrusiveRefCntPtr<Inner>;
|
||||
|
||||
} // end namespace syntax
|
||||
} // end namespae swift
|
||||
} // end namespace swift
|
||||
|
||||
#endif // SWIFT_SYNTAX_REFERENCES_H
|
||||
|
||||
@@ -267,7 +267,7 @@ public:
|
||||
/// fallthrough statement.
|
||||
RC<TokenSyntax> getFallthroughKeyword() const;
|
||||
|
||||
/// Return a new FallthroughtStmtSyntax with the given fallthrough
|
||||
/// Return a new FallthroughStmtSyntax with the given fallthrough
|
||||
/// keyword.
|
||||
FallthroughStmtSyntax
|
||||
withFallthroughKeyword(RC<TokenSyntax> NewFallthroughKeyword) const;
|
||||
|
||||
@@ -122,7 +122,7 @@ enum class TriviaKind {
|
||||
Backtick,
|
||||
};
|
||||
|
||||
/// A contiguous stretch of a single kind of trivia. The constiuent part of
|
||||
/// A contiguous stretch of a single kind of trivia. The constituent part of
|
||||
/// a `Trivia` collection.
|
||||
///
|
||||
/// For example, four spaces would be represented by
|
||||
|
||||
@@ -662,7 +662,7 @@ public:
|
||||
};
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark implicity-unwrapped-optional-type Data
|
||||
#pragma mark implicitly-unwrapped-optional-type Data
|
||||
|
||||
class ImplicitlyUnwrappedOptionalTypeSyntaxData final : public TypeSyntaxData {
|
||||
friend struct SyntaxFactory;
|
||||
@@ -683,7 +683,7 @@ public:
|
||||
};
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark implicity-unwrapped-optional-type API
|
||||
#pragma mark implicitly-unwrapped-optional-type API
|
||||
|
||||
/// implicitly-unwrapped-optional-type -> type '!'
|
||||
class ImplicitlyUnwrappedOptionalTypeSyntax final : public TypeSyntax {
|
||||
@@ -729,8 +729,6 @@ class ArrayTypeSyntaxData final : public TypeSyntaxData {
|
||||
friend class SyntaxData;
|
||||
friend struct SyntaxFactory;
|
||||
|
||||
RC<TypeSyntaxData> CachedElemenType;
|
||||
|
||||
ArrayTypeSyntaxData(RC<RawSyntax> Raw,
|
||||
const SyntaxData *Parent = nullptr,
|
||||
CursorIndex IndexInParent = 0);
|
||||
|
||||
Reference in New Issue
Block a user