Skip to content

Commit b0ecca8

Browse files
committed
Remove deprecated methods
Now that we have branched for Swift 5.8, we can remove all deprecated methods on main.
1 parent 7c8540b commit b0ecca8

File tree

8 files changed

+0
-10335
lines changed

8 files changed

+0
-10335
lines changed

Sources/SwiftSyntax/IncrementalParseTransition.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,6 @@ public final class IncrementalParseTransition {
4949
fileprivate let edits: ConcurrentEdits
5050
fileprivate let reusedDelegate: IncrementalParseReusedNodeDelegate?
5151

52-
/// - Parameters:
53-
/// - previousTree: The previous tree to do lookups on.
54-
/// - edits: The edits that have occurred since the last parse that resulted
55-
/// in the new source that is about to be parsed. There is a strict
56-
/// requirement for the array of edits to:
57-
/// 1. not be overlapping.
58-
/// 2. should be in increasing source offset order.
59-
/// - reusedNodeDelegate: Optional delegate to accept information about the
60-
/// reused regions and nodes.
61-
@available(*, deprecated, message: "Use the initializer taking 'ConcurrentEdits' instead")
62-
public convenience init(
63-
previousTree: SourceFileSyntax,
64-
edits: [SourceEdit],
65-
reusedNodeDelegate: IncrementalParseReusedNodeDelegate? = nil
66-
) {
67-
self.init(
68-
previousTree: previousTree,
69-
edits: try! ConcurrentEdits(concurrent: edits),
70-
reusedNodeDelegate: reusedNodeDelegate
71-
)
72-
}
73-
7452
/// - Parameters:
7553
/// - previousTree: The previous tree to do lookups on.
7654
/// - edits: The edits that have occurred since the last parse that resulted

Sources/SwiftSyntax/Syntax.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,6 @@ extension SyntaxProtocol {
245245
}
246246

247247
public extension SyntaxProtocol {
248-
@available(*, deprecated, message: "Use children(viewMode:) instead")
249-
var children: SyntaxChildren {
250-
return children(viewMode: .sourceAccurate)
251-
}
252-
253248
/// A sequence over the `present` children of this node.
254249
func children(viewMode: SyntaxTreeViewMode) -> SyntaxChildren {
255250
return SyntaxChildren(_syntaxNode, viewMode: viewMode)
@@ -536,12 +531,6 @@ public extension SyntaxProtocol {
536531
return this
537532
}
538533

539-
/// Sequence of tokens that are part of this Syntax node.
540-
@available(*, deprecated, message: "Use tokens(viewMode:) instead")
541-
var tokens: TokenSequence {
542-
return tokens(viewMode: .sourceAccurate)
543-
}
544-
545534
/// Sequence of tokens that are part of this Syntax node.
546535
func tokens(viewMode: SyntaxTreeViewMode) -> TokenSequence {
547536
return TokenSequence(_syntaxNode, viewMode: viewMode)

Sources/SwiftSyntax/SyntaxFactory.swift.gyb

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

Sources/SwiftSyntax/generated/SyntaxVisitor.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ public enum SyntaxVisitorContinueKind {
1313
open class SyntaxVisitor {
1414
public let viewMode: SyntaxTreeViewMode
1515

16-
@available( * , deprecated, message: "Use init(viewMode:) instead")
17-
public convenience init() {
18-
self.init(viewMode: .sourceAccurate)
19-
}
20-
2116
public init(viewMode: SyntaxTreeViewMode) {
2217
self.viewMode = viewMode
2318
}

0 commit comments

Comments
 (0)