@@ -429,19 +429,18 @@ macro getkw(syms...)
429
429
Expr (:block , (:($ (esc (:((kw, $ sym) = $ getter (v, o, kw))))) for (sym, getter) in zip (syms, getters)). .. )
430
430
end
431
431
432
- for (sym, deps, exp, type) in [
433
- (:lo , (), :(firstindex (v)), Integer),
434
- (:hi , (), :(lastindex (v)), Integer),
435
- (:mn , (), :(throw (ArgumentError (" mn is needed but has not been computed" ))), :(eltype (v))),
436
- (:mx , (), :(throw (ArgumentError (" mx is needed but has not been computed" ))), :(eltype (v))),
437
- (:scratch , (), nothing , :(Union{Nothing, Vector})), # could have different eltype
438
- (:allow_legacy_dispatch , (), true , Bool)]
432
+ for (sym, exp, type) in [
433
+ (:lo , :(firstindex (v)), Integer),
434
+ (:hi , :(lastindex (v)), Integer),
435
+ (:mn , :(throw (ArgumentError (" mn is needed but has not been computed" ))), :(eltype (v))),
436
+ (:mx , :(throw (ArgumentError (" mx is needed but has not been computed" ))), :(eltype (v))),
437
+ (:scratch , nothing , :(Union{Nothing, Vector})), # could have different eltype
438
+ (:allow_legacy_dispatch , true , Bool)]
439
439
usym = Symbol (:_ , sym)
440
440
@eval function $usym (v, o, kw)
441
441
# using missing instead of nothing because scratch could === nothing.
442
442
res = get (kw, $ (Expr (:quote , sym)), missing )
443
443
res != = missing && return kw, res:: $type
444
- @getkw $ (deps... )
445
444
$ sym = $ exp
446
445
(;kw... , $ sym), $ sym:: $type
447
446
end
0 commit comments