@@ -55,29 +55,29 @@ extension TriviaPiece: TextOutputStreamable {
55
55
/// Prints the provided trivia as they would be written in a source file.
56
56
///
57
57
/// - 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 ) {
59
59
func printRepeated( _ character: String , count: Int ) {
60
60
for _ in 0 ..< count {
61
- target . write ( character)
61
+ stream . write ( character)
62
62
}
63
63
}
64
64
switch self {
65
65
case let . backslashes( count) :
66
66
printRepeated ( #"\"# , count: count)
67
67
case let . blockComment( text) :
68
- target . write ( text)
68
+ stream . write ( text)
69
69
case let . carriageReturns( count) :
70
70
printRepeated ( " \r " , count: count)
71
71
case let . carriageReturnLineFeeds( count) :
72
72
printRepeated ( " \r \n " , count: count)
73
73
case let . docBlockComment( text) :
74
- target . write ( text)
74
+ stream . write ( text)
75
75
case let . docLineComment( text) :
76
- target . write ( text)
76
+ stream . write ( text)
77
77
case let . formfeeds( count) :
78
78
printRepeated ( " \u{c} " , count: count)
79
79
case let . lineComment( text) :
80
- target . write ( text)
80
+ stream . write ( text)
81
81
case let . newlines( count) :
82
82
printRepeated ( " \n " , count: count)
83
83
case let . pounds( count) :
@@ -87,7 +87,7 @@ extension TriviaPiece: TextOutputStreamable {
87
87
case let . tabs( count) :
88
88
printRepeated ( " \t " , count: count)
89
89
case let . unexpectedText( text) :
90
- target . write ( text)
90
+ stream . write ( text)
91
91
case let . verticalTabs( count) :
92
92
printRepeated ( " \u{b} " , count: count)
93
93
}
0 commit comments