* Are parenthesis needed? * @private
(node)
| 27 | * @private |
| 28 | */ |
| 29 | function needParenthesis (node) { |
| 30 | // TODO: maybe make a method on the nodes which tells whether they need parenthesis? |
| 31 | return !( |
| 32 | isAccessorNode(node) || |
| 33 | isArrayNode(node) || |
| 34 | isConstantNode(node) || |
| 35 | isFunctionNode(node) || |
| 36 | isObjectNode(node) || |
| 37 | isParenthesisNode(node) || |
| 38 | isSymbolNode(node)) |
| 39 | } |
| 40 | |
| 41 | class AccessorNode extends Node { |
| 42 | /** |
no test coverage detected
searching dependent graphs…