std.d.
parser
.
Parser
.expect
public const(Token)* expect(IdType type)
Returns a token of the specified type if it was the next token, otherwise calls the error function and returns null.