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 11package dotty .tools .dotc .tasty
22
3- import dotty .tools .dotc .core .Contexts .Context
4-
53import scala .reflect .ClassTag
64import scala .tasty .constants .Constant
75import 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 {
2525 def unapplySelect (arg : Impl ): Option [trees.Select .Data ] = arg.tree match {
2626 case id@ Trees .Select (qual, name : Names .TermName ) if id.isTerm =>
2727 implicit val ctx : Context = arg.ctx
28- Some (Term (qual), TermName (name)) // FIXME PossiblySignedName
28+ Some (Term (qual), PossiblySignedName (name))
2929 case _ => None
3030 }
3131
You can’t perform that action at this time.
0 commit comments