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

Implemented cast as, try as and force as high-level type cast expressions for advanced type manipulation #693

Draft
wants to merge 11 commits into
base: dev-next
Choose a base branch
from

Conversation

Luna-Klatzer
Copy link
Member

What type of change does this PR perform?

  • Info or documentation change (Non-breaking change that updates repo info files (e.g. README.md, CONTRIBUTING.md, etc.) or online documentation)
  • Website (Change that changes the design or functionality of the websites or docs)
  • Development or internal changes (These changes do not add new features or fix bugs, but update the code in other ways)
  • Bug fix (Non-breaking change which fixes an issue)
  • New feature (Non-breaking change which adds functionality)
  • Breaking change (Major bug fix or feature that would cause existing functionality not to work as expected.)
  • Requires a documentation update, as it changes language or compiler behaviour

Summary

Implemented cast as, try as and force as high-level type cast expressions for advanced type manipulation.

Closes #685

Detailed Changelog

Not present for website/docs changes

WIP...

Does this PR create new warnings?

WIP...

Linked issues or PRs

@Luna-Klatzer Luna-Klatzer added feature New feature or enhancement high priority High priority issue, discussion or pull request labels Sep 7, 2024
@Luna-Klatzer Luna-Klatzer added this to the v0.12.0 milestone Sep 7, 2024
@Luna-Klatzer Luna-Klatzer self-assigned this Sep 7, 2024
@Luna-Klatzer Luna-Klatzer changed the base branch from next to dev-next September 7, 2024 18:33
Copy link

codecov bot commented Sep 7, 2024

Codecov Report

Attention: Patch coverage is 73.24324% with 99 lines in your changes missing coverage. Please review.

Project coverage is 82.50%. Comparing base (393c994) to head (a7a0028).

Files with missing lines Patch % Lines
...vert-expression/cast-expression/cast-expression.ts 27.58% 21 Missing ⚠️
...ion/force-cast-expression/force-cast-expression.ts 28.00% 18 Missing ⚠️
...ression/try-cast-expression/try-cast-expression.ts 28.00% 18 Missing ⚠️
kipper/target-js/src/built-in-generator.ts 33.33% 8 Missing ⚠️
kipper/target-ts/src/built-in-generator.ts 33.33% 8 Missing ⚠️
...re/src/compiler/semantics/analyser/type-checker.ts 30.00% 6 Missing and 1 partial ⚠️
kipper/target-ts/src/code-generator.ts 50.00% 7 Missing ⚠️
kipper/target-js/src/code-generator.ts 53.84% 6 Missing ⚠️
...xpression/convert-expression/convert-expression.ts 86.20% 3 Missing and 1 partial ⚠️
kipper/target-js/src/runtime/create-kipper.ts 33.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           dev-next     #693      +/-   ##
============================================
- Coverage     83.85%   82.50%   -1.36%     
============================================
  Files           283      294      +11     
  Lines          4938     5092     +154     
  Branches        544      550       +6     
============================================
+ Hits           4141     4201      +60     
- Misses          651      744      +93     
- Partials        146      147       +1     
Flag Coverage Δ
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Luna-Klatzer Luna-Klatzer force-pushed the 685-feature-implement-cast-as-try-as-and-force-as branch from 6d2509a to 223fb69 Compare September 18, 2024 11:11
@Luna-Klatzer Luna-Klatzer modified the milestones: v0.12.0, v0.13.0 Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or enhancement high priority High priority issue, discussion or pull request
Projects
Development

Successfully merging this pull request may close these issues.

1 participant