MCPcopy Create free account
hub / github.com/argotorg/solidity / parseFunctionCallSideEffects

Method parseFunctionCallSideEffects

test/libsolidity/util/TestFileParser.cpp:219–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219std::vector<std::string> TestFileParser::parseFunctionCallSideEffects()
220{
221 std::vector<std::string> result;
222 while (accept(Token::Tilde, false))
223 {
224 std::string effect = m_scanner.currentLiteral();
225 result.emplace_back(effect);
226 soltestAssert(m_scanner.currentToken() == Token::Tilde, "");
227 m_scanner.scanNextToken();
228 if (m_scanner.currentToken() == Token::Newline)
229 m_scanner.scanNextToken();
230 }
231
232 return result;
233}
234
235bool TestFileParser::accept(Token _token, bool const _expect)
236{

Callers

nothing calls this directly

Calls 3

scanNextTokenMethod · 0.80
currentLiteralMethod · 0.45
currentTokenMethod · 0.45

Tested by

no test coverage detected