Skip to content

Commit 82ad2eb

Browse files
committed
FIx source positions in documentation
1 parent 529822d commit 82ad2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala3doc/src/dotty/dokka/tasty/BasicSupport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ trait BasicSupport:
3232
def documentation = sym.docstring.map(parseComment(_, sym.tree))
3333

3434
def source(using Quotes) =
35-
val path = sym.pos.filter(isValidPos(_)).map(_.sourceFile.jpath).filter(_ != null).map(_.toAbsolutePath).map(_.toString)
35+
val path = sym.pos.map(_.sourceFile.jpath).filter(_ != null).map(_.toAbsolutePath).map(_.toString)
3636
path.map(TastyDocumentableSource(_, sym.pos.get.startLine))
3737

3838
def getAnnotations(): List[Annotation] =

0 commit comments

Comments
 (0)