Skip to content

Commit 4c162b2

Browse files
committed
Delete libSyntax
1 parent 980d409 commit 4c162b2

Some content is hidden

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

74 files changed

+22
-8938
lines changed

include/swift/AST/ASTContext.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ namespace rewriting {
144144
class RewriteContext;
145145
}
146146

147-
namespace syntax {
148-
class SyntaxArena;
149-
}
150-
151147
namespace ide {
152148
class TypeCheckCompletionCallback;
153149
}
@@ -498,9 +494,6 @@ class ASTContext final {
498494
setVector.size());
499495
}
500496

501-
/// Retrieve the syntax node memory manager for this context.
502-
llvm::IntrusiveRefCntPtr<syntax::SyntaxArena> getSyntaxArena() const;
503-
504497
/// Set a new stats reporter.
505498
void setStatsReporter(UnifiedStatsReporter *stats);
506499

include/swift/AST/Decl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6769,8 +6769,7 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
67696769
// FIXME: Remove 'Parsed' from this list once we can always delay
67706770
// parsing bodies. The -experimental-skip-*-function-bodies options
67716771
// do currently skip parsing, unless disabled through other means in
6772-
// SourceFile::hasDelayedBodyParsing (eg. needing to build the full
6773-
// syntax tree due to -verify-syntax-tree).
6772+
// SourceFile::hasDelayedBodyParsing.
67746773
assert(getBodyKind() == BodyKind::None ||
67756774
getBodyKind() == BodyKind::Unparsed ||
67766775
getBodyKind() == BodyKind::Parsed);

include/swift/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ if(SWIFT_INCLUDE_TOOLS)
99
ESCAPE_QUOTES @ONLY)
1010
add_subdirectory(AST)
1111
add_subdirectory(Option)
12-
add_subdirectory(Parse)
13-
add_subdirectory(Syntax)
1412
endif()
1513

include/swift/Frontend/Frontend.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#include "swift/Migrator/MigratorOptions.h"
3838
#include "swift/Parse/CodeCompletionCallbacks.h"
3939
#include "swift/Parse/Parser.h"
40-
#include "swift/Parse/SyntaxParsingCache.h"
4140
#include "swift/Sema/SourceLoader.h"
4241
#include "swift/Serialization/Validation.h"
4342
#include "swift/Subsystems.h"
@@ -96,10 +95,6 @@ class CompilerInvocation {
9695
IRGenOptions IRGenOpts;
9796
TBDGenOptions TBDGenOpts;
9897
ModuleInterfaceOptions ModuleInterfaceOpts;
99-
/// The \c SyntaxParsingCache to use when parsing the main file of this
100-
/// invocation
101-
SyntaxParsingCache *MainFileSyntaxParsingCache = nullptr;
102-
10398
llvm::MemoryBuffer *CodeCompletionBuffer = nullptr;
10499

105100
/// Code completion offset in bytes from the beginning of the main
@@ -296,14 +291,6 @@ class CompilerInvocation {
296291
IRGenOptions &getIRGenOptions() { return IRGenOpts; }
297292
const IRGenOptions &getIRGenOptions() const { return IRGenOpts; }
298293

299-
void setMainFileSyntaxParsingCache(SyntaxParsingCache *Cache) {
300-
MainFileSyntaxParsingCache = Cache;
301-
}
302-
303-
SyntaxParsingCache *getMainFileSyntaxParsingCache() const {
304-
return MainFileSyntaxParsingCache;
305-
}
306-
307294
void setParseStdlib() {
308295
FrontendOpts.ParseStdlib = true;
309296
}

include/swift/IDE/CompletionLookup.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include "swift/IDE/PossibleParamInfo.h"
2929
#include "swift/Sema/IDETypeChecking.h"
3030
#include "swift/Strings.h"
31-
#include "swift/Syntax/SyntaxKind.h"
3231

3332
namespace swift {
3433
namespace ide {

include/swift/Parse/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

include/swift/Parse/ParsedRawSyntaxNode.h

Lines changed: 0 additions & 255 deletions
This file was deleted.

0 commit comments

Comments
 (0)