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

Function buildFunctions

docs/tests/v2/es6/js/sanddance.js:130899–130908  ·  view source on GitHub ↗
(codegen)

Source from the content-addressed store, hash-verified

130897// Build expression function registry
130898
130899function buildFunctions(codegen) {
130900 const fn = (0, _vegaExpression.functions)(codegen);
130901 eventFunctions.forEach(name => fn[name] = eventPrefix + name);
130902
130903 for (let name in functionContext) {
130904 fn[name] = thisPrefix + name;
130905 }
130906
130907 return fn;
130908} // Register an expression function
130909
130910
130911function expressionFunction(name, fn, visitor) {

Callers

nothing calls this directly

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected