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

Function shouldConvertInitializerOfForStatement

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

Source from the content-addressed store, hash-verified

100376 return (resolver.getNodeCheckFlags(node) & 131072 /* NodeCheckFlags.ContainsCapturedBlockScopeBinding */) !== 0;
100377 }
100378 function shouldConvertInitializerOfForStatement(node) {
100379 return ts.isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);
100380 }
100381 function shouldConvertConditionOfForStatement(node) {
100382 return ts.isForStatement(node) && !!node.condition && shouldConvertPartOfIterationStatement(node.condition);
100383 }

Tested by

no test coverage detected