File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/transform/localopt Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ object StringContextChecker {
17
17
import tpd ._
18
18
19
19
/** This trait defines a tool to report errors/warnings that do not depend on Position. */
20
- trait Reporter {
20
+ trait InterpolationReporter {
21
21
22
22
/** Reports error/warning of size 1 linked with a part of the StringContext.
23
23
*
@@ -76,7 +76,7 @@ object StringContextChecker {
76
76
return " "
77
77
}
78
78
79
- val reporter = new Reporter {
79
+ val reporter = new InterpolationReporter {
80
80
private [this ] var reported = false
81
81
private [this ] var oldReported = false
82
82
def partError (message : String , index : Int , offset : Int ) : Unit = {
@@ -123,7 +123,7 @@ object StringContextChecker {
123
123
checked(parts, args, reporter)
124
124
}
125
125
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 = {
127
127
128
128
129
129
/** Checks if the number of arguments are the same as the number of formatting strings
You can’t perform that action at this time.
0 commit comments