mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add new annotations for Scopables
This commit is contained in:
@@ -1171,6 +1171,8 @@ public:
|
||||
|
||||
std::vector<ASTPointer<Statement>> const& statements() const { return m_statements; }
|
||||
|
||||
BlockAnnotation& annotation() const override;
|
||||
|
||||
private:
|
||||
std::vector<ASTPointer<Statement>> m_statements;
|
||||
};
|
||||
@@ -1250,6 +1252,8 @@ public:
|
||||
ParameterList const* parameters() const { return m_parameters.get(); }
|
||||
Block const& block() const { return *m_block; }
|
||||
|
||||
TryCatchClauseAnnotation& annotation() const override;
|
||||
|
||||
private:
|
||||
ASTPointer<ASTString> m_errorName;
|
||||
ASTPointer<ParameterList> m_parameters;
|
||||
@@ -1359,6 +1363,8 @@ public:
|
||||
ExpressionStatement const* loopExpression() const { return m_loopExpression.get(); }
|
||||
Statement const& body() const { return *m_body; }
|
||||
|
||||
ForStatementAnnotation& annotation() const override;
|
||||
|
||||
private:
|
||||
/// For statement's initialization expression. for (XXX; ; ). Can be empty
|
||||
ASTPointer<Statement> m_initExpression;
|
||||
|
||||
Reference in New Issue
Block a user