MCPcopy
hub / github.com/gpujs/gpu.js / castValueToInteger

Method castValueToInteger

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

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

(ast, retArr)

Source from the content-addressed store, hash-verified

569 * @return {String[]}
570 */
571 castValueToInteger(ast, retArr) {
572 this.pushState('casting-to-integer');
573 retArr.push('int(');
574 this.astGeneric(ast, retArr);
575 retArr.push(')');
576 this.popState('casting-to-integer');
577 return retArr;
578 }
579
580 /**
581 *

Calls 3

astGenericMethod · 0.80
pushStateMethod · 0.45
popStateMethod · 0.45

Tested by

no test coverage detected