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.
2 parents 31ab3a1 + 5fbb49d commit aefe56eCopy full SHA for aefe56e
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -178,7 +178,12 @@ object Scanners {
178
error(s"illegal combination of -rewrite targets: ${enabled(0).name} and ${enabled(1).name}")
179
}
180
181
- /** All doc comments kept by their end position in a `Map` */
+ /** All doc comments kept by their end position in a `Map`.
182
+ *
183
+ * Note: the map is necessary since the comments are looked up after an
184
+ * entire definition is parsed, and a definition can contain nested
185
+ * definitions with their own docstrings.
186
+ */
187
private var docstringMap: SortedMap[Int, Comment] = SortedMap.empty
188
189
/* A Buffer for comment positions */
0 commit comments