MCPcopy Create free account
hub / github.com/corbanbrook/dsp.js / transformForExpression

Function transformForExpression

examples/js/processing.js:11540–11551  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

11538 };
11539
11540 function transformForExpression(expr) {
11541 var content;
11542 if(/\bin\b/.test(expr)) {
11543 content = expr.substring(1, expr.length - 1).split(/\bin\b/g);
11544 return new AstForInExpression( transformStatement(trim(content[0])),
11545 transformExpression(content[1]));
11546 } else {
11547 content = expr.substring(1, expr.length - 1).split(";");
11548 return new AstForExpression( transformStatement(trim(content[0])),
11549 transformExpression(content[1]), transformExpression(content[2]));
11550 }
11551 }
11552
11553 function AstInnerInterface(name) {
11554 this.name = name;

Callers 1

parseProcessingFunction · 0.85

Calls 2

transformStatementFunction · 0.85
trimFunction · 0.85

Tested by

no test coverage detected