Skip to content
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

Full implementation of detection of identifier hiding #1277

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

lukedegruchy
Copy link
Contributor

@lukedegruchy lukedegruchy commented Nov 9, 2023

  • Detect identifier hiding for various structures, including expressions, functions, parameters, arguments, lets, aliases, etc
  • Detect such hiding for both exact matches and case insensitive matches
  • Output compiler warnings referencing the structure in question
  • Ensure the context of the structure is considered. For example, remove from consideration an alias once the function body has been compiled
  • Tons of new tests and some updated tests.

Closes #426
Closes #721
Closes #1254

…t and case-insensitive matches as well as a lot of new unit tests.
@lukedegruchy lukedegruchy marked this pull request as ready for review November 9, 2023 20:16
Copy link
Member

@brynrhodes brynrhodes left a comment

Choose a reason for hiding this comment

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

Overall this looks really good, and I love all the tests, I just have some comments inline that I wonder about.

@JPercival
Copy link
Contributor

In review we split out a couple of additional stories here:
#598
#1280

Copy link
Member

@brynrhodes brynrhodes left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@JPercival JPercival merged commit 9d92e5b into master Nov 15, 2023
2 checks passed
@JPercival JPercival deleted the 598-hiding-identifier-warn-exact-case-insensitive branch November 15, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants