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

Method astUpdateExpression

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

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

(uNode, retArr)

Source from the content-addressed store, hash-verified

1165 * @returns {Array} the append retArr
1166 */
1167 astUpdateExpression(uNode, retArr) {
1168 if (uNode.prefix) {
1169 retArr.push(uNode.operator);
1170 this.astGeneric(uNode.argument, retArr);
1171 } else {
1172 this.astGeneric(uNode.argument, retArr);
1173 retArr.push(uNode.operator);
1174 }
1175
1176 return retArr;
1177 }
1178 /**
1179 * @desc Parses the abstract syntax tree for *Logical* Expression
1180 * @param {Object} logNode - An ast Node

Callers 1

astGenericMethod · 0.95

Calls 1

astGenericMethod · 0.95

Tested by

no test coverage detected