mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reimplement constant evaluator.
This commit is contained in:
committed by
Leonardo Alt
parent
49bde69afa
commit
c5d172c058
@@ -568,6 +568,11 @@ public:
|
||||
u256 literalValue(Literal const* _literal) const override;
|
||||
TypePointer mobileType() const override;
|
||||
|
||||
/// @returns the underlying raw literal value.
|
||||
///
|
||||
/// @see literalValue(Literal const*))
|
||||
rational const& value() const noexcept { return m_value; }
|
||||
|
||||
/// @returns the smallest integer type that can hold the value or an empty pointer if not possible.
|
||||
IntegerType const* integerType() const;
|
||||
/// @returns the smallest fixed type that can hold the value or incurs the least precision loss,
|
||||
|
||||
Reference in New Issue
Block a user