File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/core/tasty/experimental
tasty/src/dotty/tools/tasty/experimental Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ import dotty.tools.dotc.core.Contexts.Context
6
6
import dotty .tools .tasty .experimental .{CommentPickler => CommentPicklerImpl }
7
7
import dotty .tools .tasty .TastyBuffer .Addr
8
8
9
- class CommentPickler (pickler : TastyPickler , addrOfTree : tpd.Tree => Addr )( implicit ctx : Context )
9
+ class CommentPickler (pickler : TastyPickler , addrOfTree : tpd.Tree => Addr )
10
10
extends CommentPicklerImpl (pickler, addrOfTree)
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ import dotty.tools.dotc.core.Symbols.ClassSymbol
4
4
5
5
import dotty .tools .tasty .experimental .{TastyPickler => TastyPicklerImpl }
6
6
7
- class TastyPickler (rootCls : ClassSymbol ) extends TastyPicklerImpl (DottyTasty )(rootCls)
7
+ class TastyPickler (rootCls : ClassSymbol ) extends TastyPicklerImpl [ DottyTasty . type ] (DottyTasty )(rootCls)
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ import TastyBuffer.{Addr, NoAddr}
5
5
6
6
import java .nio .charset .Charset
7
7
8
- class CommentPickler [T <: Tasty ](val pickler : TastyPickler [T ], addrOfTree : pickler.tasty.tpd.Tree => Addr )( implicit ctx : pickler.tasty. Context ) {
8
+ class CommentPickler [T <: Tasty ](val pickler : TastyPickler [T ], addrOfTree : pickler.tasty.tpd.Tree => Addr ) {
9
9
import pickler .tasty .{_ , given }
10
10
private val buf = new TastyBuffer (5000 )
11
11
pickler.newSection(" Comments" , buf)
12
12
13
- def pickleComment (root : tpd.Tree ): Unit = {
13
+ def pickleComment (root : tpd.Tree )( implicit ctx : Context ) : Unit = {
14
14
val docCtx = ctx.docCtx
15
15
assert(docCtx.isDefined, " Trying to pickle comments, but there's no `docCtx`." )
16
16
new Traverser (docCtx.get).traverse(root)
You can’t perform that action at this time.
0 commit comments