mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parse @ast-id annotation.
This commit is contained in:
+13
-5
@@ -38,14 +38,22 @@ using Type = YulString;
|
||||
|
||||
struct DebugData
|
||||
{
|
||||
explicit DebugData(langutil::SourceLocation _location): location(std::move(_location)) {}
|
||||
explicit DebugData(langutil::SourceLocation _location, std::optional<int64_t> _astID = {}):
|
||||
location(std::move(_location)),
|
||||
astID(std::move(_astID))
|
||||
{}
|
||||
|
||||
static std::shared_ptr<DebugData const> create(
|
||||
langutil::SourceLocation _location = {},
|
||||
std::optional<int64_t> _astID = {}
|
||||
)
|
||||
{
|
||||
return std::make_shared<DebugData const>(std::move(_location), std::move(_astID));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
};
|
||||
|
||||
struct TypedName { std::shared_ptr<DebugData const> debugData; YulString name; Type type; };
|
||||
|
||||
Reference in New Issue
Block a user