Skip to content

Use String(reflecting:) instead of _typeName(_:qualified:) to get the fully-qualified names of types. #325

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

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Apr 3, 2024

We were directly using the Swift standard library function _typeName(_:qualified:) to get the fully-qualified names of types, but String(reflecting:) does this for us and is supported API. This PR switches us over to the API.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

… the fully-qualified names of types.

We were directly using the Swift standard library function
`_typeName(_:qualified:)` to get the fully-qualified names of types, but
`String(reflecting:)` does this for us and is supported API. This PR switches us
over to the API.
@grynspan grynspan added the bug 🪲 Something isn't working label Apr 3, 2024
@grynspan grynspan self-assigned this Apr 3, 2024
@grynspan grynspan changed the title Use String(reflecting:) instead of _typeName(_:qualified:) to get… Use String(reflecting:) instead of _typeName(_:qualified:) to get the fully-qualified names of types. Apr 3, 2024
@grynspan
Copy link
Contributor Author

grynspan commented Apr 3, 2024

@swift-ci please test

@grynspan grynspan merged commit 608cfcd into main Apr 3, 2024
@grynspan grynspan deleted the jgrynspan/use-string-reflecting-for-fqns branch April 3, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants