summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/TokenStream.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-08 15:37:06 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:16 -0400
commitf6193fd0f4689643f47c6ac9aa5aac3b8cc10213 (patch)
tree2dbce005d5e57b4f9f8bd40cefc813492eadf4fd /js/src/frontend/TokenStream.h
parentc3e3a917d634ee1e550b2a19096ee99dc2024139 (diff)
downloadUXP-f6193fd0f4689643f47c6ac9aa5aac3b8cc10213.tar
UXP-f6193fd0f4689643f47c6ac9aa5aac3b8cc10213.tar.gz
UXP-f6193fd0f4689643f47c6ac9aa5aac3b8cc10213.tar.lz
UXP-f6193fd0f4689643f47c6ac9aa5aac3b8cc10213.tar.xz
UXP-f6193fd0f4689643f47c6ac9aa5aac3b8cc10213.zip
1326454 - Introduce TokenStream::error that reports an error at the current offset.
Diffstat (limited to 'js/src/frontend/TokenStream.h')
-rw-r--r--js/src/frontend/TokenStream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/frontend/TokenStream.h b/js/src/frontend/TokenStream.h
index 6ba9fba5a..f08d317ba 100644
--- a/js/src/frontend/TokenStream.h
+++ b/js/src/frontend/TokenStream.h
@@ -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