You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifisa(ex0, Expr) && ex0.head ==:macrocall# Make @edit @time 1+2 edit the macro by using the types of the *expressions*
422
-
is_macro =true
423
-
exret =Expr(:call, fcn, esc(ex0.args[1]), Tuple{#=__source__=#LineNumberNode, #=__module__=#Module, Any[ Core.Typeof(a) for a in ex0.args[3:end] ]...})
424
-
elseif!isa(ex, Expr)
419
+
returnExpr(:call, fcn, esc(ex0.args[1]), Tuple{#=__source__=#LineNumberNode, #=__module__=#Module, Any[ Core.Typeof(a) for a in ex0.args[3:end] ]...})
420
+
end
421
+
ex =expand(__module__, ex0)
422
+
exret =Expr(:none)
423
+
if!isa(ex, Expr)
425
424
exret =Expr(:call, :error, "expression is not a function call or symbol")
0 commit comments