Skip to content

Commit 9f4dac2

Browse files
committed
Collect references as well as definitions for computing ids of a tree
1 parent cdb202d commit 9f4dac2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ object Symbols {
667667
case None =>
668668
val idSet = mutable.SortedSet[String]()
669669
tree.foreachSubTree {
670-
case tree: tpd.RefTree => idSet += tree.name.toString
670+
case tree: tpd.NameTree => idSet += tree.name.toString
671671
case _ =>
672672
}
673673
val ids = idSet.toArray

compiler/src/dotty/tools/dotc/core/tasty/DottyUnpickler.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import util.Positions._
1010
import util.{SourceFile, NoSource}
1111
import Annotations.Annotation
1212
import classfile.ClassfileParser
13+
import Names.SimpleName
1314

1415
object DottyUnpickler {
1516

0 commit comments

Comments
 (0)