MCPcopy
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:6237–6252  ·  view source on GitHub ↗
(search, columns)

Source from the content-addressed store, hash-verified

6235}
6236class Exec {
6237 constructor(search, columns){
6238 this.columns = columns;
6239 this.groups = (0, _group.ensureSearchExpressionGroupArray)(search).map((g)=>{
6240 const expressions = g.expressions.filter(Boolean);
6241 expressions.forEach((ex)=>{
6242 ex.column = this.getColumn(ex.name);
6243 ex.valueBool = valueToBoolean(ex.value);
6244 ex.valueLow = valueToString(ex.value).toLocaleLowerCase();
6245 ex.stringOperation = isStringOperation(ex);
6246 });
6247 const group = Object.assign(Object.assign({}, g), {
6248 expressions
6249 });
6250 return group;
6251 });
6252 }
6253 getColumn(name) {
6254 for(let i = 0; i < this.columns.length; i++){
6255 if (this.columns[i].name == name) return this.columns[i];

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected