diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-08 15:48:25 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:17 -0400 |
commit | b41de8683d8d28d08a6e2b79511610a268342a0e (patch) | |
tree | 82fa4225aaad95443ba9d82599d4d28582bfcdb6 /js/src/frontend/TokenStream.h | |
parent | 068916b59a847bede7c6c788e803442c1833fe67 (diff) | |
download | UXP-b41de8683d8d28d08a6e2b79511610a268342a0e.tar UXP-b41de8683d8d28d08a6e2b79511610a268342a0e.tar.gz UXP-b41de8683d8d28d08a6e2b79511610a268342a0e.tar.lz UXP-b41de8683d8d28d08a6e2b79511610a268342a0e.tar.xz UXP-b41de8683d8d28d08a6e2b79511610a268342a0e.zip |
1326454 - Rename TokenStream::getBracedUnicode to TokenStream::matchBracedUnicode and make its signature fallible.
Diffstat (limited to 'js/src/frontend/TokenStream.h')
-rw-r--r-- | js/src/frontend/TokenStream.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/src/frontend/TokenStream.h b/js/src/frontend/TokenStream.h index 18e9cb3ca..19385b499 100644 --- a/js/src/frontend/TokenStream.h +++ b/js/src/frontend/TokenStream.h @@ -368,6 +368,9 @@ class MOZ_STACK_CLASS TokenStream // Report the given error at the current offset. void error(unsigned errorNumber, ...); + // Report the given error at the given offset. + void errorAt(uint32_t offset, unsigned errorNumber, ...); + // Warn at the current offset. MOZ_MUST_USE bool warning(unsigned errorNumber, ...); @@ -952,7 +955,7 @@ class MOZ_STACK_CLASS TokenStream MOZ_MUST_USE bool getTokenInternal(TokenKind* ttp, Modifier modifier); - MOZ_MUST_USE bool getBracedUnicode(uint32_t* code); + MOZ_MUST_USE bool matchBracedUnicode(bool* matched, uint32_t* code); MOZ_MUST_USE bool getStringOrTemplateToken(int untilChar, Token** tp); int32_t getChar(); |