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
66import dotty .tools .tasty .experimental .{CommentPickler => CommentPicklerImpl }
77import dotty .tools .tasty .TastyBuffer .Addr
88
9- class CommentPickler (pickler : TastyPickler , addrOfTree : tpd.Tree => Addr )( implicit ctx : Context )
9+ class CommentPickler (pickler : TastyPickler , addrOfTree : tpd.Tree => Addr )
1010 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
44
55import dotty .tools .tasty .experimental .{TastyPickler => TastyPicklerImpl }
66
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}
55
66import java .nio .charset .Charset
77
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 ) {
99 import pickler .tasty .{_ , given }
1010 private val buf = new TastyBuffer (5000 )
1111 pickler.newSection(" Comments" , buf)
1212
13- def pickleComment (root : tpd.Tree ): Unit = {
13+ def pickleComment (root : tpd.Tree )( implicit ctx : Context ) : Unit = {
1414 val docCtx = ctx.docCtx
1515 assert(docCtx.isDefined, " Trying to pickle comments, but there's no `docCtx`." )
1616 new Traverser (docCtx.get).traverse(root)
You can’t perform that action at this time.
0 commit comments