@@ -2574,17 +2574,19 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
25742574 case cu => " "
25752575 end Source
25762576
2577- def error (msg : => String , pos : Position ): Unit =
2578- dotc.report.error(msg, pos)
2577+ object Reporting extends ReportingModule :
2578+ def error (msg : => String , pos : Position ): Unit =
2579+ dotc.report.error(msg, pos)
25792580
2580- def error (msg : => String , sourceFile : SourceFile , start : Int , end : Int ): Unit =
2581- dotc.report.error(msg, dotc.util.SourcePosition (sourceFile, dotc.util.Spans .Span (start, end)))
2581+ def error (msg : => String , sourceFile : SourceFile , start : Int , end : Int ): Unit =
2582+ dotc.report.error(msg, dotc.util.SourcePosition (sourceFile, dotc.util.Spans .Span (start, end)))
25822583
2583- def warning (msg : => String , pos : Position ): Unit =
2584- dotc.report.warning(msg, pos)
2584+ def warning (msg : => String , pos : Position ): Unit =
2585+ dotc.report.warning(msg, pos)
25852586
2586- def warning (msg : => String , sourceFile : SourceFile , start : Int , end : Int ): Unit =
2587- dotc.report.error(msg, dotc.util.SourcePosition (sourceFile, dotc.util.Spans .Span (start, end)))
2587+ def warning (msg : => String , sourceFile : SourceFile , start : Int , end : Int ): Unit =
2588+ dotc.report.error(msg, dotc.util.SourcePosition (sourceFile, dotc.util.Spans .Span (start, end)))
2589+ end Reporting
25882590
25892591 type Documentation = dotc.core.Comments .Comment
25902592
0 commit comments