File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ using ..NodeModule:
26
26
filter_map!
27
27
using .. NodeUtilsModule:
28
28
NodeIndex,
29
+ is_node_constant,
29
30
count_constants,
30
31
count_depth,
31
32
index_constants,
273
274
function _check_count_depth (tree:: AbstractExpressionNode )
274
275
return count_depth (tree) isa Int64
275
276
end
277
+ function _check_is_node_constant (tree:: AbstractExpressionNode )
278
+ return is_node_constant (tree) isa Bool
279
+ end
276
280
function _check_count_constants (tree:: AbstractExpressionNode )
277
281
return count_constants (tree) isa Int64
278
282
end
@@ -324,6 +328,7 @@ ni_components = (
324
328
branch_hash = " computes the hash of a branch node" => _check_branch_hash,
325
329
branch_equal = " checks equality of two branch nodes" => _check_branch_equal,
326
330
count_depth = " calculates the depth of the tree" => _check_count_depth,
331
+ is_node_constant = " checks if the node is a constant" => _check_is_node_constant,
327
332
count_constants = " counts the number of constants" => _check_count_constants,
328
333
filter_map = " applies a filter and map function to the tree" => _check_filter_map,
329
334
has_constants = " checks if the tree has constants" => _check_has_constants,
You can’t perform that action at this time.
0 commit comments