MCPcopy Index your code
hub / github.com/nodejs/node / 'Program:exit'

Function 'Program:exit'

tools/eslint-rules/required-modules.js:63–76  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

61
62 const rules = {
63 'Program:exit'(node) {
64 if (foundModules.length < requiredModules.length) {
65 const missingModules = requiredModules.filter(
66 ([module]) => foundModules.indexOf(module) === -1,
67 );
68 missingModules.forEach(([moduleName]) => {
69 context.report({
70 node: node.body[0] ?? node,
71 message: 'Mandatory module "{{moduleName}}" must be loaded.',
72 data: { moduleName: moduleName },
73 });
74 });
75 }
76 },
77 };
78
79 if (isESM) {

Callers

nothing calls this directly

Calls 4

filterMethod · 0.65
forEachMethod · 0.65
indexOfMethod · 0.45
reportMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…