PR Feedback

This commit is contained in:
Ron Buckton 2016-04-22 10:56:48 -07:00
parent 60d4d0ae54
commit 0da185da19
2 changed files with 1 additions and 4 deletions

View File

@ -2174,10 +2174,6 @@ const _super = (function (geti, seti) {
}
function tryEmitSubstitute(node: Node, emitNode: (node: Node) => void, isExpression: boolean) {
if ((<any>node).text === "localizedDiagnosticMessages" && isExpression) {
debugger;
}
if (isSubstitutionEnabled(node) && (getNodeEmitFlags(node) & NodeEmitFlags.NoSubstitution) === 0) {
const substitute = onSubstituteNode(node, isExpression);
if (substitute !== node) {

View File

@ -405,6 +405,7 @@ namespace ts {
location: TextRange,
emitTempVariableAssignment: (value: Expression, location: TextRange) => Identifier,
visitor?: (node: Node) => VisitResult<Node>) {
if (isIdentifier(value) && reuseIdentifierExpressions) {
return value;
}