From 0400e61e284bd595384d859752d97993b1f5ca45 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 5 Jul 2017 19:45:12 +0200 Subject: Deprecate throw. --- libsolidity/analysis/SyntaxChecker.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libsolidity/analysis/SyntaxChecker.h') diff --git a/libsolidity/analysis/SyntaxChecker.h b/libsolidity/analysis/SyntaxChecker.h index ec6ac434..fb5cc6d7 100644 --- a/libsolidity/analysis/SyntaxChecker.h +++ b/libsolidity/analysis/SyntaxChecker.h @@ -33,6 +33,7 @@ namespace solidity * - whether continue/break is in a for/while loop. * - whether a modifier contains at least one '_' * - issues deprecation warnings for unary '+' + * - issues deprecation warning for throw */ class SyntaxChecker: private ASTConstVisitor { @@ -59,6 +60,8 @@ private: virtual bool visit(Continue const& _continueStatement) override; virtual bool visit(Break const& _breakStatement) override; + virtual bool visit(Throw const& _throwStatement) override; + virtual bool visit(UnaryOperation const& _operation) override; virtual bool visit(PlaceholderStatement const& _placeholderStatement) override; -- cgit