Skip to content

Commit 40a2a00

Browse files
committed
Remove Context parameter from Scala3.range and toSemanticDbDiagnositcs
1 parent c9de8e2 commit 40a2a00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/semanticdb/DiagnosticOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import dotty.tools.dotc.core.Contexts.Context
88
object DiagnosticOps:
99
private val asciiColorCodes = "\u001B\\[[;\\d]*m".r
1010
extension (d: Diagnostic)
11-
def toSemanticDiagnostic(using Context): s.Diagnostic =
11+
def toSemanticDiagnostic: s.Diagnostic =
1212
val severity = d.level match
1313
case ERROR => s.Diagnostic.Severity.ERROR
1414
case WARNING => s.Diagnostic.Severity.WARNING

compiler/src/dotty/tools/dotc/semanticdb/Scala3.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object Scala3:
2929

3030
private val WILDCARDTypeName = nme.WILDCARD.toTypeName
3131

32-
def range(span: Span, treeSource: SourceFile)(using Context): Option[Range] =
32+
def range(span: Span, treeSource: SourceFile): Option[Range] =
3333
def lineCol(offset: Int) = (treeSource.offsetToLine(offset), treeSource.column(offset))
3434
val (startLine, startCol) = lineCol(span.start)
3535
val (endLine, endCol) = lineCol(span.end)

0 commit comments

Comments
 (0)