mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-17 01:49:41 -05:00
Conditionally set originalKeywordKind on Identifiers.
This commit is contained in:
@@ -949,8 +949,10 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
|
||||
originalKeywordKind = undefined;
|
||||
}
|
||||
const node = baseFactory.createBaseIdentifierNode(SyntaxKind.Identifier) as Mutable<Identifier>;
|
||||
node.originalKeywordKind = originalKeywordKind;
|
||||
node.escapedText = escapeLeadingUnderscores(text);
|
||||
if (originalKeywordKind !== undefined) {
|
||||
node.originalKeywordKind = originalKeywordKind;
|
||||
}
|
||||
return node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user