Fix function calls with named arguments for overloaded functions

This commit is contained in:
Mathias Baumann
2019-03-20 14:54:41 +01:00
parent b021f015f9
commit 84b68006ba
13 changed files with 163 additions and 25 deletions
+16
View File
@@ -22,6 +22,7 @@
#pragma once
#include <liblangutil/Exceptions.h>
#include <libsolidity/ast/ASTForward.h>
#include <string>
@@ -50,5 +51,20 @@ inline std::string stateMutabilityToString(StateMutability const& _stateMutabili
}
}
class Type;
/// Container for function call parameter types & names
struct FuncCallArguments
{
/// Types of arguments
std::vector<std::shared_ptr<Type const>> types;
/// Names of the arguments if given, otherwise unset
std::vector<ASTPointer<ASTString>> names;
size_t numArguments() const { return types.size(); }
size_t numNames() const { return names.size(); }
bool hasNamedArguments() const { return !names.empty(); }
};
}
}