mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
fix(45417): show inlay hints for null and literal-like identifiers (#45426)
This commit is contained in:
@@ -225,10 +225,6 @@ namespace ts.classifier.v2020 {
|
||||
return (isQualifiedName(node.parent) && node.parent.right === node) || (isPropertyAccessExpression(node.parent) && node.parent.name === node);
|
||||
}
|
||||
|
||||
function isInfinityOrNaNString(name: __String): boolean {
|
||||
return name === "Infinity" || name === "NaN";
|
||||
}
|
||||
|
||||
const tokenFromDeclarationMapping = new Map<SyntaxKind, TokenType>([
|
||||
[SyntaxKind.VariableDeclaration, TokenType.variable],
|
||||
[SyntaxKind.Parameter, TokenType.parameter],
|
||||
|
||||
Reference in New Issue
Block a user