Skip to content

Commit d3850c8

Browse files
committed
Revise qualified names
1. Fix problem in fullNameSeparated 2. Revise expandedName operations
1 parent 09ad855 commit d3850c8

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

compiler/src/dotty/tools/dotc/core/SymDenotations.scala

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ object SymDenotations {
107107
class SymDenotation private[SymDenotations] (
108108
symbol: Symbol,
109109
ownerIfExists: Symbol,
110-
initName: Name,
110+
final val name: Name,
111111
initFlags: FlagSet,
112112
initInfo: Type,
113113
initPrivateWithin: Symbol = NoSymbol) extends SingleDenotation(symbol) {
@@ -131,12 +131,6 @@ object SymDenotations {
131131
private[this] var myPrivateWithin: Symbol = initPrivateWithin
132132
private[this] var myAnnotations: List[Annotation] = Nil
133133

134-
/** The name of the symbol */
135-
def name = myName
136-
137-
/** Update the name; only called when unpickling top-level classes */
138-
def name_=(n: Name) = myName = n
139-
140134
/** The owner of the symbol; overridden in NoDenotation */
141135
def owner: Symbol = ownerIfExists
142136

@@ -1218,12 +1212,12 @@ object SymDenotations {
12181212
class ClassDenotation private[SymDenotations] (
12191213
symbol: Symbol,
12201214
ownerIfExists: Symbol,
1221-
initName: Name,
1215+
name: Name,
12221216
initFlags: FlagSet,
12231217
initInfo: Type,
12241218
initPrivateWithin: Symbol,
12251219
initRunId: RunId)
1226-
extends SymDenotation(symbol, ownerIfExists, initName, initFlags, initInfo, initPrivateWithin) {
1220+
extends SymDenotation(symbol, ownerIfExists, name, initFlags, initInfo, initPrivateWithin) {
12271221

12281222
import util.LRUCache
12291223

0 commit comments

Comments
 (0)