We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2e97c6 commit b55f95dCopy full SHA for b55f95d
compiler/src/dotty/tools/dotc/core/tasty/CommentUnpickler.scala
@@ -21,8 +21,9 @@ class CommentUnpickler(reader: TastyReader) {
21
val addr = readAddr()
22
val length = readNat()
23
val rawComment = readUtf8()
24
- val position = new Span(readLongInt())
25
- comments(addr) = Comment(position, rawComment)
+ if rawComment.nonEmpty then
+ val position = new Span(readLongInt())
26
+ comments(addr) = Comment(position, rawComment)
27
}
28
comments
29
0 commit comments