Function Parser.peekNIsOneOf

final bool peekNIsOneOf (
  ulong offset,
  scope ubyte[] types...
) pure nothrow @nogc @safe const;

Returns

true if there is a token offset tokens after the current one and its type is one of the given types.