mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move peek closer
This commit is contained in:
parent
65c262d744
commit
5d4f12b9a7
@ -40,15 +40,6 @@ using namespace std;
|
||||
|
||||
using Token = soltest::Token;
|
||||
|
||||
char TestFileParser::Scanner::peek() const noexcept
|
||||
{
|
||||
if (std::distance(m_char, m_source.end()) < 2)
|
||||
return '\0';
|
||||
|
||||
auto next = m_char;
|
||||
std::advance(next, 1);
|
||||
return *next;
|
||||
}
|
||||
|
||||
vector<solidity::frontend::test::FunctionCall> TestFileParser::parseFunctionCalls(size_t _lineOffset)
|
||||
{
|
||||
@ -489,6 +480,16 @@ string TestFileParser::parseString()
|
||||
return literal;
|
||||
}
|
||||
|
||||
char TestFileParser::Scanner::peek() const noexcept
|
||||
{
|
||||
if (std::distance(m_char, m_source.end()) < 2)
|
||||
return '\0';
|
||||
|
||||
auto next = m_char;
|
||||
std::advance(next, 1);
|
||||
return *next;
|
||||
}
|
||||
|
||||
void TestFileParser::Scanner::scanNextToken()
|
||||
{
|
||||
// Make code coverage happy.
|
||||
|
Loading…
Reference in New Issue
Block a user