| 307 | } |
| 308 | |
| 309 | Token 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 | |
| 325 | bool Scanner::atEndOfLine() const |
| 326 | { |
nothing calls this directly
no test coverage detected