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

Function isEmptyBlock

test/fixtures/snapshot/typescript.js:114284–114287  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

114282 return 0;
114283 }
114284 function isEmptyBlock(block) {
114285 return block.statements.length === 0
114286 && (!currentSourceFile || ts.rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile));
114287 }
114288 function skipSynthesizedParentheses(node) {
114289 while (node.kind === 212 /* SyntaxKind.ParenthesizedExpression */ && ts.nodeIsSynthesized(node)) {
114290 node = node.expression;

Callers 2

emitBlockFunction · 0.85
emitModuleBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected