mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
AST for ErrorDefinition
This commit is contained in:
parent
8f744c1d0d
commit
849ad9a190
@ -1048,6 +1048,28 @@ private:
|
||||
std::unique_ptr<std::vector<ASTPointer<Expression>>> m_arguments;
|
||||
};
|
||||
|
||||
class ErrorDefinition: public Declaration, public StructurallyDocumented
|
||||
{
|
||||
public:
|
||||
ErrorDefinition(
|
||||
int64_t _id,
|
||||
SourceLocation const& _location,
|
||||
ASTPointer<ASTString> const& _name,
|
||||
ASTPointer<StructuredDocumentation> const& _documentation,
|
||||
ASTPointer<ParameterList> const& _parameters
|
||||
):
|
||||
Declaration(_id, _location, _name),
|
||||
StructurallyDocumented(_documentation),
|
||||
m_parameters(std::move(_parameters))
|
||||
{
|
||||
}
|
||||
|
||||
TypePointer type() const override;
|
||||
|
||||
private:
|
||||
ASTPointer<ParameterList> m_parameters;
|
||||
};
|
||||
|
||||
/**
|
||||
* Definition of a (loggable) event.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user