mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add assert about source location.
This commit is contained in:
parent
6c8f78fb8f
commit
3ca6738114
@ -54,6 +54,7 @@ public:
|
|||||||
template <class NodeType, typename... Args>
|
template <class NodeType, typename... Args>
|
||||||
ASTPointer<NodeType> createNode(Args&& ... _args)
|
ASTPointer<NodeType> createNode(Args&& ... _args)
|
||||||
{
|
{
|
||||||
|
solAssert(m_location.sourceName, "");
|
||||||
if (m_location.end < 0)
|
if (m_location.end < 0)
|
||||||
markEndPosition();
|
markEndPosition();
|
||||||
return make_shared<NodeType>(m_location, forward<Args>(_args)...);
|
return make_shared<NodeType>(m_location, forward<Args>(_args)...);
|
||||||
|
Loading…
Reference in New Issue
Block a user