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

Function visitorDestructuringTarget

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

Source from the content-addressed store, hash-verified

94407 return visitor(node);
94408 }
94409 function visitorDestructuringTarget(node) {
94410 switch (node.kind) {
94411 case 205 /* SyntaxKind.ObjectLiteralExpression */:
94412 case 204 /* SyntaxKind.ArrayLiteralExpression */:
94413 return visitAssignmentPattern(node);
94414 default:
94415 return visitor(node);
94416 }
94417 }
94418 /**
94419 * If we visit a private name, this means it is an undeclared private name.
94420 * Replace it with an empty identifier to indicate a problem with the code,

Callers

nothing calls this directly

Calls 2

visitAssignmentPatternFunction · 0.85
visitorFunction · 0.70

Tested by

no test coverage detected