Skip to content

Commit bd79795

Browse files
committed
Add missing implementations
1 parent 4e5cf82 commit bd79795

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

compiler/src/dotty/tools/dotc/tasty/TastyImpl.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ object TastyImpl extends scala.tasty.Tasty {
8080
}
8181

8282
def PackageClauseDeco(x: PackageClause): AbstractPackageClause = new AbstractPackageClause {
83-
override def definition: Definition = ???
83+
def definition(implicit ctx: Context): Definition = FromSymbol.packageDef(x.symbol)
8484
}
8585

8686
// ----- Statements -----------------------------------------------
@@ -556,7 +556,9 @@ object TastyImpl extends scala.tasty.Tasty {
556556

557557
type TypeBoundsTree = tpd.TypeBoundsTree
558558

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+
}
560562

561563
def typeBoundsTreeClassTag: ClassTag[TypeBoundsTree] = implicitly[ClassTag[TypeBoundsTree]]
562564

library/src/scala/tasty/Tasty.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

@@ -424,7 +424,7 @@ abstract class Tasty { tasty =>
424424
type TypeBoundsTree <: TypeOrBoundsTree
425425

426426
trait AbstractTypeBoundsTree {
427-
def tpe: TypeBounds
427+
def tpe(implicit ctx: Context): TypeBounds
428428
}
429429
implicit def TypeBoundsTreeDeco(x: TypeBoundsTree): AbstractTypeBoundsTree
430430

0 commit comments

Comments
 (0)