aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/AST.h
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-15 22:33:14 +0800
committerLianaHus <liana@ethdev.com>2015-09-16 19:25:32 +0800
commit279a36b6f8249df48b92574437f57742897841a5 (patch)
treeb40646e4a672ed61610c15a8e3bd28040436acae /libsolidity/AST.h
parent9d43f2c186d1ad4027d42f6b155bea5500efa0e5 (diff)
downloaddexon-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.h12
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;