MCPcopy Index your code
hub / github.com/nodejs/node / checkWhileStatement

Function checkWhileStatement

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

Source from the content-addressed store, hash-verified

82800 checkTruthinessExpression(node.expression);
82801 }
82802 function checkWhileStatement(node) {
82803 // Grammar checking
82804 checkGrammarStatementInAmbientContext(node);
82805 checkTruthinessExpression(node.expression);
82806 checkSourceElement(node.statement);
82807 }
82808 function checkTruthinessOfType(type, node) {
82809 if (type.flags & 16384 /* TypeFlags.Void */) {
82810 error(node, ts.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness);

Callers 1

checkSourceElementWorkerFunction · 0.85

Calls 3

checkSourceElementFunction · 0.85

Tested by

no test coverage detected