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.
1 parent 012cb93 commit 9dc23b8Copy full SHA for 9dc23b8
compiler/src/dotty/tools/dotc/tasty/internal/TastySymbol.scala
@@ -9,9 +9,9 @@ import scala.tasty.names
9
object TastySymbol {
10
11
def apply(sym: Symbol)(implicit ctx: Context): scala.tasty.Symbol =
12
- if (sym.exists) new Impl(sym, ctx) else scala.tasty.NoSymbol
+ if (sym.exists) Impl(sym)(ctx) else scala.tasty.NoSymbol
13
14
- private class Impl(sym: Symbol, ctx: Context) extends scala.tasty.Symbol { self =>
+ private case class Impl(sym: Symbol)(ctx: Context) extends scala.tasty.Symbol { self =>
15
16
override def name: names.Name = Name(sym.name(ctx))
17
0 commit comments