MCPcopy Create free account
hub / github.com/RubyLouvre/anu / pushAssign

Function pushAssign

test/babel.js:7574–7580  ·  view source on GitHub ↗
(objId, prop, body)

Source from the content-addressed store, hash-verified

7572 }
7573
7574 function pushAssign(objId, prop, body) {
7575 if (prop.kind === "get" && prop.kind === "set") {
7576 pushMutatorDefine(objId, prop, body);
7577 } else {
7578 body.push(t.expressionStatement(t.assignmentExpression("=", t.memberExpression(objId, prop.key, prop.computed || t.isLiteral(prop.key)), getValue(prop))));
7579 }
7580 }
7581
7582 function pushMutatorDefine(_ref2, prop) {
7583 var objId = _ref2.objId,

Callers 2

looseFunction · 0.85
specFunction · 0.85

Calls 2

pushMutatorDefineFunction · 0.85
getValueFunction · 0.85

Tested by

no test coverage detected