MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / accept

Method accept

app/src/DataModel/Importers/ProtoImporter.cpp:368–375  ·  view source on GitHub ↗

* @brief Returns true and advances if the current token matches kind t. */

Source from the content-addressed store, hash-verified

366 * @brief Returns true and advances if the current token matches kind t.
367 */
368bool Parser::accept(Tok t)
369{
370 if (m_cur.type == t) {
371 advance();
372 return true;
373 }
374 return false;
375}
376
377/**
378 * @brief Consumes a required token kind or records a parse error and returns false.

Callers 15

mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80
mouseMoveEventMethod · 0.80
mouseDoubleClickEventMethod · 0.80
handleDragMoveMethod · 0.80
handleResizeMoveMethod · 0.80
mousePressEventMethod · 0.80
mouseDoubleClickEventMethod · 0.80
wheelEventMethod · 0.80
mouseMoveEventMethod · 0.80
mousePressEventMethod · 0.80
mouseReleaseEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected