Parser.peekNIsOneOf

bool peekNIsOneOf(size_t offset, IdType[] types...) const pure nothrow @safe @nogc

Returns

true if there is a token offset tokens after the current one

and its type is one of the given types.