Skip to content

Commit e48806a

Browse files
committed
Implement TermOrTypeTree metods in library
1 parent b0ce6d7 commit e48806a

File tree

5 files changed

+2
-14
lines changed

5 files changed

+2
-14
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionImpl.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ class ReflectionImpl private (ctx: Contexts.Context, pos: SourcePosition)
88
with CoreImpl
99
with ContextOpsImpl
1010
with SymbolOpsImpl
11-
with TreeOpsImpl
12-
with TypeOrBoundsTreesOpsImpl
1311
with TypeOrBoundsOpsImpl {
1412

1513
val kernel: KernelImpl = new KernelImpl(ctx, pos)

compiler/src/dotty/tools/dotc/tastyreflect/TreeOpsImpl.scala

Lines changed: 0 additions & 5 deletions
This file was deleted.

compiler/src/dotty/tools/dotc/tastyreflect/TypeOrBoundsTreesOpsImpl.scala

Lines changed: 0 additions & 5 deletions
This file was deleted.

library/src/scala/tasty/reflect/TreeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ trait TreeOps extends Core {
55

66
// Decorators
77

8-
implicit def termAsTermOrTypeTree(term: Term): TermOrTypeTree
8+
implicit def termAsTermOrTypeTree(term: Term): TermOrTypeTree = term.asInstanceOf[TermOrTypeTree]
99

1010
// ----- Tree -----------------------------------------------------
1111

library/src/scala/tasty/reflect/TypeOrBoundsTreeOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package reflect
33

44
trait TypeOrBoundsTreeOps extends Core {
55

6-
implicit def typeTreeAsParent(term: TypeTree): TermOrTypeTree
6+
implicit def typeTreeAsParent(term: TypeTree): TermOrTypeTree = term.asInstanceOf[TermOrTypeTree]
77

88
implicit class TypeOrBoundsTreeAPI(self: TypeOrBoundsTree) {
99
def tpe(implicit ctx: Context): TypeOrBounds = kernel.TypeOrBoundsTree_tpe(self)

0 commit comments

Comments
 (0)