File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/reporting
doc-tool/src/dotty/tools/dottydoc Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,15 @@ trait MessageRendering {
91
91
* @return aligned error message
92
92
*/
93
93
def errorMsg (pos : SourcePosition , msg : String , offset : Int )(implicit ctx : Context ): String = {
94
- val padding = msg.linesIterator .foldLeft(pos.startColumnPadding) { (pad, line) =>
94
+ val padding = msg.lines .foldLeft(pos.startColumnPadding) { (pad, line) =>
95
95
val lineLength = stripColor(line).length
96
96
val maxPad = math.max(0 , ctx.settings.pageWidth.value - offset - lineLength) - offset
97
97
98
98
if (maxPad < pad.length) " " * maxPad
99
99
else pad
100
100
}
101
101
102
- msg.linesIterator
102
+ msg.lines
103
103
.map { line => " " * (offset - 1 ) + " |" + padding + line}
104
104
.mkString(sys.props(" line.separator" ))
105
105
}
Original file line number Diff line number Diff line change @@ -21,6 +21,6 @@ trait CommentCleaner {
21
21
SafeTags .replaceAllIn(javadoclessComment, { mtch =>
22
22
Matcher .quoteReplacement(safeTagMarker + mtch.matched + safeTagMarker)
23
23
})
24
- markedTagComment.linesIterator .toList map (cleanLine)
24
+ markedTagComment.lines .toList map (cleanLine)
25
25
}
26
26
}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ trait Page {
115
115
val withoutYaml = virtualFile(
116
116
if (content.startsWith(" ---\n " )) {
117
117
val str =
118
- content.linesIterator
118
+ content.lines
119
119
.drop(1 )
120
120
.dropWhile(line => line != " ---" && line != " ..." )
121
121
.drop(1 ).mkString(" \n " )
You can’t perform that action at this time.
0 commit comments