Closed lorenzholzbauer closed 1 week ago
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.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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