@@ -66,30 +66,30 @@ class Namer { typer: Typer =>
66
66
/** A partial map from unexpanded member and pattern defs and to their expansions.
67
67
* Populated during enterSyms, emptied during typer.
68
68
*/
69
- // lazy val expandedTree = new mutable.AnyRefMap [DefTree, Tree]
69
+ // lazy val expandedTree = new mutable.HashMap [DefTree, Tree]
70
70
/* {
71
- override def default(tree: DefTree) = tree // can't have defaults on AnyRefMaps :-(
71
+ override def default(tree: DefTree) = tree // can't have defaults on HashMaps :-(
72
72
}*/
73
73
74
74
/** A map from expanded MemberDef, PatDef or Import trees to their symbols.
75
75
* Populated during enterSyms, emptied at the point a typed tree
76
76
* with the same symbol is created (this can be when the symbol is completed
77
77
* or at the latest when the tree is typechecked.
78
78
*/
79
- // lazy val symOfTree = new mutable.AnyRefMap [Tree, Symbol]
79
+ // lazy val symOfTree = new mutable.HashMap [Tree, Symbol]
80
80
81
81
/** A map from expanded trees to their typed versions.
82
82
* Populated when trees are typechecked during completion (using method typedAhead).
83
83
*/
84
- // lazy val typedTree = new mutable.AnyRefMap [Tree, tpd.Tree]
84
+ // lazy val typedTree = new mutable.HashMap [Tree, tpd.Tree]
85
85
86
86
/** A map from method symbols to nested typers.
87
87
* Populated when methods are completed. Emptied when they are typechecked.
88
88
* The nested typer contains new versions of the four maps above including this
89
89
* one, so that trees that are shared between different DefDefs can be independently
90
90
* used as indices. It also contains a scope that contains nested parameters.
91
91
*/
92
- lazy val nestedTyper : mutable.AnyRefMap [Symbol , Typer ] = new mutable.AnyRefMap
92
+ lazy val nestedTyper : mutable.HashMap [Symbol , Typer ] = new mutable.HashMap
93
93
94
94
/** We are entering symbols coming from a SourceLoader */
95
95
private var lateCompile = false
0 commit comments