mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-14 19:16:17 -06:00
PR Feedback
This commit is contained in:
parent
60d4d0ae54
commit
0da185da19
@ -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) {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user