File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
compiler/src/dotty/tools/dotc/ast Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -362,16 +362,13 @@ object Trees {
362
362
val nameStart =
363
363
if (point != span.start) point
364
364
else {
365
- // Use an immutable ArraySeq to work around https://github.com/scala/bug/issues/11708
366
- val content = collection.immutable.ArraySeq .unsafeWrapArray(source.content())
367
-
368
365
// Point might be too far away from start to be recorded. In this case we fall back to scanning
369
366
// forwards from the start offset for the name.
370
367
// Note: This might be inaccurate since scanning might hit accidentally the same
371
368
// name (e.g. in a comment) before finding the real definition.
372
369
// To make this behavior more robust we'd have to change the trees for definitions to contain
373
370
// a fully positioned Ident in place of a name.
374
- val idx = content.indexOfSlice(realName, point)
371
+ val idx = source. content() .indexOfSlice(realName, point)
375
372
if (idx >= 0 ) idx
376
373
else point // use `point` anyway. This is important if no source exists so scanning fails
377
374
}
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ object Build {
77
77
* scala-library.
78
78
*/
79
79
def stdlibVersion (implicit mode : Mode ): String = mode match {
80
- case NonBootstrapped => " 2.13.0 "
81
- case Bootstrapped => " 2.13.0 "
80
+ case NonBootstrapped => " 2.13.1 "
81
+ case Bootstrapped => " 2.13.1 "
82
82
}
83
83
84
84
val dottyOrganization = " ch.epfl.lamp"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments