File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/tastyreflect Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ object TastyImpl extends scala.tasty.Tasty {
8282 }
8383
8484 def PackageClauseDeco (x : PackageClause ): AbstractPackageClause = new AbstractPackageClause {
85- override def definition : Definition = ???
85+ def definition ( implicit ctx : Context ) : Definition = FromSymbol .packageDef(x.symbol)
8686 }
8787
8888 // ----- Statements -----------------------------------------------
@@ -589,7 +589,9 @@ object TastyImpl extends scala.tasty.Tasty {
589589
590590 type TypeBoundsTree = tpd.TypeBoundsTree
591591
592- def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = ???
592+ def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = new AbstractTypeBoundsTree {
593+ def tpe (implicit ctx : Context ): TypeBounds = x.tpe.bounds
594+ }
593595
594596 def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ] = implicitly[ClassTag [TypeBoundsTree ]]
595597
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ abstract class Tasty { tasty =>
6868 }
6969
7070 trait AbstractPackageClause {
71- def definition : Definition
71+ def definition ( implicit ctx : Context ) : Definition
7272 }
7373 implicit def PackageClauseDeco (x : PackageClause ): AbstractPackageClause
7474
@@ -426,7 +426,7 @@ abstract class Tasty { tasty =>
426426 type TypeBoundsTree <: TypeOrBoundsTree
427427
428428 trait AbstractTypeBoundsTree {
429- def tpe : TypeBounds
429+ def tpe ( implicit ctx : Context ) : TypeBounds
430430 }
431431 implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
432432
You can’t perform that action at this time.
0 commit comments