GLib.Scanner.prototype.get_next_token

function get_next_token(): GLib.TokenType {
    // Gjs wrapper for g_scanner_get_next_token()
}
  

Parses the next token just like GLib.Scanner.prototype.peek_next_token and also removes it from the input stream. The token data is placed in the @token, @value, @line, and @position fields of the GLib.Scanner structure.

Returns

the type of the token