MCPcopy Create free account
hub / github.com/microsoft/SandDance / exprRef

Function exprRef

docs/app/js/sanddance-app.js:149681–149687  ·  view source on GitHub ↗
(code, name)

Source from the content-addressed store, hash-verified

149679 return !spec || !(0, _vegaUtil.isObject)(spec) ? spec : this.signalRef(spec.signal || propertyLambda(spec));
149680 },
149681 exprRef (code, name) {
149682 const params = {
149683 expr: (0, _vegaFunctions.parseExpression)(code, this)
149684 };
149685 if (name) params.expr.$name = name;
149686 return ref(this.add(Expression(params)));
149687 },
149688 addBinding (name, bind) {
149689 if (!this.bindings) (0, _vegaUtil.error)("Nested signals do not support binding: " + (0, _vegaUtil.stringValue)(name));
149690 this.bindings.push((0, _vegaUtil.extend)({

Callers

nothing calls this directly

Calls 3

refFunction · 0.70
ExpressionFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected