Parser.peekIsOneOf

bool peekIsOneOf(IdType[] types...) const pure nothrow @safe @nogc

Returns

true if there is a next token and its type is one of the given

types.