File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/tasty Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ object TastyImpl extends scala.tasty.Tasty {
80
80
}
81
81
82
82
def PackageClauseDeco (x : PackageClause ): AbstractPackageClause = new AbstractPackageClause {
83
- override def definition : Definition = ???
83
+ def definition ( implicit ctx : Context ) : Definition = FromSymbol .packageDef(x.symbol)
84
84
}
85
85
86
86
// ----- Statements -----------------------------------------------
@@ -556,7 +556,9 @@ object TastyImpl extends scala.tasty.Tasty {
556
556
557
557
type TypeBoundsTree = tpd.TypeBoundsTree
558
558
559
- def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = ???
559
+ def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = new AbstractTypeBoundsTree {
560
+ def tpe (implicit ctx : Context ): TypeBounds = x.tpe.bounds
561
+ }
560
562
561
563
def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ] = implicitly[ClassTag [TypeBoundsTree ]]
562
564
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ abstract class Tasty { tasty =>
68
68
}
69
69
70
70
trait AbstractPackageClause {
71
- def definition : Definition
71
+ def definition ( implicit ctx : Context ) : Definition
72
72
}
73
73
implicit def PackageClauseDeco (x : PackageClause ): AbstractPackageClause
74
74
@@ -424,7 +424,7 @@ abstract class Tasty { tasty =>
424
424
type TypeBoundsTree <: TypeOrBoundsTree
425
425
426
426
trait AbstractTypeBoundsTree {
427
- def tpe : TypeBounds
427
+ def tpe ( implicit ctx : Context ) : TypeBounds
428
428
}
429
429
implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
430
430
You can’t perform that action at this time.
0 commit comments