Skip to content

Commit 73b14ae

Browse files
committed
Rename Reporter to avoid name clashes
1 parent 6b0f163 commit 73b14ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/transform/localopt/StringContextChecker.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object StringContextChecker {
1717
import tpd._
1818

1919
/** This trait defines a tool to report errors/warnings that do not depend on Position. */
20-
trait Reporter {
20+
trait InterpolationReporter {
2121

2222
/** Reports error/warning of size 1 linked with a part of the StringContext.
2323
*
@@ -76,7 +76,7 @@ object StringContextChecker {
7676
return ""
7777
}
7878

79-
val reporter = new Reporter{
79+
val reporter = new InterpolationReporter{
8080
private[this] var reported = false
8181
private[this] var oldReported = false
8282
def partError(message : String, index : Int, offset : Int) : Unit = {
@@ -123,7 +123,7 @@ object StringContextChecker {
123123
checked(parts, args, reporter)
124124
}
125125

126-
def checked(parts0: List[String], args: List[Tree], reporter: Reporter)(using Context): String = {
126+
def checked(parts0: List[String], args: List[Tree], reporter: InterpolationReporter)(using Context): String = {
127127

128128

129129
/** Checks if the number of arguments are the same as the number of formatting strings

0 commit comments

Comments
 (0)