Move modifier context check to PostTypeChecker

refs #7566
This commit is contained in:
Mathias Baumann
2020-01-08 14:05:08 +01:00
committed by chriseth
parent 5ad590cf0b
commit 9f8d49e358
4 changed files with 52 additions and 18 deletions
+4
View File
@@ -36,6 +36,7 @@ namespace solidity::frontend
* This module performs analyses on the AST that are done after type checking and assignments of types:
* - whether there are circular references in constant state variables
* - whether override specifiers are actually contracts
* - whether a modifier is in a function header
*
* When adding a new checker, make sure a visitor that forwards calls that your
* checker uses exists in PostTypeChecker. Add missing ones.
@@ -69,6 +70,9 @@ private:
bool visit(Identifier const& _identifier) override;
bool visit(ModifierInvocation const& _modifierInvocation) override;
void endVisit(ModifierInvocation const& _modifierInvocation) override;
template <class T>
bool callVisit(T const& _node)
{