Skip to content

Commit

Permalink
tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
pdeffebach committed Nov 1, 2023
1 parent 25302da commit a0bdcca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/DataFramesMeta.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export @attach,
@distinct, @rdistinct, @distinct!, @rdistinct!,
@eachrow, @eachrow!,
@byrow, @passmissing, @astable, @kwarg,
@based_on, @where # deprecated
@based_on, @where, @with # deprecated

const DOLLAR = raw"$"

Expand Down
4 changes: 2 additions & 2 deletions src/eachrow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function eachrow_helper(df, body, deprecation_warning)
let $_df = $df
local _N = nrow($_df)
local _DF = @transform($_df, $(e_newcols...))
$(with_helper(:_DF, :(for row = 1:_N
$(attach_helper(:_DF, :(for row = 1:_N
$(eachrow_replace(e_body))
end)))
_DF
Expand Down Expand Up @@ -224,7 +224,7 @@ function eachrow!_helper(df, body)
let $_df = $df
local _N = nrow($_df)
local _DF = @transform!($_df, $(e_newcols...))
$(with_helper(:_DF, :(for row = 1:_N
$(attach_helper(:_DF, :(for row = 1:_N
$(eachrow_replace(e_body))
end)))
_DF
Expand Down
2 changes: 1 addition & 1 deletion src/linqmacro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ end
linq(::SymbolParameter{s}, args...) where {s} = Expr(:call, s, args...)

function linq(::SymbolParameter{:with}, d, body)
with_helper(d, body)
attach_helper(d, body)
end

function linq(::SymbolParameter{:where}, d, args...)
Expand Down
2 changes: 1 addition & 1 deletion src/macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ end
Deprecated version of `@attach`, see `?@with` for details.
"""
macro with(x, args...)
macro with(d, body)
@warn "`@with is deprecated, use `@with` instead."
esc(attach_helper(d, body))
end
Expand Down

0 comments on commit a0bdcca

Please sign in to comment.