mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding a ForStatement solidity AST Node.
- Adding ForStatement node - Implemented Parsing for ForStatement - A simple parsing test for the ForStatement - Work in progress
This commit is contained in:
@@ -130,6 +130,13 @@ void WhileStatement::checkTypeRequirements()
|
||||
m_body->checkTypeRequirements();
|
||||
}
|
||||
|
||||
void ForStatement::checkTypeRequirements()
|
||||
{
|
||||
// LTODO
|
||||
m_condExpression->expectType(BoolType());
|
||||
m_body->checkTypeRequirements();
|
||||
}
|
||||
|
||||
void Return::checkTypeRequirements()
|
||||
{
|
||||
if (!m_expression)
|
||||
|
||||
Reference in New Issue
Block a user