MCPcopy Create free account
hub / github.com/nodejs/node / checkThrowStatement

Function checkThrowStatement

test/fixtures/snapshot/typescript.js:83759–83769  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

83757 checkSourceElement(node.statement);
83758 }
83759 function checkThrowStatement(node) {
83760 // Grammar checking
83761 if (!checkGrammarStatementInAmbientContext(node)) {
83762 if (ts.isIdentifier(node.expression) && !node.expression.escapedText) {
83763 grammarErrorAfterFirstToken(node, ts.Diagnostics.Line_break_not_permitted_here);
83764 }
83765 }
83766 if (node.expression) {
83767 checkExpression(node.expression);
83768 }
83769 }
83770 function checkTryStatement(node) {
83771 // Grammar checking
83772 checkGrammarStatementInAmbientContext(node);

Callers 1

checkSourceElementWorkerFunction · 0.85

Calls 3

checkExpressionFunction · 0.70

Tested by

no test coverage detected