Skip to content

Commit c5e14de

Browse files
committed
Remove unnecessary Context parameter
This context has not been needed since the tree contains its source.
1 parent 755a81f commit c5e14de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Positioned.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Pro
4545
span = envelope(src)
4646

4747
def source: SourceFile = SourceFile.fromId(uniqueId)
48-
def sourcePos(implicit ctx: Context): SourcePosition = source.atSpan(span)
48+
def sourcePos: SourcePosition = source.atSpan(span)
4949

5050
/** A positioned item like this one with given `span`.
5151
* If the positioned item is source-derived, a clone is returned.

0 commit comments

Comments
 (0)