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

Function isScope

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

Source from the content-addressed store, hash-verified

160524 return undefined;
160525 }
160526 function isScope(node) {
160527 return ts.isArrowFunction(node) ? ts.isFunctionBody(node.body) :
160528 ts.isFunctionLikeDeclaration(node) || ts.isSourceFile(node) || ts.isModuleBlock(node) || ts.isClassLike(node);
160529 }
160530 /**
160531 * Computes possible places we could extract the function into. For example,
160532 * you may be able to extract into a class method *or* local closure *or* namespace function,

Callers 2

collectEnclosingScopesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected