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

Improved double equal handling. Fixes #565 #696

Merged
merged 6 commits into from
May 2, 2018

Conversation

kamphaus
Copy link
Contributor

@kamphaus kamphaus commented May 1, 2018

Improved wrapping in anonymous function of assignish operators when in an atomic expression.

This handles problems like use in switch/for expressions, with implicit cast.

Fixes #565


This change is Reviewable

Atomic operands can be transpiled as statements when already wrapped in an anonymous function, i.e. no need to double wrap them.
Do not show deferred statement when the list of deferred statements is empty, but not nil
@codecov
Copy link

codecov bot commented May 1, 2018

Codecov Report

Merging #696 into master will increase coverage by 0.02%.
The diff coverage is 93.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #696      +/-   ##
==========================================
+ Coverage   81.86%   81.88%   +0.02%     
==========================================
  Files         164      164              
  Lines        8937     8955      +18     
==========================================
+ Hits         7316     7333      +17     
- Misses       1219     1220       +1     
  Partials      402      402
Impacted Files Coverage Δ
transpiler/operators.go 78.01% <100%> (+0.58%) ⬆️
util/goast.go 88.65% <100%> (+0.44%) ⬆️
transpiler/variables.go 83.25% <100%> (ø) ⬆️
transpiler/transpiler.go 86.85% <100%> (ø) ⬆️
transpiler/binary.go 70.04% <100%> (ø) ⬆️
transpiler/call.go 69.2% <100%> (ø) ⬆️
transpiler/unary.go 74.56% <81.81%> (ø) ⬆️
main.go 55.18% <0%> (-0.95%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5fc3427...aa74a6b. Read the comment docs.

@elliotchance
Copy link
Owner

Nice! 👍


Reviewed 7 of 8 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@elliotchance elliotchance merged commit e1f3d12 into elliotchance:master May 2, 2018
@kamphaus kamphaus deleted the fix-565-double-equal branch May 3, 2018 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants