mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7094 from ethereum/isoltest-arrow-optional
[isoltest] Introduce shorthand declaration: make `->` optional.
This commit is contained in:
@@ -95,11 +95,19 @@ vector<dev::solidity::test::FunctionCall> TestFileParser::parseFunctionCalls(siz
|
||||
m_lineNumber++;
|
||||
}
|
||||
|
||||
expect(Token::Arrow);
|
||||
call.expectations = parseFunctionCallExpectations();
|
||||
if (accept(Token::Arrow, true))
|
||||
{
|
||||
call.omitsArrow = false;
|
||||
call.expectations = parseFunctionCallExpectations();
|
||||
if (accept(Token::Newline, true))
|
||||
m_lineNumber++;
|
||||
}
|
||||
else
|
||||
{
|
||||
call.expectations.failure = false;
|
||||
call.displayMode = FunctionCall::DisplayMode::SingleLine;
|
||||
}
|
||||
|
||||
if (accept(Token::Newline, true))
|
||||
m_lineNumber++;
|
||||
call.expectations.comment = parseComment();
|
||||
|
||||
if (call.signature == "constructor()")
|
||||
|
||||
Reference in New Issue
Block a user