Skip to content

Commit f8ef071

Browse files
committed
Add doc comments for UTF-8 offset properties
1 parent 2b6b3cf commit f8ef071

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/SwiftSyntax/SyntaxData.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
struct AbsoluteSyntaxPosition {
14+
/// The UTF-8 offset of the syntax node in the source file
1415
let offset: UInt32
1516
let indexInParent: UInt32
1617

@@ -47,6 +48,7 @@ struct AbsoluteSyntaxInfo {
4748
let position: AbsoluteSyntaxPosition
4849
let nodeId: SyntaxIdentifier
4950

51+
/// The UTF-8 offset of the syntax node in the source file
5052
var offset: UInt32 { return position.offset }
5153
var indexInParent: UInt32 { return position.indexInParent }
5254

0 commit comments

Comments
 (0)