File tree 1 file changed +5
-10
lines changed
compiler/src/dotty/tools/dotc/tastyreflect 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -3,19 +3,14 @@ package dotty.tools.dotc.tastyreflect
3
3
import dotty .tools .dotc .core ._
4
4
import dotty .tools .dotc .util .{SourcePosition , Spans }
5
5
6
- class ReflectionImpl private (ctx : Contexts .Context , pos : SourcePosition )
7
- extends scala.tasty.Reflection {
8
-
9
- val kernel : KernelImpl = new KernelImpl (ctx, pos)
10
-
11
- }
12
-
13
6
object ReflectionImpl {
14
7
15
- def apply (rootContext : Contexts .Context ): ReflectionImpl =
8
+ def apply (rootContext : Contexts .Context ): scala.tasty. Reflection { val kernel : KernelImpl } =
16
9
apply(rootContext, SourcePosition (rootContext.source, Spans .NoSpan ))
17
10
18
- def apply (rootContext : Contexts .Context , rootPosition : SourcePosition ): ReflectionImpl =
19
- new ReflectionImpl (rootContext, rootPosition)
11
+ def apply (rootContext : Contexts .Context , rootPosition : SourcePosition ): scala.tasty.Reflection { val kernel : KernelImpl } = {
12
+ class ReflectionImpl (val kernel : KernelImpl ) extends scala.tasty.Reflection
13
+ new ReflectionImpl (new KernelImpl (rootContext, rootPosition))
14
+ }
20
15
21
16
}
You can’t perform that action at this time.
0 commit comments