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

Method skipSingleLineComment

liblangutil/Scanner.cpp:309–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309Token Scanner::skipSingleLineComment()
310{
311 // Line terminator is not part of the comment. If it is a
312 // non-ascii line terminator, it will result in a parser error.
313 size_t startPosition = m_source.position();
314 while (!isUnicodeLinebreak())
315 if (!advance())
316 break;
317
318 ScannerError unicodeDirectionError = validateBiDiMarkup(m_source, startPosition);
319 if (unicodeDirectionError != ScannerError::NoError)
320 return setError(unicodeDirectionError);
321
322 return Token::Whitespace;
323}
324
325bool Scanner::atEndOfLine() const
326{

Callers

nothing calls this directly

Calls 2

validateBiDiMarkupFunction · 0.85
positionMethod · 0.45

Tested by

no test coverage detected