Skip to content

[IDE][SourceKit] Support escaped identifiers for the syntactic rename and related idents requests. #31431

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
May 4, 2020

Conversation

nathawes
Copy link
Contributor

@nathawes nathawes commented Apr 30, 2020

Both would previously not account for the extra two backticks in their name, e.g. giving [`fo]o` rather than [`foo`].

This updates their ranges to include the backticks, and for syntactic rename, to account for them when comparing base names and argument labels with expected values. It also updates Swift -> ObjC name translation to account for them too.

Resolves rdar://problem/46409010
Resolves rdar://problem/48256383

@nathawes nathawes force-pushed the rename-with-backticks branch from 0e48aec to 33cbf7a Compare April 30, 2020 02:22
@nathawes
Copy link
Contributor Author

@swift-ci please test

@nathawes
Copy link
Contributor Author

@swift-ci Please Build Toolchain macOS Platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 0e48aecb10ee253744e1ab3b4dd97d2f07c75d93

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 0e48aecb10ee253744e1ab3b4dd97d2f07c75d93

@nathawes nathawes force-pushed the rename-with-backticks branch from 33cbf7a to 45d5bfa Compare April 30, 2020 19:46
@nathawes
Copy link
Contributor Author

@swift-ci please test

@nathawes
Copy link
Contributor Author

@swift-ci Please Build Toolchain macOS Platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 33cbf7af519df20c3b44ed9bdd298eed4c437188

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 33cbf7af519df20c3b44ed9bdd298eed4c437188

@nathawes nathawes force-pushed the rename-with-backticks branch from 45d5bfa to a797038 Compare April 30, 2020 20:05
… and related idents requests.

Resolves rdar://problem/46409010
Resolves rdar://problem/48256383
@nathawes nathawes force-pushed the rename-with-backticks branch from a797038 to 0f8619b Compare April 30, 2020 20:08
@nathawes
Copy link
Contributor Author

@swift-ci please test

@nathawes
Copy link
Contributor Author

@swift-ci Please Build Toolchain macOS Platform

@nathawes nathawes changed the title [WIP][IDE][SourceKit] Support escaped identifiers for the syntactic rename and related idents requests. [IDE][SourceKit] Support escaped identifiers for the syntactic rename and related idents requests. Apr 30, 2020
@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 45d5bfa929d41f22d5737c3dae97a457cdb9c895

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 45d5bfa929d41f22d5737c3dae97a457cdb9c895

@nathawes nathawes requested a review from benlangmuir April 30, 2020 20:14
@nathawes nathawes marked this pull request as ready for review April 30, 2020 20:14
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