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

Method constructor

docs/tests/v2/es6/js/sanddance.js:153058–153069  ·  view source on GitHub ↗
(search, columns)

Source from the content-addressed store, hash-verified

153056
153057class Exec {
153058 constructor(search, columns) {
153059 this.columns = columns;
153060 this.groups = VegaDeckGl.util.clone((0, _group.ensureSearchExpressionGroupArray)(search));
153061 this.groups.forEach(group => {
153062 group.expressions.forEach(ex => {
153063 ex.column = this.getColumn(ex.name);
153064 ex.valueBool = valueToBoolean(ex.value);
153065 ex.valueLow = valueToString(ex.value).toLocaleLowerCase();
153066 ex.stringOperation = isStringOperation(ex);
153067 });
153068 });
153069 }
153070
153071 getColumn(name) {
153072 for (let i = 0; i < this.columns.length; i++) {

Callers

nothing calls this directly

Calls 6

getColumnMethod · 0.95
valueToBooleanFunction · 0.70
valueToStringFunction · 0.70
isStringOperationFunction · 0.70
cloneMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected