TODOs for repeated substitution

This commit is contained in:
Andrew Casey committed 2017-09-27 18:08:35 -07:00
1 parent e6bfce193c
commit 386e76543a
3 files changed
+17 -3

No files matched your search

+3 -3
View File
@@ -1382,9 +1382,9 @@ namespace ts.refactor.extractSymbol {
if (symbolId) {
for (let i = 0; i < scopes.length; i++) {
// push substitution from map<symbolId, subst> to map<nodeId, subst> to simplify rewriting
const substitition = substitutionsPerScope[i].get(symbolId);
if (substitition) {
usagesPerScope[i].substitutions.set(getNodeId(n).toString(), substitition);
const substitution = substitutionsPerScope[i].get(symbolId);
if (substitution) {
usagesPerScope[i].substitutions.set(getNodeId(n).toString(), substitution);
}
}
}