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 {
82
82
}
83
83
84
84
def PackageClauseDeco (x : PackageClause ): AbstractPackageClause = new AbstractPackageClause {
85
- override def definition : Definition = ???
85
+ def definition ( implicit ctx : Context ) : Definition = FromSymbol .packageDef(x.symbol)
86
86
}
87
87
88
88
// ----- Statements -----------------------------------------------
@@ -589,7 +589,9 @@ object TastyImpl extends scala.tasty.Tasty {
589
589
590
590
type TypeBoundsTree = tpd.TypeBoundsTree
591
591
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
+ }
593
595
594
596
def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ] = implicitly[ClassTag [TypeBoundsTree ]]
595
597
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
@@ -426,7 +426,7 @@ abstract class Tasty { tasty =>
426
426
type TypeBoundsTree <: TypeOrBoundsTree
427
427
428
428
trait AbstractTypeBoundsTree {
429
- def tpe : TypeBounds
429
+ def tpe ( implicit ctx : Context ) : TypeBounds
430
430
}
431
431
implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
432
432
You can’t perform that action at this time.
0 commit comments