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 {
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
You can’t perform that action at this time.
0 commit comments