Skip to content

Commit 0bc2f03

Browse files
authored
Merge pull request #465 from ahoppen/ahoppen/remove-unused-nodes
Remove unused nodes
2 parents 8b4db3c + fcbe608 commit 0bc2f03

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,10 +1428,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
14281428
return .visitChildren
14291429
}
14301430

1431-
override func visit(_ node: AccessLevelModifierSyntax) -> SyntaxVisitorContinueKind {
1432-
return .visitChildren
1433-
}
1434-
14351431
override func visit(_ node: CodeBlockSyntax) -> SyntaxVisitorContinueKind {
14361432
return .visitChildren
14371433
}
@@ -1969,10 +1965,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
19691965
return .visitChildren
19701966
}
19711967

1972-
override func visit(_ node: AsTypePatternSyntax) -> SyntaxVisitorContinueKind {
1973-
return .visitChildren
1974-
}
1975-
19761968
override func visit(_ node: InheritedTypeSyntax) -> SyntaxVisitorContinueKind {
19771969
after(node.trailingComma, tokens: .break(.same))
19781970
return .visitChildren
@@ -2009,10 +2001,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
20092001
return .visitChildren
20102002
}
20112003

2012-
override func visit(_ node: ExpressionStmtSyntax) -> SyntaxVisitorContinueKind {
2013-
return .visitChildren
2014-
}
2015-
20162004
override func visit(_ node: IdentifierExprSyntax) -> SyntaxVisitorContinueKind {
20172005
return .visitChildren
20182006
}
@@ -2040,14 +2028,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
20402028
return .visitChildren
20412029
}
20422030

2043-
override func visit(_ node: DeclarationStmtSyntax) -> SyntaxVisitorContinueKind {
2044-
return .visitChildren
2045-
}
2046-
2047-
override func visit(_ node: EnumCasePatternSyntax) -> SyntaxVisitorContinueKind {
2048-
return .visitChildren
2049-
}
2050-
20512031
override func visit(_ node: FallthroughStmtSyntax) -> SyntaxVisitorContinueKind {
20522032
return .visitChildren
20532033
}
@@ -2066,10 +2046,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
20662046
return .visitChildren
20672047
}
20682048

2069-
override func visit(_ node: OptionalPatternSyntax) -> SyntaxVisitorContinueKind {
2070-
return .visitChildren
2071-
}
2072-
20732049
override func visit(_ node: WildcardPatternSyntax) -> SyntaxVisitorContinueKind {
20742050
return .visitChildren
20752051
}
@@ -2249,10 +2225,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
22492225
return .visitChildren
22502226
}
22512227

2252-
override func visit(_ node: SymbolicReferenceExprSyntax) -> SyntaxVisitorContinueKind {
2253-
return .visitChildren
2254-
}
2255-
22562228
override func visit(_ node: TypeInheritanceClauseSyntax) -> SyntaxVisitorContinueKind {
22572229
// Normally, the open-break is placed before the open token. In this case, it's intentionally
22582230
// ordered differently so that the inheritance list can start on the current line and only
@@ -2364,11 +2336,6 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
23642336
return .skipChildren
23652337
}
23662338

2367-
override func visit(_ node: NonEmptyTokenListSyntax) -> SyntaxVisitorContinueKind {
2368-
verbatimToken(Syntax(node))
2369-
return .skipChildren
2370-
}
2371-
23722339
// MARK: - Token handling
23732340

23742341
override func visit(_ token: TokenSyntax) -> SyntaxVisitorContinueKind {

0 commit comments

Comments
 (0)