File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
compiler/src/dotty/tools/dotc/tastyreflect Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -3,21 +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
- with CoreImpl
9
- with CommentOpsImpl {
10
-
11
- val kernel : KernelImpl = new KernelImpl (ctx, pos)
12
-
13
- }
14
-
15
6
object ReflectionImpl {
16
7
17
- def apply (rootContext : Contexts .Context ): ReflectionImpl =
8
+ def apply (rootContext : Contexts .Context ): scala.tasty. Reflection { val kernel : KernelImpl } =
18
9
apply(rootContext, SourcePosition (rootContext.source, Spans .NoSpan ))
19
10
20
- def apply (rootContext : Contexts .Context , rootPosition : SourcePosition ): ReflectionImpl =
21
- 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 with CoreImpl with CommentOpsImpl
13
+ new ReflectionImpl (new KernelImpl (rootContext, rootPosition))
14
+ }
22
15
23
16
}
You can’t perform that action at this time.
0 commit comments