leo icon indicating copy to clipboard operation
leo copied to clipboard

Preprocess Negative Literals

Open d0cd opened this issue 1 year ago • 1 comments

This PR

  • Processes negation expressions during parsing, producing negative literals as necessary.
  • Reintroduces IntegerType as it improves code cleanliness.

d0cd avatar Aug 06 '22 16:08 d0cd

Codecov Report

Merging #2002 (566d239) into testnet3 (47d4613) will increase coverage by 0.09%. The diff coverage is 76.25%.

@@             Coverage Diff              @@
##           testnet3    #2002      +/-   ##
============================================
+ Coverage     81.88%   81.98%   +0.09%     
============================================
  Files           130      131       +1     
  Lines          5488     5423      -65     
  Branches       5487     5422      -65     
============================================
- Hits           4494     4446      -48     
+ Misses          994      977      -17     
Impacted Files Coverage Δ
compiler/core/src/algorithms/mod.rs 85.54% <ø> (ø)
compiler/passes/src/type_checking/checker.rs 95.41% <ø> (ø)
compiler/passes/src/loop_unrolling/unroller.rs 77.64% <10.00%> (ø)
compiler/ast/src/value/mod.rs 21.69% <19.04%> (+0.74%) :arrow_up:
...iler/passes/src/loop_unrolling/unroll_statement.rs 82.50% <50.00%> (ø)
...iler/passes/src/type_checking/check_expressions.rs 85.45% <85.29%> (+3.44%) :arrow_up:
compiler/parser/src/parser/type_.rs 97.29% <95.65%> (+0.42%) :arrow_up:
compiler/ast/src/expressions/literal.rs 93.33% <100.00%> (-3.16%) :arrow_down:
compiler/ast/src/types/integer_type.rs 100.00% <100.00%> (ø)
compiler/ast/src/types/type_.rs 81.48% <100.00%> (-3.82%) :arrow_down:
... and 7 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Aug 06 '22 16:08 codecov[bot]