Skip to content

Commit

Permalink
Merge pull request swiftlang#25805 from rintaro/parse-header-nonexist
Browse files Browse the repository at this point in the history
[Gardening][Parse] Erase several method declarations from the header
  • Loading branch information
rintaro authored Jun 27, 2019
2 parents 8e5c91b + 22be7a5 commit 45007d4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions include/swift/Parse/Parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,6 @@ class Parser {
StaticSpellingKind StaticSpelling,
SourceLoc TryLoc);

void consumeGetSetBody(AbstractFunctionDecl *AFD, SourceLoc LBLoc);

struct ParsedAccessors;
ParserStatus parseGetSet(ParseDeclOptions Flags,
GenericParamList *GenericParams,
Expand All @@ -1006,9 +1004,6 @@ class Parser {
ParsedAccessors &accessors,
AbstractStorageDecl *storage,
SourceLoc StaticLoc);
void recordAccessors(AbstractStorageDecl *storage, ParseDeclOptions flags,
TypeLoc elementTy, const DeclAttributes &attrs,
SourceLoc staticLoc, ParsedAccessors &accessors);
ParserResult<VarDecl> parseDeclVarGetSet(Pattern *pattern,
ParseDeclOptions Flags,
SourceLoc StaticLoc,
Expand Down Expand Up @@ -1324,9 +1319,7 @@ class Parser {
ParserResult<Expr> parseExprKeyPath();
ParserResult<Expr> parseExprSelector();
ParserResult<Expr> parseExprSuper();
ParserResult<Expr> parseExprConfiguration();
ParserResult<Expr> parseExprStringLiteral();
ParserResult<Expr> parseExprTypeOf();

StringRef copyAndStripUnderscores(StringRef text);

Expand Down Expand Up @@ -1424,10 +1417,6 @@ class Parser {

ParserResult<Expr> parseTrailingClosure(SourceRange calleeRange);

// NOTE: used only for legacy support for old object literal syntax.
// Will be removed in the future.
bool isCollectionLiteralStartingWithLSquareLit();

/// Parse an object literal.
///
/// \param LK The literal kind as determined by the first token.
Expand All @@ -1437,7 +1426,6 @@ class Parser {
bool isExprBasic);
ParserResult<Expr> parseExprCollection();
ParserResult<Expr> parseExprCollectionElement(Optional<bool> &isDictionary);
ParserResult<Expr> parseExprPoundAssert();
ParserResult<Expr> parseExprPoundUnknown(SourceLoc LSquareLoc);
ParserResult<Expr>
parseExprPoundCodeCompletion(Optional<StmtKind> ParentKind);
Expand Down

0 comments on commit 45007d4

Please sign in to comment.