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

Function getControlFlowContainer

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

Source from the content-addressed store, hash-verified

71424 return getNonMissingTypeOfSymbol(symbol);
71425 }
71426 function getControlFlowContainer(node) {
71427 return ts.findAncestor(node.parent, function (node) {
71428 return ts.isFunctionLike(node) && !ts.getImmediatelyInvokedFunctionExpression(node) ||
71429 node.kind === 262 /* SyntaxKind.ModuleBlock */ ||
71430 node.kind === 305 /* SyntaxKind.SourceFile */ ||
71431 node.kind === 167 /* SyntaxKind.PropertyDeclaration */;
71432 });
71433 }
71434 // Check if a parameter or catch variable is assigned anywhere
71435 function isSymbolAssigned(symbol) {
71436 if (!symbol.valueDeclaration) {

Callers 2

checkIdentifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…