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

Function testInspectorUsage

tools/eslint-rules/inspector-check.js:25–33  ·  view source on GitHub ↗
(context, node)

Source from the content-addressed store, hash-verified

23 let hasInspectorCheck = false;
24
25 function testInspectorUsage(context, node) {
26 if (utils.isRequired(node, ['inspector'])) {
27 missingCheckNodes.push(node);
28 }
29
30 if (utils.isCommonModule(node)) {
31 commonModuleNode = node;
32 }
33 }
34
35 function checkMemberExpression(context, node) {
36 if (utils.usesCommonProperty(node, ['skipIfInspectorDisabled'])) {

Callers 1

createFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected