MCPcopy Index your code
hub / github.com/gpujs/gpu.js / castValueToFloat

Method castValueToFloat

src/backend/web-gl/function-node.js:586–593  ·  view source on GitHub ↗

* * @param {Object} ast * @param {Array} retArr * @return {String[]}

(ast, retArr)

Source from the content-addressed store, hash-verified

584 * @return {String[]}
585 */
586 castValueToFloat(ast, retArr) {
587 this.pushState('casting-to-float');
588 retArr.push('float(');
589 this.astGeneric(ast, retArr);
590 retArr.push(')');
591 this.popState('casting-to-float');
592 return retArr;
593 }
594
595 /**
596 * @desc Parses the abstract syntax tree for *identifier* expression

Callers 4

astBinaryExpressionMethod · 0.95
astSwitchStatementMethod · 0.95
astCallExpressionMethod · 0.95

Calls 3

astGenericMethod · 0.80
pushStateMethod · 0.45
popStateMethod · 0.45

Tested by

no test coverage detected