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

Function reportFlowControlError

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

Source from the content-addressed store, hash-verified

70157 return ts.isAccessExpression(invokedExpression) ? ts.skipParentheses(invokedExpression.expression) : undefined;
70158 }
70159 function reportFlowControlError(node) {
70160 var block = ts.findAncestor(node, ts.isFunctionOrModuleBlock);
70161 var sourceFile = ts.getSourceFileOfNode(node);
70162 var span = ts.getSpanOfTokenAtPosition(sourceFile, block.statements.pos);
70163 diagnostics.add(ts.createFileDiagnostic(sourceFile, span.start, span.length, ts.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis));
70164 }
70165 function isReachableFlowNode(flow) {
70166 var result = isReachableFlowNodeWorker(flow, /*noCacheCheck*/ false);
70167 lastFlowNode = flow;

Callers 1

getTypeAtFlowNodeFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…