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

Function isBlockLike

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

Source from the content-addressed store, hash-verified

161663 return true;
161664 }
161665 function isBlockLike(node) {
161666 switch (node.kind) {
161667 case 235 /* SyntaxKind.Block */:
161668 case 305 /* SyntaxKind.SourceFile */:
161669 case 262 /* SyntaxKind.ModuleBlock */:
161670 case 289 /* SyntaxKind.CaseClause */:
161671 return true;
161672 default:
161673 return false;
161674 }
161675 }
161676 function isInJSXContent(node) {
161677 return isStringLiteralJsxAttribute(node) ||
161678 (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node) || ts.isJsxFragment(node)) && (ts.isJsxElement(node.parent) || ts.isJsxFragment(node.parent));

Callers 2

getRangeToExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected