mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1758 from chriseth/sol_astRefactor
AST visitor refactoring.
This commit is contained in:
commit
240365fd76
@ -50,14 +50,12 @@ public:
|
|||||||
FirstExpressionExtractor(ASTNode& _node): m_expression(nullptr) { _node.accept(*this); }
|
FirstExpressionExtractor(ASTNode& _node): m_expression(nullptr) { _node.accept(*this); }
|
||||||
Expression* getExpression() const { return m_expression; }
|
Expression* getExpression() const { return m_expression; }
|
||||||
private:
|
private:
|
||||||
virtual bool visit(Expression& _expression) override { return checkExpression(_expression); }
|
|
||||||
virtual bool visit(Assignment& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(Assignment& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(UnaryOperation& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(UnaryOperation& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(BinaryOperation& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(BinaryOperation& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(FunctionCall& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(FunctionCall& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(MemberAccess& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(MemberAccess& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(IndexAccess& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(IndexAccess& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(PrimaryExpression& _expression) override { return checkExpression(_expression); }
|
|
||||||
virtual bool visit(Identifier& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(Identifier& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(ElementaryTypeNameExpression& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(ElementaryTypeNameExpression& _expression) override { return checkExpression(_expression); }
|
||||||
virtual bool visit(Literal& _expression) override { return checkExpression(_expression); }
|
virtual bool visit(Literal& _expression) override { return checkExpression(_expression); }
|
||||||
|
Loading…
Reference in New Issue
Block a user