Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 5, 2017

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.

This PR depends on (and includes the changes from) #9319 and #9320

@ahoppen
Copy link
Member Author

ahoppen commented May 5, 2017

Please test with following pull request:
apple/swift-lldb#197

@swift-ci Please test

ahoppen added 2 commits May 5, 2017 12:57
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`
@swift-ci
Copy link
Contributor

swift-ci commented May 5, 2017

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - e53db2e7e4ecd9e6464ea76da1c9515376e9bd7f
Test requested by - @ahoppen

@ahoppen ahoppen force-pushed the pdm-return-type branch from e53db2e to 40a0d31 Compare May 5, 2017 12:08
@swift-ci
Copy link
Contributor

swift-ci commented May 5, 2017

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - e53db2e7e4ecd9e6464ea76da1c9515376e9bd7f
Test requested by - @ahoppen

@ahoppen
Copy link
Member Author

ahoppen commented May 5, 2017

Please test with following pull request:
apple/swift-lldb#197

@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.
@ahoppen ahoppen force-pushed the pdm-return-type branch from 40a0d31 to 418587e Compare May 5, 2017 12:38
@ahoppen
Copy link
Member Author

ahoppen commented May 5, 2017

Please test with following pull request:
apple/swift-lldb#197

@swift-ci Please test

@jrose-apple
Copy link
Contributor

Rebased and merged in #9968.

@ahoppen ahoppen deleted the pdm-return-type branch May 29, 2017 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants