Skip to content

Change find-all-references tests to test for groups #13760

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
2 commits merged into from
Feb 8, 2017
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jan 30, 2017

  • Also always test for isWriteAccess and isDefinition

Note: removed duplicates:

  • findAllRefsForDefaultExport04 and findAllRefsForDefaultExport05 and findAllRefsForDefaultExport06 duplicate findAllRefsForDefaultExport03
  • findAllRefsForDefaultExport07 now merged with findAllRefsForDefaultExport02
  • findAllRefsObjectBindingElementPropertyName09 duplicates findAllRefsObjectBindingElementPropertyName04

* Also always test for isWriteAccess and isDefinition
@ghost ghost force-pushed the find_all_refs_tests branch from 8e9f997 to 8515f7e Compare January 31, 2017 14:59

function rangeToReferenceEntry(r: Range) {
let { isWriteAccess, isDefinition } = (r.marker && r.marker.data) || { isWriteAccess: false, isDefinition: false };
isWriteAccess = isWriteAccess || false; isDefinition = isDefinition || false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this almost a conversion to boolean? Technically, a conversion to T | false, I guess, but a full conversion via !! would be better I think.

@ghost ghost merged commit 51d4970 into master Feb 8, 2017
@ghost ghost deleted the find_all_refs_tests branch February 8, 2017 15:05
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 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.

2 participants