You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(reflect): add function_declaration API to set initializer and inspect parameters (#831)
* feat(reflect): add `function_declaration::get_parameters`
* feat(reflect): add `function_declaration::add_initializer`
* fix(reflect): actually return the parent
* feat(reflect): add `declaration::get_arguments`
* feat(reflect): add `get_member_functions_needing_initializer`
* Pre-merge review pass
Johel, can you give this a try in your test code and make sure your test code still works as expected? I had to create a little test to exercise it, since the new functions aren't used in this PR.
* Restore preconditions for `add_initializer`
And:
- Add proper early returns for failed null checks
- Disable the `contract_group` default constructor, since we aren't checking the handler before trying to invoke it.
* Second review: Add graceful termination for a metafunction precondition violation
And restore `source` string to error output, and make it just come out routinely as soon as a parse error is detected
* Report original source string on parse errors
* regenerate `reflect.h`
---------
Signed-off-by: Herb Sutter <[email protected]>
Co-authored-by: Herb Sutter <[email protected]>
0 commit comments