Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/autoNumeric/autoNumeric
/ createUnaryNode
Method
createUnaryNode
src/maths/ASTNode.js:55–62 ·
view source on GitHub ↗
(left)
Source
from the content-addressed store, hash-verified
53
}
54
55
static createUnaryNode(left) {
56
const
node =
new
ASTNode();
57
node.
type
=
'unaryMinus'
;
58
node.left = left;
59
node.right = null;
60
61
return
node;
62
}
63
64
static createLeaf(value) {
65
const
node =
new
ASTNode();
Callers
1
_factor
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected