File tree 2 files changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/tasty
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ object TastyImpl extends scala.tasty.Tasty {
69
69
}
70
70
71
71
def PackageClauseDeco (x : PackageClause ): AbstractPackageClause = new AbstractPackageClause {
72
- override def definition : Definition = ???
72
+ def definition ( implicit ctx : Context ) : Definition = FromSymbol .packageDef(x.symbol)
73
73
}
74
74
75
75
// ----- Statements -----------------------------------------------
@@ -544,7 +544,9 @@ object TastyImpl extends scala.tasty.Tasty {
544
544
545
545
type TypeBoundsTree = tpd.TypeBoundsTree
546
546
547
- def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = ???
547
+ def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree = new AbstractTypeBoundsTree {
548
+ def tpe (implicit ctx : Context ): TypeBounds = x.tpe.bounds
549
+ }
548
550
549
551
def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ] = implicitly[ClassTag [TypeBoundsTree ]]
550
552
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ abstract class Tasty {
56
56
}
57
57
58
58
trait AbstractPackageClause {
59
- def definition : Definition
59
+ def definition ( implicit ctx : Context ) : Definition
60
60
}
61
61
implicit def PackageClauseDeco (x : PackageClause ): AbstractPackageClause
62
62
@@ -411,7 +411,7 @@ abstract class Tasty {
411
411
type TypeBoundsTree <: TypeOrBoundsTree
412
412
413
413
trait AbstractTypeBoundsTree {
414
- def tpe : TypeBounds
414
+ def tpe ( implicit ctx : Context ) : TypeBounds
415
415
}
416
416
implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
417
417
You can’t perform that action at this time.
0 commit comments