File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111//===----------------------------------------------------------------------===//
1212
1313extension Trivia {
14- /// The contents of the last doc comment piece with any comment markers removed and indentation whitespace stripped.
14+ /// The normalized contents of the documentation comment in this trivia.
15+ ///
16+ /// Returns the content of the last documentation comment block, which semantically represents
17+ /// "the one and only" documentation comment associated with this trivia. Comment markers are
18+ /// removed, common indentation is stripped, and line endings are normalized to `\n`.
19+ ///
20+ /// Returns `nil` if no documentation comment is present.
1521 public var docCommentValue : String ? {
1622 var comments : [ Substring ] = [ ]
1723 var currentLineComments : [ String ] = [ ] // Reset line comments when encountering a block comment
You can’t perform that action at this time.
0 commit comments