File tree 2 files changed +5
-3
lines changed
compiler/src/dotty/tools/dotc/quoted
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -954,13 +954,14 @@ class QuoteContextImpl private (ctx: Context) extends QuoteContext:
954
954
withDefaultPos(tpd.Select (qualifier, NameKinds .OuterSelectName (name.toTermName, levels)))
955
955
def copy (original : Tree )(qualifier : Term , name : String , levels : Int ): SelectOuter =
956
956
tpd.cpy.Select (original)(qualifier, NameKinds .OuterSelectName (name.toTermName, levels))
957
- def unapply (x : SelectOuter ): Option [(Term , Int , Type )] = // TODO homogenize order of parameters
958
- Some ((x.qualifier, x.level , x.tpe ))
957
+ def unapply (x : SelectOuter ): Option [(Term , String , Int )] =
958
+ Some ((x.qualifier, x.name.toString , x.level ))
959
959
end SelectOuter
960
960
961
961
object SelectOuterMethodsImpl extends SelectOuterMethods :
962
962
extension (self : SelectOuter ):
963
963
def qualifier : Term = self.qualifier
964
+ def name : String = self.name.toString
964
965
def level : Int =
965
966
val NameKinds .OuterSelectName (_, levels) = self.name
966
967
levels
Original file line number Diff line number Diff line change @@ -1107,7 +1107,7 @@ trait Reflection { reflection =>
1107
1107
trait SelectOuterModule { this : SelectOuter .type =>
1108
1108
def apply (qualifier : Term , name : String , levels : Int ): SelectOuter
1109
1109
def copy (original : Tree )(qualifier : Term , name : String , levels : Int ): SelectOuter
1110
- def unapply (x : SelectOuter ): Option [(Term , Int , Type )] // TODO homogenize order of parameters
1110
+ def unapply (x : SelectOuter ): Option [(Term , String , Int )]
1111
1111
}
1112
1112
1113
1113
given SelectOuterMethods as SelectOuterMethods = SelectOuterMethodsImpl
@@ -1116,6 +1116,7 @@ trait Reflection { reflection =>
1116
1116
trait SelectOuterMethods :
1117
1117
extension (self : SelectOuter ):
1118
1118
def qualifier : Term
1119
+ def name : String
1119
1120
def level : Int
1120
1121
end extension
1121
1122
end SelectOuterMethods
You can’t perform that action at this time.
0 commit comments