mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix source location for `if` statements.
This commit is contained in:
committed by
chriseth
parent
46514ffad2
commit
f9f32c910d
@@ -107,6 +107,7 @@ Statement Parser::parseStatement()
|
||||
advance();
|
||||
_if.condition = make_unique<Expression>(parseExpression());
|
||||
_if.body = parseBlock();
|
||||
_if.debugData = updateLocationEndFrom(_if.debugData, _if.body.debugData->location);
|
||||
return Statement{move(_if)};
|
||||
}
|
||||
case Token::Switch:
|
||||
|
||||
Reference in New Issue
Block a user