mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Add 'name' property to Identifier (#17329)
* Add 'name' property to Identifier * Rename to unescapedText * Rename 'id.text' to 'id.escapedText' * Rename 'id.unescapedText' to 'id.text' * Make escapeIdentifier and unescapeIdentifier do nothing
This commit is contained in:
@@ -2049,7 +2049,7 @@ namespace ts {
|
||||
for (const property of getPropertyAssignment(jsonSourceFile.jsonObject, specKey)) {
|
||||
if (isArrayLiteralExpression(property.initializer)) {
|
||||
for (const element of property.initializer.elements) {
|
||||
if (element.kind === SyntaxKind.StringLiteral && (<StringLiteral>element).text === spec) {
|
||||
if (isStringLiteral(element) && element.text === spec) {
|
||||
return createDiagnosticForNodeInSourceFile(jsonSourceFile, element, message, spec);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user