Skip to content

Commit

Permalink
fix _get_fparams
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacLN committed Aug 16, 2017
1 parent 6673f7d commit 729db0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ function _get_fparams(x::EXPR{BinarySyntaxOpCall}, args = Symbol[])
if !(a isa EXPR{P} where P <: PUNCTUATION)
if a isa EXPR{IDENTIFIER}
push!(args, Expr(a))
elseif a isa EXPR{BinarySyntaxOpCall} && a.args[2] isa EXPR{OPERATOR{ComparisonOp,Tokens.ISSUBTYPE,false}} && a isa EXPR{IDENTIFIER}
push!(args, Expr(a).args[1])
elseif a isa EXPR{BinarySyntaxOpCall} && a.args[2] isa EXPR{OPERATOR{ComparisonOp,Tokens.ISSUBTYPE,false}} && a.args[1] isa EXPR{IDENTIFIER}
push!(args, Expr(a.args[1]))
end
end
end
Expand Down

0 comments on commit 729db0c

Please # to comment.