We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
haseval
1 parent 6fb00b9 commit bf4ac5fCopy full SHA for bf4ac5f
test/codeedges.jl
@@ -144,7 +144,8 @@ end
144
src = frame.framecode.src
145
edges = CodeEdges(src)
146
# Mark just the load of Core.eval
147
- haseval(stmt) = isa(stmt, Expr) && JuliaInterpreter.hasarg(isequal(:eval), stmt.args)
+ haseval(stmt) = (isa(stmt, Expr) && JuliaInterpreter.hasarg(isequal(:eval), stmt.args)) ||
148
+ (isa(stmt, Expr) && stmt.head === :call && is_quotenode(stmt.args[1], Core.eval))
149
isrequired = map(haseval, src.code)
150
@test sum(isrequired) == 1
151
isrequired[edges.succs[findfirst(isrequired)]] .= true # add lines that use Core.eval
0 commit comments