-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat: variable declaration statements are not allowed as the body of loop #158
feat: variable declaration statements are not allowed as the body of loop #158
Conversation
Co-authored-by: DaniPopes <[email protected]>
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.
LGTM
Well let me also change the error message in case of if statement. We can't say "... as body of the loop"
Got it from here https://github.com/ethereum/solidity/blob/a62a455039120da834fd5faac2e0db8fc222c10d/libsolidity/analysis/SyntaxChecker.cpp#L194C68-L194C120 |
Merged main + I have also cleaned some changes that happened in |
Visit the inner fields using `walk_stmt` or falling through to the default one.
AST Validation improvement