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 8ac4db2 commit 55b470fCopy full SHA for 55b470f
compiler/src/dotty/tools/dotc/ast/Positioned.scala
@@ -57,7 +57,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Src
57
info match
58
// This span is in user code
59
case HasHeader(offset, originalFile)
60
- if span != NoSpan && span.start >= offset =>
+ if span.exists && span.start >= offset =>
61
originalFile.atSpan(span.shift(-offset))
62
// Otherwise, return the source position in the wrapper code
63
case _ => source.atSpan(span)
0 commit comments