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

Function parseMerge

docs/app/js/sanddance-app.js:150034–150044  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

150032 return i;
150033}
150034function parseMerge(s) {
150035 const output = [], n = s.length;
150036 let start = 0, i = 0;
150037 while(i < n){
150038 i = find(s, i, COMMA, LBRACK + LBRACE, RBRACK + RBRACE);
150039 output.push(s.substring(start, i).trim());
150040 start = ++i;
150041 }
150042 if (output.length === 0) throw "Empty event selector: " + s;
150043 return output;
150044}
150045function parseSelector(s) {
150046 return s[0] === "[" ? parseBetween(s) : parseStream(s);
150047}

Callers 2

eventSelectorFunction · 0.70
parseBetweenFunction · 0.70

Calls 1

findFunction · 0.70

Tested by

no test coverage detected