The @capture
macro from MacroTools expects one to pass the pattern directly when the macro is called. From Slack, someone asked if the pattern can be stored in a variable and then passed to the macro. I could make it work with the following "hack":
julia> code
:(foo(bar + xyz))
julia> pattern
:(phi1_(x_ + y_))