mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extend debug info.
This commit is contained in:
parent
0d7f6598e8
commit
42739b73b1
@ -29,6 +29,7 @@
|
||||
#include <liblangutil/SourceLocation.h>
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
namespace solidity::yul
|
||||
{
|
||||
@ -39,6 +40,8 @@ struct DebugData
|
||||
{
|
||||
explicit DebugData(langutil::SourceLocation _location): location(std::move(_location)) {}
|
||||
langutil::SourceLocation location;
|
||||
/// ID in the (Solidity) source AST.
|
||||
std::optional<int64_t> astID;
|
||||
static std::shared_ptr<DebugData const> create(langutil::SourceLocation _location = {})
|
||||
{
|
||||
return std::make_shared<DebugData const>(_location);
|
||||
|
Loading…
Reference in New Issue
Block a user