Skip to content

Commit e8e60fb

Browse files
committed
Formatting and comment improvements
1 parent f590659 commit e8e60fb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Sources/SwiftSyntax/AbsoluteSyntaxInfo.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ struct AbsoluteSyntaxPosition {
3030
}
3131
}
3232

33-
/// AbsoluteSyntaxInfo represents the information that relates a RawSyntax to a
34-
/// source file tree, like its absolute source offset.
33+
/// `AbsoluteSyntaxInfo` represents the information that relates a `RawSyntax`
34+
/// to a source file tree, like its absolute source offset.
3535
struct AbsoluteSyntaxInfo {
3636
let position: AbsoluteSyntaxPosition
3737
let nodeId: SyntaxIdentifier

Sources/SwiftSyntax/SyntaxIdentifier.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public struct SyntaxIndexInTree: Comparable, Hashable {
4949
/// Provides a stable and unique identity for ``Syntax`` nodes.
5050
///
5151
/// Note that two nodes might have the same contents even if their IDs are
52-
/// different. For example two different ``FunctionDeclSyntax`` nodes in the
52+
/// different. For example two different ``FunctionDeclSyntax`` nodes
5353
/// might have the exact same contents but if they occur at a different
5454
/// location in the source file, they have different IDs.
5555
///
@@ -65,6 +65,7 @@ public struct SyntaxIdentifier: Hashable {
6565
/// exact the same structure. But, two trees with exactly the same structure
6666
/// might still have different 'rootId's.
6767
let rootId: UInt
68+
6869
/// Unique value for a node within its own tree.
6970
@_spi(RawSyntax)
7071
public let indexInTree: SyntaxIndexInTree

Sources/SwiftSyntax/SyntaxProtocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public extension SyntaxProtocol {
167167
// MARK: Type information
168168

169169
extension SyntaxProtocol {
170-
/// The kind of the syntax node, e.g. if it is a `functionDecl`.
170+
/// The kind of the syntax node, e.g. if it is a ``SyntaxKind/functionDecl``.
171171
///
172172
/// If you want to check for a node's kind and cast the node to that type, see
173173
/// `self.as(FunctionDeclSyntax.self)` or `self.as(SyntaxEnum.self)`.
@@ -189,7 +189,7 @@ extension SyntaxProtocol {
189189
// MARK: Children / parent
190190

191191
public extension SyntaxProtocol {
192-
/// A sequence over the `present` children of this node.
192+
/// A sequence over the children of this node.
193193
func children(viewMode: SyntaxTreeViewMode) -> SyntaxChildren {
194194
return SyntaxChildren(_syntaxNode, viewMode: viewMode)
195195
}

0 commit comments

Comments
 (0)