Skip to content

Commit 2a9f366

Browse files
committed
finalized whiteList
1 parent 8315f78 commit 2a9f366

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ import dotty.tools.dotc.core.Flags.AbstractOrTrait
6666
* whole-program analysis. However, the check is not modular in terms of project boundaries.
6767
*
6868
*/
69+
import Decorators.*
6970
class Objects(using Context @constructorOnly):
7071
val immutableHashSetBuider: Symbol = requiredClass("scala.collection.immutable.HashSetBuilder")
7172
val HashSetBuilder_rootNode: Symbol = immutableHashSetBuider.requiredValue("rootNode")
73+
74+
val whiteList = Set(HashSetBuilder_rootNode)
7275

7376
// ----------------------------- abstract domain -----------------------------
7477

@@ -1685,7 +1688,6 @@ class Objects(using Context @constructorOnly):
16851688
end if
16861689

16871690
// class body
1688-
val whiteList = Set(HashSetBuilder_rootNode)
16891691
tpl.body.foreach {
16901692
case vdef : ValDef if !vdef.symbol.is(Flags.Lazy) && !vdef.rhs.isEmpty =>
16911693
val sym = vdef.symbol

0 commit comments

Comments
 (0)