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);