mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make position optional in dev::validate
This commit is contained in:
@@ -417,9 +417,8 @@ bool ASTJsonConverter::visit(ElementaryTypeNameExpression const& _node)
|
||||
bool ASTJsonConverter::visit(Literal const& _node)
|
||||
{
|
||||
char const* tokenString = Token::toString(_node.token());
|
||||
size_t invalidPos = 0;
|
||||
Json::Value value{_node.value()};
|
||||
if (!dev::validate(_node.value(), invalidPos))
|
||||
if (!dev::validate(_node.value()))
|
||||
value = Json::nullValue;
|
||||
Token::Value subdenomination = Token::Value(_node.subDenomination());
|
||||
addJsonNode(_node, "Literal", {
|
||||
|
||||
Reference in New Issue
Block a user