mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Support named arguments in function calls
This commit is contained in:
@@ -1908,7 +1908,13 @@ public:
|
||||
void accept(ASTConstVisitor& _visitor) const override;
|
||||
|
||||
Expression const& expression() const { return *m_expression; }
|
||||
/// @returns the given arguments in the order they were written.
|
||||
std::vector<ASTPointer<Expression const>> arguments() const { return {m_arguments.begin(), m_arguments.end()}; }
|
||||
/// @returns the given arguments sorted by how the called function takes them.
|
||||
std::vector<ASTPointer<Expression const>> sortedArguments() const;
|
||||
/// @returns the list of given argument names if this is a named call,
|
||||
/// in the order they were written.
|
||||
/// If this is not a named call, this is empty.
|
||||
std::vector<ASTPointer<ASTString>> const& names() const { return m_names; }
|
||||
|
||||
FunctionCallAnnotation& annotation() const override;
|
||||
|
||||
Reference in New Issue
Block a user