Skip to content

Commit

Permalink
virtualprocess: minor fix on is_known_call
Browse files Browse the repository at this point in the history
  • Loading branch information
aviatesk committed Jan 18, 2024
1 parent fd932c2 commit 3a14b3d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/toplevel/virtualprocess.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1105,10 +1105,13 @@ function is_known_call(stmt::Expr, func::Symbol, stmts::Vector{Any})
f = stmts[f.id]
end
isa(f, Symbol) && f === func && return true
isa(f, GlobalRef) && f.name === :eval && return true
callee_matches(f, Base, :getproperty) && is_quotenode_egal(stmt.args[end], func) && return true
callee_matches(f, Core, :getproperty) && is_quotenode_egal(stmt.args[end], func) && return true
callee_matches(f, Core.Compiler, :getproperty) && is_quotenode_egal(stmt.args[end], func) && return true
isa(f, GlobalRef) && f.name === func && return true
callee_matches(f, Base, :getproperty) &&
is_quotenode_egal(stmt.args[end], func) && return true
callee_matches(f, Core, :getproperty) &&
is_quotenode_egal(stmt.args[end], func) && return true
callee_matches(f, Core.Compiler, :getproperty) &&
is_quotenode_egal(stmt.args[end], func) && return true
return false
end

Expand Down

0 comments on commit 3a14b3d

Please sign in to comment.