-
Notifications
You must be signed in to change notification settings - Fork 52
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
Unused Variable Warnings #1033
base: dev
Are you sure you want to change the base?
Unused Variable Warnings #1033
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some cleanup and case/lambda still need wiring up. Then prob good to proceed with bringing in warnings code
Just made a commit implementing most of these suggestions, but needs more time/work for debugging case statements. They currently aren't evaluating and the use of a variable in the case statement isn't counting as a "use" for the state of the variable, and im pretty sure it has something to do with an empty free/co-ctx instead of a properly created/propagated one |
5a53145
to
f0235aa
Compare
12be83c
to
b8ac46d
Compare
UVWs are working, with a basic warning interface outlined through the Info module. Would love to get feedback on it, as many things could use improvement, such as the names of warnings, info that each displays, how they are found, etc. |
35e01fe
to
bf4da10
Compare
Had a boxing match with git and lost (had to force push) but warnings now (inelegantly) don't display if there is a hole in the co-context; done with a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking pretty good but wondering about a couple details of the approach
b992ce0
to
ac40f00
Compare
The basic functionality of the warnings works correctly, printing "unused [var name]" or "used [var name]" to the console.
Would love review on these changes, as this does alter some of the core functionality of the backend, as well as the function definition for
upat_to_info_map
.After review and revision, next step is to merge in the
adt-defs-refutable
branch and implement a warning for this, so that the variable is highlighted in place.