We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1466ba5 commit 28da1c5Copy full SHA for 28da1c5
src/compiler/utilities.ts
@@ -10346,6 +10346,11 @@ export function isInfinityOrNaNString(name: string | __String): boolean {
10346
return name === "Infinity" || name === "-Infinity" || name === "NaN";
10347
}
10348
10349
+/** @internal */
10350
+export function isCatchClauseVariableDeclaration(node: Node) {
10351
+ return node.kind === SyntaxKind.VariableDeclaration && node.parent.kind === SyntaxKind.CatchClause;
10352
+}
10353
+
10354
/** @internal */
10355
export function isFunctionExpressionOrArrowFunction(node: Node): node is FunctionExpression | ArrowFunction {
10356
return node.kind === SyntaxKind.FunctionExpression || node.kind === SyntaxKind.ArrowFunction;
0 commit comments