mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
Fixes issues with emit for cloned identifiers
This commit is contained in:
parent
913545e9a7
commit
28499dd8ef
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user