src/vm/oba_compiler.c
static void consume(Compiler* compiler, TokenType expected,
                    const char* errorMessage) {
  nextToken(compiler);
  if (compiler->parser->previous.type != expected) {
    error(compiler, errorMessage);
    if (compiler->parser->current.type == expected) {
      nextToken(compiler);
    }
  }
}
// Moves past the next token which must have the [expected] type.
// If the type is not as expected, this emits an error and attempts to continue
// parsing at the next token.
Moves past the next token which must have the [expected] type.
If the type is not as expected, this emits an error and attempts to continue
parsing at the next token.
Moves past the next token which must have the [ expected ] type . If the type is not as expected this emits an error and attempts to continue parsing at the next token .
static void consume(Compiler* compiler, TokenType expected,
                    const char* errorMessage) {
  nextToken(compiler);
  if (compiler->parser->previous.type != expected) {
    error(compiler, errorMessage);
    if (compiler->parser->current.type == expected) {
      nextToken(compiler);
    }
  }
}
static void consume ( Compiler * compiler , TokenType expected , const char * errorMessage ) { nextToken ( compiler ) ; if ( compiler -> parser -> previous . type != expected ) { error ( compiler , errorMessage ) ; if ( compiler -> parser -> current . type == expected ) { nextToken ( compiler ) ; } } }
Moves past the next token which must have the [expected] type.
Moves past the next token which must have the [ expected ] type .