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

Function isHoistedVariableStatement

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

Source from the content-addressed store, hash-verified

15482 && !node.initializer;
15483 }
15484 function isHoistedVariableStatement(node) {
15485 return isCustomPrologue(node)
15486 && ts.isVariableStatement(node)
15487 && ts.every(node.declarationList.declarations, isHoistedVariable);
15488 }
15489 ts.isHoistedVariableStatement = isHoistedVariableStatement;
15490 function getLeadingCommentRangesOfNode(node, sourceFileOfNode) {
15491 return node.kind !== 11 /* SyntaxKind.JsxText */ ? ts.getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : undefined;

Callers

nothing calls this directly

Calls 2

isCustomPrologueFunction · 0.85
everyMethod · 0.80

Tested by

no test coverage detected