Skip to content

Combine getTouchingWord and getTouchingPropertyName#22127

Merged
1 commit merged intomasterfrom
getTouchingX
Apr 12, 2018
Merged

Combine getTouchingWord and getTouchingPropertyName#22127
1 commit merged intomasterfrom
getTouchingX

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 22, 2018

getTouchingPropertyName is just getTouchingWord, except it allows us to be exactly at the end of a StringLiteral, while getTouchingWord only allows us to be exactly at the end of an Identifier, and requires us to be at least one character before the end of a string literal. (They were both added in #752.) I don't think there are any cases where this difference actually matters, so we can just use getTouchingPropertyName consistently, which allows some code to be abstracted in findAllReferences which previously used one function in some places and the other function in others.

@ghost ghost requested a review from armanio123 February 22, 2018 22:26
@ghost ghost requested a review from mhegazy March 5, 2018 23:03
@ghost ghost force-pushed the getTouchingX branch from c6580bd to 83c89d0 Compare March 5, 2018 23:20
@ghost
Copy link
Copy Markdown
Author

ghost commented Apr 11, 2018

@mhegazy @sheetalkamat @armanio123 Could someone review?

@ghost ghost requested a review from sheetalkamat April 11, 2018 20:40
@ghost ghost merged commit abbb79f into master Apr 12, 2018
@ghost ghost deleted the getTouchingX branch April 12, 2018 18:56
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant