Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

Implemented high-level `typeof` operator expression & internal meta types for arrays and functions #688

Closed lorenzholzbauer closed 1 week ago

lorenzholzbauer commented 1 month ago

What type of change does this PR perform?

Summary

This PR adds the typeof expression in Kipper, which returns the type of an object at runtime. It also adds runtime type generation for interfaces adnd builtin types.

Closes #663

Detailed Changelog

Added

Does this PR create new warnings?

No new warnings.

Linked issues or PRs

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 67.88321% with 44 lines in your changes missing coverage. Please review.

Project coverage is 82.90%. Comparing base (6623e69) to head (694954c). Report is 40 commits behind head on dev-next.

Files with missing lines Patch % Lines
...-expression/typeof-expression/typeof-expression.ts 33.33% 14 Missing :warning:
kipper/target-js/src/code-generator.ts 65.85% 14 Missing :warning:
...ier-expression/typeof-type-specifier-expression.ts 10.00% 9 Missing :warning:
kipper/target-ts/src/tools.ts 50.00% 1 Missing and 2 partials :warning:
kipper/target-ts/src/code-generator.ts 81.81% 2 Missing :warning:
kipper/target-js/src/target.ts 75.00% 1 Missing :warning:
kipper/target-ts/src/target.ts 50.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## dev-next #688 +/- ## ============================================ - Coverage 84.24% 82.90% -1.34% ============================================ Files 274 276 +2 Lines 4684 4780 +96 Branches 513 525 +12 ============================================ + Hits 3946 3963 +17 - Misses 590 668 +78 - Partials 148 149 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.