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 d084b8b commit 2671fe3Copy full SHA for 2671fe3
compiler/src/dotty/tools/dotc/ast/Positioned.scala
@@ -46,7 +46,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Src
46
uniqueId = src.nextId
47
span = envelope(src)
48
49
- def source: SourceFile = SourceFile.fromId(uniqueId)
+ val source: SourceFile = src
50
def sourcePos(using Context): SourcePosition = source.atSpan(span)
51
52
/** This positioned item, widened to `SrcPos`. Used to make clear we only need the
0 commit comments