-
Notifications
You must be signed in to change notification settings - Fork 94
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
The mangledName property of TypeInfo has incorrect or missing results #65
Comments
Yea unfortunately it looks the like the type descriptor's only have the name now and not the mangled name. |
Thanks for responding. In the runtime source code like the variable name is indeed just "name" now. I did find a potential solution to this issue: use For the benefit of anyone who stumbles onto this issue and is interested in how to do this, here's a code snippet:
|
@benpious that code errors out during runtime for me 😞
Passing in a simple struct as the type to be analyzed. Did you face this and could resolve? 🙏 |
I would expect the following code to print something like
$s11TestRuntime0A8ManglingCMn
. However, the actual output is simplyTestMangling
.For a few types I've tried, the output is an empty string. I'm guessing that the layout of the nominal type descriptor has changed since Runtime was first written, but I'm not sure how to verify this as I'm not sure where the struct for nominal type descriptors actually lives in the swift runtime source.
I'm using Runtime 2.1.1, Swift 5.1.
The text was updated successfully, but these errors were encountered: