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
88object 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
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments