Skip to content

Commit

Permalink
Update src/rule_definition_tools.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
st-- authored Oct 8, 2021
1 parent ddec127 commit ffddfe4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rule_definition_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ and one to use for calling that function
"""
function _split_primal_name(primal_name)
# e.g. f(x, y)
is_plain = primal_name isa Symbol
is_qualified = Meta.isexpr(primal_name, :(.))
is_parameterized = Meta.isexpr(primal_name, :curly)
if is_plain || is_qualified || is_parameterized
is_plain = primal_name isa Symbol
is_qualified = Meta.isexpr(primal_name, :(.))
is_parameterized = Meta.isexpr(primal_name, :curly)
if is_plain || is_qualified || is_parameterized
primal_name_sig = :(::$Core.Typeof($primal_name))
return primal_name_sig, primal_name
elseif Meta.isexpr(primal_name, :(::)) # e.g. (::T)(x, y)
Expand Down

0 comments on commit ffddfe4

Please sign in to comment.