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

Function isExecutableStatement

test/fixtures/snapshot/typescript.js:47730–47735  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

47728 }
47729 // As opposed to a pure declaration like an `interface`
47730 function isExecutableStatement(s) {
47731 // Don't remove statements that can validly be used before they appear.
47732 return !ts.isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !ts.isEnumDeclaration(s) &&
47733 // `var x;` may declare a variable used above
47734 !(ts.isVariableStatement(s) && !(ts.getCombinedNodeFlags(s) & (1 /* NodeFlags.Let */ | 2 /* NodeFlags.Const */)) && s.declarationList.declarations.some(function (d) { return !d.initializer; }));
47735 }
47736 function isPurelyTypeDeclaration(s) {
47737 switch (s.kind) {
47738 case 258 /* SyntaxKind.InterfaceDeclaration */:

Callers 1

eachUnreachableRangeFunction · 0.85

Calls 2

isPurelyTypeDeclarationFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected