C/parser/Parser.cpp
void Parser::skipTo(SyntaxKind tkK)
{
    auto curTkK = peek().kind();
    while (curTkK != tkK) {
        if (curTkK == EndOfFile)
            return;
        consume();
        curTkK = peek().kind();
    }
}
/**
 * Skip until a token of the given kind is found.
 */
Skip until a token of the given kind is found.
Skip until a token of the given kind is found .
void Parser::skipTo(SyntaxKind tkK)
{
    auto curTkK = peek().kind();
    while (curTkK != tkK) {
        if (curTkK == EndOfFile)
            return;
        consume();
        curTkK = peek().kind();
    }
}
void Parser :: skipTo ( SyntaxKind tkK ) { auto curTkK = peek ( ) . kind ( ) ; while ( curTkK != tkK ) { if ( curTkK == EndOfFile ) return ; consume ( ) ; curTkK = peek ( ) . kind ( ) ; } }
Skip until a token of the given kind is found.
Skip until a token of the given kind is found .