File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/tastyreflect
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class TastyImpl(val rootContext: Contexts.Context) extends scala.tasty.Tasty wit
62
62
63
63
object Id extends IdExtractor {
64
64
def unapply (x : Id ): Option [String ] = x match {
65
- case x : untpd.Ident => Some (x.name.toString) // TODO how to make sure it is not a Ident or TypeIdent? Check x.tpe?
65
+ case x : untpd.Ident => Some (x.name.toString)
66
66
case _ => None
67
67
}
68
68
}
@@ -117,7 +117,7 @@ class TastyImpl(val rootContext: Contexts.Context) extends scala.tasty.Tasty wit
117
117
118
118
object SimpleSelector extends SimpleSelectorExtractor {
119
119
def unapply (x : ImportSelector )(implicit ctx : Context ): Option [Id ] = x match {
120
- case x : untpd.Ident => Some (x) // TODO make sure it will not match other idents
120
+ case x : untpd.Ident => Some (x)
121
121
case _ => None
122
122
}
123
123
}
You can’t perform that action at this time.
0 commit comments