From 42739b73b19eeaa78b94d5a92d42e38af5e48456 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 31 Aug 2021 16:23:16 +0200 Subject: [PATCH] Extend debug info. --- libyul/AST.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libyul/AST.h b/libyul/AST.h index 01eece34d..bfc721ce5 100644 --- a/libyul/AST.h +++ b/libyul/AST.h @@ -29,6 +29,7 @@ #include #include +#include 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 astID; static std::shared_ptr create(langutil::SourceLocation _location = {}) { return std::make_shared(_location);