MCPcopy
hub / github.com/lebab/lebab / isAnyWhileStatement

Function isAnyWhileStatement

src/transform/let.js:88–91  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

86
87// True when dealing with any kind of while-loop
88function isAnyWhileStatement(node) {
89 return node.type === 'WhileStatement' ||
90 node.type === 'DoWhileStatement';
91}
92
93// Program node works almost like a function:
94// it hoists all variables which can be transformed to block-scoped let/const.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…