diff options
author | LianaHus <liana@ethdev.com> | 2015-09-15 22:33:14 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-16 19:25:32 +0800 |
commit | 279a36b6f8249df48b92574437f57742897841a5 (patch) | |
tree | b40646e4a672ed61610c15a8e3bd28040436acae /libsolidity/AST.h | |
parent | 9d43f2c186d1ad4027d42f6b155bea5500efa0e5 (diff) | |
download | dexon-solidity-279a36b6f8249df48b92574437f57742897841a5.tar.gz dexon-solidity-279a36b6f8249df48b92574437f57742897841a5.tar.zst dexon-solidity-279a36b6f8249df48b92574437f57742897841a5.zip |
throw statement implementation
Diffstat (limited to 'libsolidity/AST.h')
-rw-r--r-- | libsolidity/AST.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libsolidity/AST.h b/libsolidity/AST.h index da6a7d58..db83cf59 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -969,6 +969,18 @@ private: }; /** + * @brief The Throw statement to throw that triggers a solidity exception(jump to ErrorTag) + */ +class Throw: public Statement +{ +public: + Throw(SourceLocation const& _location): Statement(_location) {} + virtual void accept(ASTVisitor& _visitor) override; + virtual void accept(ASTConstVisitor& _visitor) const override; + virtual void checkTypeRequirements() override{}; +}; + +/** * Definition of a variable as a statement inside a function. It requires a type name (which can * also be "var") but the actual assignment can be missing. * Examples: var a = 2; uint256 a; |