@@ -4414,8 +4414,7 @@ declare namespace ts {
4414
4414
ReachabilityCheckFlags = 768,
4415
4415
ReachabilityAndEmitFlags = 2816,
4416
4416
ContextFlags = 50720768,
4417
- TypeExcludesFlags = 40960,
4418
- IdentifierIsInJSDocNamespace = 2048
4417
+ TypeExcludesFlags = 40960
4419
4418
}
4420
4419
enum ModifierFlags {
4421
4420
None = 0,
@@ -4585,14 +4584,16 @@ declare namespace ts {
4585
4584
* Text of identifier, but if the identifier begins with two underscores, this will begin with three.
4586
4585
*/
4587
4586
readonly escapedText: __String;
4588
- /** @deprecated Use `idKeyword(identifier)` instead. */
4589
- readonly originalKeywordKind?: SyntaxKind;
4590
- /** @deprecated Use `identifier.flags & NodeFlags.IdentifierIsInJSDocNamespace` instead. */
4591
- readonly isInJSDocNamespace?: boolean;
4592
4587
}
4593
4588
interface Identifier {
4594
4589
readonly text: string;
4595
4590
}
4591
+ interface Identifier {
4592
+ /** @deprecated Use `idKeyword(identifier)` instead. */
4593
+ readonly originalKeywordKind?: SyntaxKind;
4594
+ /** @deprecated Use `.parent` or the surrounding context to determine this instead. */
4595
+ readonly isInJSDocNamespace?: boolean;
4596
+ }
4596
4597
interface TransientIdentifier extends Identifier {
4597
4598
resolvedSymbol: Symbol;
4598
4599
}
@@ -8605,7 +8606,7 @@ declare namespace ts {
8605
8606
* If the text of an Identifier matches a keyword (including contextual and TypeScript-specific keywords), returns the
8606
8607
* SyntaxKind for the matching keyword.
8607
8608
*/
8608
- function idKeyword (node: Identifier): SyntaxKind | undefined;
8609
+ function identifierToKeywordKind (node: Identifier): KeywordSyntaxKind | undefined;
8609
8610
function symbolName(symbol: Symbol): string;
8610
8611
function getNameOfJSDocTypedef(declaration: JSDocTypedefTag): Identifier | PrivateIdentifier | undefined;
8611
8612
function getNameOfDeclaration(declaration: Declaration | Expression | undefined): DeclarationName | undefined;
0 commit comments