Add RuntimeSameFileExportBase class and improve runtime tests - #32
Merged
Merged
Conversation
…class_binding template
The declaration generator still emits the global Signal function. Require that declaration so the integrity check matches the generated API.
Keep this PR focused on exported-property inheritance by retaining the existing Object::cast_to entry point. Both casting variants pass the available runtime checks; a separate correctness or performance benefit for replacing it has not been established.
Reuse the full property parser for same-file parents and merge each parent before inheriting into its child. Preserve export hints, static exports, interface array schemas, and Inspector groups while respecting child overrides. Resolve inherited defaults separately from property descriptors, honor child field initializers, and avoid stale ancestor defaults for opaque initializers. Match the Export decorator by name without collecting parent methods, signals, or RPC metadata.
Exercise ordinary and abstract parents across files, decorator hints, static exports, override precedence, and metadata-only overrides through the Godot test runner. Cover opaque and object field initializers, interface groups and array schemas, and decorators whose names merely start with Export.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.