TODOs for repeated substitution

This commit is contained in:
Andrew Casey
2017-09-27 18:08:35 -07:00
parent e6bfce193c
commit 386e76543a
3 changed files with 17 additions and 3 deletions

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);
}
}
}