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

Function emitBindingOrAssignment

test/fixtures/snapshot/typescript.js:91068–91075  ·  view source on GitHub ↗
(target, value, location, original)

Source from the content-addressed store, hash-verified

91066 expressions = ts.append(expressions, expression);
91067 }
91068 function emitBindingOrAssignment(target, value, location, original) {
91069 ts.Debug.assertNode(target, createAssignmentCallback ? ts.isIdentifier : ts.isExpression);
91070 var expression = createAssignmentCallback
91071 ? createAssignmentCallback(target, value, location)
91072 : ts.setTextRange(context.factory.createAssignment(ts.visitNode(target, visitor, ts.isExpression), value), location);
91073 expression.original = original;
91074 emitExpression(expression);
91075 }
91076 }
91077 ts.flattenDestructuringAssignment = flattenDestructuringAssignment;
91078 function bindingOrAssignmentElementAssignsToName(element, escapedName) {

Callers 1

Calls 3

emitExpressionFunction · 0.85
appendMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…