Function Parser.currentIs

final bool currentIs (
  ubyte type
) pure nothrow @nogc @safe const;

Returns

true if the current token has the given type