Implement AST validation #29
Labels
A-parser
Area: parsing source code to an AST
C-enhancement
Category: an issue proposing an enhancement or a PR with one
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
P-medium
Medium priority
We must verify correctness of the parsed AST.
A few examples:
continue
andbreak
are only allowed inside of a loopunchecked {}
blocks can only be used inside of regular blocks_;
) are only allowed in modifiersSolc is more strict in the parser, so some of these checks can be found in the parser, while others are found in visitors, like
SyntaxChecker
andContractLevelChecker
.The text was updated successfully, but these errors were encountered: