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

Method astVariableDeclarator

src/backend/function-node.js:1109–1116  ·  view source on GitHub ↗

* @desc Parses the abstract syntax tree for *Variable Declarator* * @param {Object} iVarDecNode - An ast Node * @param {Array} retArr - return array string * @returns {Array} the append retArr

(iVarDecNode, retArr)

Source from the content-addressed store, hash-verified

1107 * @returns {Array} the append retArr
1108 */
1109 astVariableDeclarator(iVarDecNode, retArr) {
1110 this.astGeneric(iVarDecNode.id, retArr);
1111 if (iVarDecNode.init !== null) {
1112 retArr.push('=');
1113 this.astGeneric(iVarDecNode.init, retArr);
1114 }
1115 return retArr;
1116 }
1117 astThisExpression(ast, retArr) {
1118 return retArr;
1119 }

Callers 1

astGenericMethod · 0.95

Calls 1

astGenericMethod · 0.95

Tested by

no test coverage detected