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 729adc5 commit 2ce11d9Copy full SHA for 2ce11d9
doc-tool/src/dotty/tools/dottydoc/util/syntax.scala
@@ -21,7 +21,6 @@ object syntax {
21
22
implicit class SymbolExtensions(val sym: Symbol) extends AnyVal {
23
def sourcePosition(pos: Position)(implicit ctx: Context): SourcePosition =
24
- new SourceFile(sym.sourceFile, Codec(ctx.settings.encoding.value)) atPos pos
25
-
+ ctx.getSource(sym.sourceFile).atPos(pos)
26
}
27
0 commit comments