-
Notifications
You must be signed in to change notification settings - Fork 33
Refactor Diagnostics #119
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
Refactor Diagnostics #119
Conversation
CatarinaGamboa
left a comment
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.
great!
| * Base class for all LiquidJava errors | ||
| */ | ||
| public abstract class LJError { | ||
| public abstract class LJError extends LJDiagnostic { |
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.
nicee
| tc.getContext().addVarToContext(name, r, new Predicate(), e); | ||
| tc.getContext().addVarToContext(nameOld, r, new Predicate(), e); | ||
| // TODO REVIEW!! | ||
| // what is it for? |
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.
we can remove these comments afterwards or actually give a comment for what we are doing here
This PR is a follow-up of #110.
It refactors errors and warnings and also gives them a better look.
Additional Improvements
true && ...from found ghost statesNext Steps
Allow for multiple errors by instead of stopping verification when an error is found, throw the error and catch it on visitors (
visitCtMethod,visitCtClass,visitCtField), add it to the collection and keep the verification going.