We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cfb00f commit cdb202dCopy full SHA for cdb202d
compiler/src/dotty/tools/dotc/core/tasty/DottyUnpickler.scala
@@ -54,7 +54,11 @@ class DottyUnpickler(bytes: Array[Byte]) extends ClassfileParser.Embedded with t
54
private[this] var ids: Array[String] = null
55
56
override def mightContain(id: String)(implicit ctx: Context): Boolean = {
57
- if (ids == null) ids = unpickler.nameAtRef.contents.toArray.map(_.toString).sorted
+ if (ids == null)
58
+ ids =
59
+ unpickler.nameAtRef.contents.toArray.collect {
60
+ case name: SimpleName => name.toString
61
+ }.sorted
62
ids.binarySearch(id) >= 0
63
}
64
0 commit comments