Skip to content

Commit

Permalink
Fix generate_funcnames
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Nov 13, 2023
1 parent 9e1c8cb commit ac4528f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/explore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ julia> generate_funcnames([:Base, :Foo, :bar])
function generate_funcnames(funccall::FunctionName)
calls = Vector{FunctionName}(undef, length(funccall.parts) - 1)
for i = length(funccall.parts):-1:2
calls[i-1] = funccall.parts[i:end]
calls[i-1] = FunctionName(funccall.parts[i:end]...)
end
calls
end
Expand Down
3 changes: 3 additions & 0 deletions test/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function testee(expr::Any, expected_references, expected_definitions, expected_f

original_hash = expr_hash(expr)
result = ExpressionExplorer.compute_symbolreferences(expr; configuration)
# should not throw:
ReactiveNode(result)

new_hash = expr_hash(expr)
if original_hash != new_hash
error("\n== The expression explorer modified the expression. Don't do that! ==\n")
Expand Down

0 comments on commit ac4528f

Please sign in to comment.