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