File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/semanticdb Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import dotty.tools.dotc.core.Contexts.Context
8
8
object DiagnosticOps :
9
9
private val asciiColorCodes = " \u001B\\ [[;\\ d]*m" .r
10
10
extension (d : Diagnostic )
11
- def toSemanticDiagnostic ( using Context ) : s.Diagnostic =
11
+ def toSemanticDiagnostic : s.Diagnostic =
12
12
val severity = d.level match
13
13
case ERROR => s.Diagnostic .Severity .ERROR
14
14
case WARNING => s.Diagnostic .Severity .WARNING
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ object Scala3:
29
29
30
30
private val WILDCARDTypeName = nme.WILDCARD .toTypeName
31
31
32
- def range (span : Span , treeSource : SourceFile )( using Context ) : Option [Range ] =
32
+ def range (span : Span , treeSource : SourceFile ): Option [Range ] =
33
33
def lineCol (offset : Int ) = (treeSource.offsetToLine(offset), treeSource.column(offset))
34
34
val (startLine, startCol) = lineCol(span.start)
35
35
val (endLine, endCol) = lineCol(span.end)
You can’t perform that action at this time.
0 commit comments