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

Function isAssignmentTarget

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

Source from the content-addressed store, hash-verified

17106 // an assignment target. Examples include 'a = xxx', '{ p: a } = xxx', '[{ a }] = xxx'.
17107 // (Note that `p` is not a target in the above examples, only `a`.)
17108 function isAssignmentTarget(node) {
17109 return getAssignmentTargetKind(node) !== 0 /* AssignmentKind.None */;
17110 }
17111 ts.isAssignmentTarget = isAssignmentTarget;
17112 /**
17113 * Indicates whether a node could contain a `var` VariableDeclarationList that contributes to

Callers

nothing calls this directly

Calls 1

getAssignmentTargetKindFunction · 0.85

Tested by

no test coverage detected