We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TYPEDSIGNATURES
1 parent 7fed390 commit f1c9145Copy full SHA for f1c9145
src/parsing.jl
@@ -19,6 +19,9 @@ function parse_arg_with_type(arg_expr::Expr)
19
elseif n_expr_args == 2
20
# 'x::Int'
21
ASTArg(; name=arg_expr.args[1], type=arg_expr.args[2])
22
+ else
23
+ Meta.dump(arg_expr)
24
+ error("Couldn't parse typed argument (printed above)")
25
end
26
27
@@ -85,7 +88,7 @@ function find_call_expr(obj)
85
88
if Meta.isexpr(obj, :call)
86
89
# Base case: we've found the :call expression
87
90
return obj
- elseif obj isa Symbol || (obj isa Expr && isempty(obj.args))
91
+ elseif !(obj isa Expr) || isempty(obj.args)
92
# Base case: this is the end of a branch in the expression tree
93
return nothing
94
0 commit comments