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

Function checkRootNode

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

Source from the content-addressed store, hash-verified

160278 return node;
160279 }
160280 function checkRootNode(node) {
160281 if (ts.isIdentifier(ts.isExpressionStatement(node) ? node.expression : node)) {
160282 return [ts.createDiagnosticForNode(node, Messages.cannotExtractIdentifier)];
160283 }
160284 return undefined;
160285 }
160286 function checkForStaticContext(nodeToCheck, containingClass) {
160287 var current = nodeToCheck;
160288 while (current !== containingClass) {

Callers 1

getRangeToExtractFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected