mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Assert integrity of empty IndexAccessPath structure.
This commit is contained in:
@@ -1098,6 +1098,16 @@ ASTPointer<Statement> Parser::parseSimpleStatement(ASTPointer<ASTString> const&
|
||||
}
|
||||
}
|
||||
|
||||
bool Parser::IndexAccessedPath::empty() const
|
||||
{
|
||||
if (!indices.empty())
|
||||
{
|
||||
solAssert(!path.empty(), "");
|
||||
}
|
||||
return path.empty() && indices.empty();
|
||||
}
|
||||
|
||||
|
||||
pair<Parser::LookAheadInfo, Parser::IndexAccessedPath> Parser::tryParseIndexAccessedPath()
|
||||
{
|
||||
// These two cases are very hard to distinguish:
|
||||
|
||||
Reference in New Issue
Block a user