MCPcopy
hub / github.com/josdejong/mathjs / constructor

Method constructor

src/expression/node/ParenthesisNode.js:18–26  ·  view source on GitHub ↗

* @constructor ParenthesisNode * @extends {Node} * A parenthesis node describes manual parenthesis from the user input * @param {Node} content * @extends {Node}

(content)

Source from the content-addressed store, hash-verified

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 }

Callers

nothing calls this directly

Calls 1

isNodeFunction · 0.90

Tested by

no test coverage detected