mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
C++ namespace cleanup (except tests).
This commit is contained in:
committed by
Daniel Kirchner
parent
8385256bdc
commit
6b23412fae
@@ -28,20 +28,17 @@
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
namespace langutil
|
||||
namespace solidity::langutil
|
||||
{
|
||||
struct SourceLocation;
|
||||
}
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace eth
|
||||
namespace solidity::evmasm
|
||||
{
|
||||
enum class Instruction: uint8_t;
|
||||
}
|
||||
}
|
||||
|
||||
namespace yul
|
||||
namespace solidity::yul
|
||||
{
|
||||
struct Identifier;
|
||||
|
||||
@@ -63,9 +60,9 @@ public:
|
||||
virtual int stackHeight() const = 0;
|
||||
virtual void setStackHeight(int height) = 0;
|
||||
/// Append an EVM instruction.
|
||||
virtual void appendInstruction(dev::eth::Instruction _instruction) = 0;
|
||||
virtual void appendInstruction(evmasm::Instruction _instruction) = 0;
|
||||
/// Append a constant.
|
||||
virtual void appendConstant(dev::u256 const& _constant) = 0;
|
||||
virtual void appendConstant(u256 const& _constant) = 0;
|
||||
/// Append a label.
|
||||
virtual void appendLabel(LabelID _labelId) = 0;
|
||||
/// Append a label reference.
|
||||
@@ -107,7 +104,7 @@ public:
|
||||
/// Appends the size of the given sub-assembly or data.
|
||||
virtual void appendDataSize(SubID _sub) = 0;
|
||||
/// Appends the given data to the assembly and returns its ID.
|
||||
virtual SubID appendData(dev::bytes const& _data) = 0;
|
||||
virtual SubID appendData(bytes const& _data) = 0;
|
||||
};
|
||||
|
||||
enum class IdentifierContext { LValue, RValue, VariableDeclaration };
|
||||
|
||||
Reference in New Issue
Block a user