MCPcopy Index your code
hub / github.com/microsoft/SandDance / buildFunctions

Function buildFunctions

docs/app/js/sanddance-app.js:143250–143256  ·  view source on GitHub ↗
(codegen)

Source from the content-addressed store, hash-verified

143248}; // export code generator
143249const codeGenerator = (0, _vegaExpression.codegenExpression)(codegenParams); // Build expression function registry
143250function buildFunctions(codegen) {
143251 const fn = (0, _vegaExpression.functions)(codegen);
143252 eventFunctions.forEach((name)=>fn[name] = eventPrefix + name);
143253 for(const name1 in functionContext)fn[name1] = thisPrefix + name1;
143254 (0, _vegaUtil.extend)(fn, internalScaleFunctions(codegen, functionContext, astVisitors));
143255 return fn;
143256} // Register an expression function
143257function expressionFunction(name, fn, visitor) {
143258 if (arguments.length === 1) return functionContext[name];
143259 // register with the functionContext

Callers

nothing calls this directly

Calls 2

internalScaleFunctionsFunction · 0.70
forEachMethod · 0.45

Tested by

no test coverage detected