File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/ast 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1094,12 +1094,12 @@ object tpd extends Trees.Instance[Type] with TypedTreeInfo {
1094
1094
* and falls back to it after `MaxRecursionLimit` recursions.
1095
1095
* Before that it uses a simpler method that uses stackspace
1096
1096
* instead of heap.
1097
- * Note `op` is duplicated in the generatee code, so it should be
1098
- * kept small
1097
+ * Note `op` is duplicated in the generated code, so it should be
1098
+ * kept small.
1099
1099
*/
1100
1100
inline def mapInline (inline op : Tree => Tree ): List [Tree ] =
1101
1101
def recur (trees : List [Tree ], count : Int ): List [Tree ] =
1102
- if count > 1000 then
1102
+ if count > MapRecursionLimit then
1103
1103
// use a slower implementation that avoids stack overflows
1104
1104
flatten(trees.mapConserve(op))
1105
1105
else trees match
You can’t perform that action at this time.
0 commit comments