-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Change getBaseName to return DeclBaseName instead of Identifier #9321
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
Conversation
Please test with following pull request: @swift-ci Please test |
Printing a declaration's name using `<<` and `getBaseName()` is be independent of the return type of `getBaseName()` which will change in the future from `Identifier` to `DeclBaseName`
Printing a declaration's name using `<<` and `getBaseName()` is be independent of the return type of `getBaseName()` which will change in the future from `Identifier` to `DeclBaseName`
Build failed |
Build failed |
Please test with following pull request: @swift-ci Please test |
This changes `getBaseName()` on `DeclName` to return a `DeclBaseName` instead of an `Identifier`. All places that will continue to be expecting an `Identifier` are changed to call `getBaseIdentifier` which will later assert that the `DeclName` is actually backed by an identifier and not a special name. For transitional purposes, a conversion operator from `DeclBaseName` to `Identifier` has been added that will be removed again once migration to DeclBaseName has been completed in other parts of the compiler.
Please test with following pull request: @swift-ci Please test |
Rebased and merged in #9968. |
This changes
getBaseName()
onDeclName
to return aDeclBaseName
instead of an
Identifier
. All places that will continue to beexpecting an
Identifier
are changed to callgetBaseIdentifier
whichwill later assert that the
DeclName
is actually backed by anidentifier and not a special name.
For transitional purposes, a conversion operator from
DeclBaseName
toIdentifier
has been added that will be removed again once migrationto DeclBaseName has been completed in other parts of the compiler.
This PR depends on (and includes the changes from) #9319 and #9320