File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 34
34
(get-next [this] " Get the next sibling node" )
35
35
(set-next [this node] " Set the next sibling node" )
36
36
(set-order [this o] " Set the traversal order of this node" )
37
- #? (:clj (get-order ^long [this] " Get the order of this node in traversal" )
38
- :cljs (^number get-order [this] " Get the order of this node in traversal" ))
39
- #? (:clj (get-size ^long [this] " Get the size of sub-tree, used to estimate cost" )
40
- :cljs (^number get-size [this] " Get the size of sub-tree, used to estimate cost" ))
37
+ (get-order [this] " Get the order of this node in traversal" )
38
+ (get-size [this] " Get the size of sub-tree, used to estimate cost" )
41
39
(set-size [this s] " Set the size of sub-tree" ))
42
40
43
41
(deftype Node [^PersistentVector path
120
118
:set (set-children order path data node)
121
119
:lst (list-children order path data node))
122
120
(let [^long cs (->> (get-children node) vals (map get-size) (reduce +))
123
- size (+ (get-size node) cs)]
121
+ size (+ (long ( get-size node) ) cs)]
124
122
(doto node
125
123
(set-order @order)
126
124
(set-size size))
You can’t perform that action at this time.
0 commit comments