File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
compiler/src/dotty/tools/dotc/tasty Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
package dotty .tools .dotc .tasty
2
2
3
- import dotty .tools .dotc .core .Contexts .Context
4
-
5
3
import scala .reflect .ClassTag
6
4
import scala .tasty .constants .Constant
7
5
import scala .tasty .modifiers .Modifier
Original file line number Diff line number Diff line change
1
+ package dotty .tools .dotc .tasty .internal
2
+
3
+ import dotty .tools .dotc .core .{NameKinds , Names }
4
+
5
+ import scala .tasty .names
6
+
7
+ object PossiblySignedName {
8
+
9
+ def apply (name : Names .TermName ): names.PossiblySignedName =
10
+ if (name.is(NameKinds .SignedName )) SignedName (name)
11
+ else TermName (name)
12
+
13
+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object Term {
25
25
def unapplySelect (arg : Impl ): Option [trees.Select .Data ] = arg.tree match {
26
26
case id@ Trees .Select (qual, name : Names .TermName ) if id.isTerm =>
27
27
implicit val ctx : Context = arg.ctx
28
- Some (Term (qual), TermName (name)) // FIXME PossiblySignedName
28
+ Some (Term (qual), PossiblySignedName (name))
29
29
case _ => None
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments