@@ -55,29 +55,29 @@ extension TriviaPiece: TextOutputStreamable {
5555 /// Prints the provided trivia as they would be written in a source file.
5656 ///
5757 /// - Parameter stream: The stream to which to print the trivia.
58- public func write( to target : inout some TextOutputStream ) {
58+ public func write( to stream : inout some TextOutputStream ) {
5959 func printRepeated( _ character: String , count: Int ) {
6060 for _ in 0 ..< count {
61- target . write ( character)
61+ stream . write ( character)
6262 }
6363 }
6464 switch self {
6565 case let . backslashes( count) :
6666 printRepeated ( #"\"# , count: count)
6767 case let . blockComment( text) :
68- target . write ( text)
68+ stream . write ( text)
6969 case let . carriageReturns( count) :
7070 printRepeated ( " \r " , count: count)
7171 case let . carriageReturnLineFeeds( count) :
7272 printRepeated ( " \r \n " , count: count)
7373 case let . docBlockComment( text) :
74- target . write ( text)
74+ stream . write ( text)
7575 case let . docLineComment( text) :
76- target . write ( text)
76+ stream . write ( text)
7777 case let . formfeeds( count) :
7878 printRepeated ( " \u{c} " , count: count)
7979 case let . lineComment( text) :
80- target . write ( text)
80+ stream . write ( text)
8181 case let . newlines( count) :
8282 printRepeated ( " \n " , count: count)
8383 case let . pounds( count) :
@@ -87,7 +87,7 @@ extension TriviaPiece: TextOutputStreamable {
8787 case let . tabs( count) :
8888 printRepeated ( " \t " , count: count)
8989 case let . unexpectedText( text) :
90- target . write ( text)
90+ stream . write ( text)
9191 case let . verticalTabs( count) :
9292 printRepeated ( " \u{b} " , count: count)
9393 }
0 commit comments