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

Method runExpression

docs/app/js/sanddance-app.js:6299–6314  ·  view source on GitHub ↗
(datum, ex)

Source from the content-addressed store, hash-verified

6297 }
6298 }
6299 runExpression(datum, ex) {
6300 if (ex.name == null) {
6301 //run on all columns
6302 const group = {
6303 expressions: this.columns.map((column, i)=>{
6304 const ex2 = Object.assign(Object.assign({}, ex), {
6305 column,
6306 name: column.name
6307 });
6308 if (i) ex2.clause = "||";
6309 return ex2;
6310 })
6311 };
6312 return this.runGroup(datum, group);
6313 } else return this.runExpressionOnColumn(datum, ex);
6314 }
6315 runGroup(datum, group) {
6316 let accumulator = this.runExpression(datum, group.expressions[0]);
6317 for(let i = 1; i < group.expressions.length; i++){

Callers 1

runGroupMethod · 0.95

Calls 2

runGroupMethod · 0.95
runExpressionOnColumnMethod · 0.95

Tested by

no test coverage detected