mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixes issues with emit for cloned identifiers
This commit is contained in:
@@ -127,7 +127,7 @@ namespace ts {
|
||||
|
||||
export function createIdentifier(text: string, location?: TextRange): Identifier {
|
||||
const node = <Identifier>createNode(SyntaxKind.Identifier, location);
|
||||
node.text = text;
|
||||
node.text = escapeIdentifier(text);
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
@@ -2349,7 +2349,7 @@ const _super = (function (geti, seti) {
|
||||
return getGeneratedIdentifier(node);
|
||||
}
|
||||
else if (nodeIsSynthesized(node) || !node.parent) {
|
||||
return node.text;
|
||||
return unescapeIdentifier(node.text);
|
||||
}
|
||||
}
|
||||
else if (isLiteralExpression(node) && (nodeIsSynthesized(node) || !node.parent)) {
|
||||
|
||||
Reference in New Issue
Block a user