We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499c347 commit 71a5cd0Copy full SHA for 71a5cd0
compiler/src/dotty/tools/dotc/semanticdb/DiagnosticOps.scala
@@ -4,9 +4,10 @@ import dotty.tools.dotc.reporting.Diagnostic
4
import dotty.tools.dotc.{semanticdb => s}
5
import dotty.tools.dotc.interfaces.Diagnostic.{ERROR, INFO, WARNING}
6
import dotty.tools.dotc.core.Contexts.Context
7
+import scala.annotation.internal.sharable
8
9
object DiagnosticOps:
- private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
10
+ @sharable private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
11
extension (d: Diagnostic)
12
def toSemanticDiagnostic: s.Diagnostic =
13
val severity = d.level match
0 commit comments