File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
src/scala/quoted/runtime/impl/printers
test/dotty/tools/dotc/printing Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package runtime.impl.printers
44import dotty .tools .dotc .util .Chars
55
66import scala .annotation .switch
7+ import scala .collection .mutable
78
89import java .lang .StringBuilder
910
@@ -1504,8 +1505,8 @@ object SourceCode {
15041505 else
15051506 qSc + text + qSc
15061507
1507- private [ this ] val names = collection.mutable.Map .empty[Symbol , String ]
1508- private [ this ] val namesIndex = collection.mutable.Map .empty[String , Int ]
1508+ private val names = collection.mutable.Map .empty[Symbol , String ]
1509+ private val namesIndex = collection.mutable.Map .empty[String , Int ]
15091510
15101511 private def splicedName (sym : Symbol ): Option [String ] = {
15111512 if sym.owner.isClassDef then None
Original file line number Diff line number Diff line change 11package dotty
22package tools
33package dotc
4+ package printing
45
56import scala .language .unsafeNulls
67
Original file line number Diff line number Diff line change 1+ [[syntax trees at end of parser]] // tests/printing/untyped/strings.scala
2+ package <empty> {
3+ class C {
4+ def chars = "\b\t\n\f\r\"\'\\a\u0003"
5+ def greeting = "hello, world"
6+ }
7+ }
8+
Original file line number Diff line number Diff line change 1+
2+ class C :
3+ def chars = " \b\t\n\f\r\"\'\\\u0061\u0003 "
4+ def greeting = " hello, world"
You can’t perform that action at this time.
0 commit comments