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

Issue 277 named / type defined enums #404

Merged
merged 5 commits into from
Dec 7, 2021

Conversation

riederm
Copy link
Collaborator

@riederm riederm commented Dec 6, 2021

closes #390
closes #277

myEnum : INT (a:=3, b, c, d:= 77, e, f);
enum elements get explicit assignments so we can safely assume
an Assignment-Statement with an initial value for every
enum element.
@codecov-commenter
Copy link

Codecov Report

Merging #404 (ad9e792) into master (907b413) will decrease coverage by 0.04%.
The diff coverage is 92.21%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #404      +/-   ##
==========================================
- Coverage   93.12%   93.07%   -0.05%     
==========================================
  Files          31       31              
  Lines       11068    11265     +197     
==========================================
+ Hits        10307    10485     +178     
- Misses        761      780      +19     
Impacted Files Coverage Δ
src/resolver/const_evaluator.rs 90.32% <64.28%> (-0.96%) ⬇️
src/codegen/generators/data_type_generator.rs 93.15% <68.75%> (-1.40%) ⬇️
src/ast.rs 92.00% <89.06%> (-0.17%) ⬇️
src/index/visitor.rs 95.87% <95.00%> (-0.20%) ⬇️
src/ast/pre_processor.rs 99.23% <97.14%> (-0.77%) ⬇️
src/codegen/llvm_typesystem.rs 77.73% <100.00%> (ø)
src/index.rs 97.22% <100.00%> (+0.03%) ⬆️
src/lib.rs 97.78% <100.00%> (ø)
src/parser.rs 98.06% <100.00%> (+0.04%) ⬆️
src/resolver.rs 96.67% <100.00%> (+<0.01%) ⬆️
... and 7 more

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 907b413...ad9e792. Read the comment docs.

@ghaith ghaith merged commit 47d87d9 into master Dec 7, 2021
@ghaith ghaith deleted the issue-277-Named_/_Type_defined_Enums branch December 7, 2021 07:42
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.

Enums should behave like numeric types Named / Type defined Enums
3 participants