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

Function shouldHoistForInitializer

test/fixtures/snapshot/typescript.js:106803–106806  ·  view source on GitHub ↗

* Determines whether to hoist the initializer of a ForStatement, ForInStatement, or * ForOfStatement. * * @param node The node to test.

(node)

Source from the content-addressed store, hash-verified

106801 * @param node The node to test.
106802 */
106803 function shouldHoistForInitializer(node) {
106804 return ts.isVariableDeclarationList(node)
106805 && shouldHoistVariableDeclarationList(node);
106806 }
106807 /**
106808 * Visits the initializer of a ForStatement, ForInStatement, or ForOfStatement
106809 *

Callers 1

visitForInitializerFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…