-
Notifications
You must be signed in to change notification settings - Fork 5
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 high-level typeof
operator expression & internal meta types for arrays and functions
#688
Merged
Luna-Klatzer
merged 39 commits into
dev-next
from
663-feature-high-level-typeof-operator
Sep 2, 2024
Merged
Implemented high-level typeof
operator expression & internal meta types for arrays and functions
#688
Luna-Klatzer
merged 39 commits into
dev-next
from
663-feature-high-level-typeof-operator
Sep 2, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…eration-for-builtin-types' into 663-feature-high-level-typeof-operator # Conflicts: # kipper/core/src/compiler/semantics/symbol-table/universum-scope.ts
…level-typeof-operator # Conflicts: # kipper/target-js/src/code-generator.ts # kipper/target-ts/src/code-generator.ts
…matic TypeScript type inference
…f an expression
…ays and functions
…-operator # Conflicts: # CHANGELOG.md # kipper/core/src/compiler/ast/nodes/expressions/primary-expression/lambda-primary-expression/lambda-primary-expression-type-semantics.ts # kipper/core/src/compiler/ast/nodes/expressions/primary-expression/lambda-primary-expression/lambda-primary-expression.ts # kipper/core/src/compiler/const.ts # kipper/core/src/compiler/semantics/analyser/type-checker.ts # kipper/core/src/compiler/semantics/symbol-table/universe-scope.ts # kipper/core/src/compiler/target-presets/semantic-analyser.ts # kipper/target-js/src/code-generator.ts # kipper/target-ts/src/code-generator.ts # kipper/target-ts/src/target.ts
… implementation of runtime `typeof` function
bdb2562
to
90788ae
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ 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 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Luna <dev@lklatzer.com>
Luna-Klatzer
approved these changes
Sep 2, 2024
3 tasks
3 tasks
7 tasks
This was referenced Sep 2, 2024
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
breaking change
This is a breaking change
feature
New feature or enhancement
high priority
High priority issue, discussion or pull request
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
TypeofExpression
, which represents an AST typeof expression that returns the runtime type of an object.TypeofTypeSpecifierExpression
, which represents an AST typeof type specifier that lets one define a type by using an object as referenceBuiltInTypeObject
, which is the base class for the compilers representation of runtime objectsgenerateInterfaceRuntimeTypeChecks
which generates runtime type checks for an interface.getRuntimeType
, which gets the corresponding runtime representation of a built-in type.Does this PR create new warnings?
No new warnings.
Linked issues or PRs
typeof
operator #663