* @brief Constructs the parser over a proto3 source buffer; primes the lookahead token. */
| 355 | * @brief Constructs the parser over a proto3 source buffer; primes the lookahead token. |
| 356 | */ |
| 357 | Parser::Parser(const QString& src, |
| 358 | QString& packageOut, |
| 359 | QVector<DataModel::ProtoMessage>& outMessages) |
| 360 | : m_lexer(src), m_packageOut(packageOut), m_messages(outMessages) |
| 361 | { |
| 362 | m_cur = m_lexer.next(); |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * @brief Returns true and advances if the current token matches kind t. |
no test coverage detected