Skip to content

Commit 9732442

Browse files
committed
[Syntax] Remove LegacyASTTransformer
As it is no longer ever instantiated, and since Syntax nodes are being plumbed through the parser, the LegacyASTTransformer no longer needs to exist.
1 parent e3be361 commit 9732442

File tree

9 files changed

+595
-1924
lines changed

9 files changed

+595
-1924
lines changed

include/swift/AST/LegacyASTTransformer.h

-125
This file was deleted.

include/swift/AST/SyntaxASTMap.h

-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424

2525
namespace swift {
2626

27-
namespace syntax {
28-
class LegacyASTTransformer;
29-
}
30-
3127
/// The top-level container and manager for semantic analysis.
3228
///
3329
/// Eventually, this should contain cached semantic information such as

include/swift/Syntax/Syntax.h

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ const auto NoParent = llvm::None;
5454
/// their children.
5555
class Syntax {
5656
friend struct SyntaxFactory;
57-
friend class LegacyASTTransformer;
5857
friend class swift::SyntaxASTMap;
5958

6059
protected:

lib/AST/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ add_swift_library(swiftAST STATIC
3333
GenericSignatureBuilder.cpp
3434
Identifier.cpp
3535
LayoutConstraint.cpp
36-
LegacyASTTransformer.cpp
3736
LookupVisibleDecls.cpp
3837
Module.cpp
3938
ModuleLoader.cpp

0 commit comments

Comments
 (0)