Skip to content

Commit

Permalink
Extend debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Sep 16, 2021
1 parent 0d7f659 commit 42739b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libyul/AST.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <liblangutil/SourceLocation.h>

#include <memory>
#include <optional>

namespace solidity::yul
{
Expand All @@ -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);
Expand Down

0 comments on commit 42739b7

Please sign in to comment.