* @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)
| 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 |