Skip to content

Flag usage of undefined variables#631

Merged
TwitchBronBron merged 14 commits intomasterfrom
namespace-validations
Jul 12, 2022
Merged

Flag usage of undefined variables#631
TwitchBronBron merged 14 commits intomasterfrom
namespace-validations

Conversation

@TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Jun 15, 2022

This PR finds usage of all variables that have not been defined.

This is overlapping functionality with bslint's LINT1001 rule, but we need this to do additional logic, and it's something a compiler should do natively anyway. LINT1001 is slightly superior in that it also detects "used before defined" errors, but they are not flagged that way in bslint and are included in the same LINT1001 bucket.

This adds basic symbol table support as well, just for name tracking purposes.

@TwitchBronBron TwitchBronBron merged commit e97969a into master Jul 12, 2022
@TwitchBronBron TwitchBronBron deleted the namespace-validations branch July 12, 2022 18:59
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.

2 participants