MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / AssignmentExpression

Function AssignmentExpression

src/client/sandbox.mjs:395–399  ·  view source on GitHub ↗
(node, ancestors)

Source from the content-addressed store, hash-verified

393 let found = false
394 walk.ancestor(ast, {
395 AssignmentExpression(node, ancestors) {
396 if (node.left.type != "Identifier" || node.left.name != name) return
397 for (let i = 2; i < ancestors.length; i++) if (/Statement|Declaration/.test(ancestors[i].type)) return
398 found = true
399 }
400 })
401 return found
402}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected