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