Skip to content

Commit

Permalink
fix function_name for where syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacLN committed May 25, 2017
1 parent ca3664a commit d10c504
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ function_name(sig::EXPR{Curly}) = function_name(sig.args[1])
function function_name(sig::EXPR{BinarySyntaxOpCall})
if sig.args[2] isa EXPR{OP} where OP <: OPERATOR{DotOp}
function_name(sig.args[3])
elseif sig.args[2] isa EXPR{OP} where OP <: OPERATOR{WhereOp}
function_name(sig.args[1])
else
function_name(sig.args[2])
end
Expand Down

0 comments on commit d10c504

Please # to comment.