* @constructor ParenthesisNode * @extends {Node} * A parenthesis node describes manual parenthesis from the user input * @param {Node} content * @extends {Node}
(content)
| 16 | * @extends {Node} |
| 17 | */ |
| 18 | constructor (content) { |
| 19 | super() |
| 20 | // validate input |
| 21 | if (!isNode(content)) { |
| 22 | throw new TypeError('Node expected for parameter "content"') |
| 23 | } |
| 24 | |
| 25 | this.content = content |
| 26 | } |
| 27 | |
| 28 | static name = name |
| 29 | get type () { return name } |