@@ -414,19 +414,18 @@ macro getkw(syms...)
414
414
Expr (:block , (:($ (esc (:((kw, $ sym) = $ getter (v, o, kw))))) for (sym, getter) in zip (syms, getters)). .. )
415
415
end
416
416
417
- for (sym, deps, exp, type) in [
418
- (:lo , (), :(firstindex (v)), Integer),
419
- (:hi , (), :(lastindex (v)), Integer),
420
- (:mn , (), :(throw (ArgumentError (" mn is needed but has not been computed" ))), :(eltype (v))),
421
- (:mx , (), :(throw (ArgumentError (" mx is needed but has not been computed" ))), :(eltype (v))),
422
- (:scratch , (), nothing , :(Union{Nothing, Vector})), # could have different eltype
423
- (:allow_legacy_dispatch , (), true , Bool)]
417
+ for (sym, exp, type) in [
418
+ (:lo , :(firstindex (v)), Integer),
419
+ (:hi , :(lastindex (v)), Integer),
420
+ (:mn , :(throw (ArgumentError (" mn is needed but has not been computed" ))), :(eltype (v))),
421
+ (:mx , :(throw (ArgumentError (" mx is needed but has not been computed" ))), :(eltype (v))),
422
+ (:scratch , nothing , :(Union{Nothing, Vector})), # could have different eltype
423
+ (:allow_legacy_dispatch , true , Bool)]
424
424
usym = Symbol (:_ , sym)
425
425
@eval function $usym (v, o, kw)
426
426
# using missing instead of nothing because scratch could === nothing.
427
427
res = get (kw, $ (Expr (:quote , sym)), missing )
428
428
res != = missing && return kw, res:: $type
429
- @getkw $ (deps... )
430
429
$ sym = $ exp
431
430
(;kw... , $ sym), $ sym:: $type
432
431
end
0 commit comments