Skip to content

Commit a9fdd30

Browse files
authored
Merge pull request #2094 from ahoppen/ahoppen/fix-docc-warnings
Fix warnings when generating the docc documentation archive for SwiftSyntax
2 parents e01ed6f + 9e1bfe9 commit a9fdd30

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Sources/SwiftSyntax/Convenience.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension MemberAccessExprSyntax {
2727
/// that takes a drink.
2828
///
2929
/// Given how common it is to not need the argument names, this initializer is
30-
/// provided as a convenience to avoid having to create a ``DeclReferenceExpr``
30+
/// provided as a convenience to avoid having to create a ``DeclReferenceExprSyntax``
3131
/// for the member name.
3232
public init(
3333
leadingTrivia: Trivia? = nil,

Sources/SwiftSyntax/Documentation.docc/Working with SwiftSyntax.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ of ``SyntaxRewriter``. Like a ``SyntaxVisitor``, a client needs to override
163163
the corresponding `visit` method accepting the syntax node of interest, and
164164
return a rewritten syntax node as a result.
165165

166-
To provide a source transformation, use a ``SyntaxTransformVisitor``.
167-
Types conforming to this protocol are given the chance to transform the nodes of
168-
a syntax tree into a user-defined result type. This can be anything from new
169-
syntax nodes in the case of a formatter, to an integer counter in the case of
170-
a lexical analyzer counting the number of lines in the source code.
171-
172166
## Modifying the Syntax Tree
173167

174168
The syntax trees provided by the SwiftSyntax library are immutable. All

0 commit comments

Comments
 (0)