This is an archive of the discontinued LLVM Phabricator instance.

Make Parser::Consume*Token methods public.
Needs ReviewPublic

Authored by marsupial on Aug 14 2017, 11:15 AM.

Details

Reviewers
rsmith
Summary

The fix in r303372 exposed a problem when using Parser::ConsumeToken from client code in DEBUG.
ConsumeToken will assert for all isTokenSpecial() cases, but there is no way to call the proper method.

The isToken methods are just convenient.

Diff Detail

Event Timeline