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.
Scanner.commentSpans
1 parent 2753a17 commit 206b1b2Copy full SHA for 206b1b2
compiler/src/dotty/tools/dotc/parsing/Scanners.scala
@@ -233,6 +233,10 @@ object Scanners {
233
/** Return a list of all the comments */
234
def comments: List[Comment] = commentBuf.toList
235
236
+ /** Return a list of all the comment positions */
237
+ @deprecated("Use `comments` to get rich information source comments", since = "3.3.2")
238
+ def commentSpans: List[Span] = comments.map(_.span)
239
+
240
private def addComment(comment: Comment): Unit = {
241
val lookahead = lookaheadReader()
242
def nextPos: Int = (lookahead.getc(): @switch) match {
0 commit comments