Move Literal to u256 conversions to extra functions

That way we can reuse them at different places
This commit is contained in:
Mathias Baumann
2019-03-05 18:39:27 +01:00
parent 40171c216d
commit 921d52bfcd
4 changed files with 44 additions and 28 deletions
+3
View File
@@ -27,6 +27,9 @@ namespace yul
{
dev::u256 valueOfNumberLiteral(Literal const& _literal);
dev::u256 valueOfStringLiteral(Literal const& _literal);
dev::u256 valueOfBoolLiteral(Literal const& _literal);
dev::u256 valueOfLiteral(Literal const& _literal);
/**
* Linear order on Yul AST nodes.