1326454 - Introduce TokenStream::error that reports an error at the current offset.

This commit is contained in:
Gaming4JC 2019-06-08 15:37:06 -04:00 committed by Roy Tam
commit c94ed16b4f
2 changed files with 30 additions and 10 deletions

View file

@ -366,6 +366,9 @@ class MOZ_STACK_CLASS TokenStream
bool reportErrorNoOffset(unsigned errorNumber, ...);
bool reportWarning(unsigned errorNumber, ...);
// Report the given error at the current offset.
void error(unsigned errorNumber, ...);
static const uint32_t NoOffset = UINT32_MAX;
// General-purpose error reporters. You should avoid calling these