Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactor with _is_sum #231

Closed
wants to merge 1 commit into from
Closed

Minor refactor with _is_sum #231

wants to merge 1 commit into from

Conversation

blegat
Copy link
Member

@blegat blegat commented Oct 6, 2023

No description provided.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (e3f1da6) 89.51% compared to head (58bb575) 89.60%.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #231      +/-   ##
==========================================
+ Coverage   89.51%   89.60%   +0.08%     
==========================================
  Files          23       23              
  Lines        2137     2154      +17     
==========================================
+ Hits         1913     1930      +17     
  Misses        224      224              
Files Coverage Δ
src/rewrite_generic.jl 99.39% <100.00%> (+0.06%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -69,7 +69,7 @@ function _rewrite_generic(stack::Expr, expr::Expr)
# If the first argument is a splat.
return esc(expr), false
elseif _is_generator(expr) || _is_flatten(expr) || _is_parameters(expr)
if !(expr.args[1] in (:sum, :Σ, :∑))
if !_is_sum(expr.args[1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I wrote this explicitly because _is_sum was in rewrite.jl, and because it was a bit opaque exactly what we supported here.

@odow
Copy link
Member

odow commented Nov 27, 2023

Closing as won't fix for now. This was intended.

@odow odow closed this Nov 27, 2023
@odow odow deleted the bl/is_sum branch November 27, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants