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

Function MemberExpression

tools/eslint-rules/no-keyobject-public-accessors.js:266–280  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

264 },
265
266 MemberExpression(node) {
267 const property = getPropertyName(node);
268 const replacement = accessors.get(property);
269 if (replacement === undefined) return;
270 if (!isKnownKeyObject(node.object)) return;
271
272 context.report({
273 node: node.property,
274 messageId: 'noPublicAccessor',
275 data: {
276 property,
277 replacement,
278 },
279 });
280 },
281
282 };
283 },

Callers

nothing calls this directly

Calls 4

isKnownKeyObjectFunction · 0.85
getPropertyNameFunction · 0.70
getMethod · 0.65
reportMethod · 0.45

Tested by

no test coverage detected