diff options
author | Gaming4JC <g4jc@hyperbola.info> | 2019-06-09 22:30:59 -0400 |
---|---|---|
committer | Gaming4JC <g4jc@hyperbola.info> | 2019-07-18 22:38:38 -0400 |
commit | 57a8b65fc0c4bd12149855d972aea05828e4d6e7 (patch) | |
tree | 0424a2beee269c32695ae81a38106405863e6cf6 /js/src/frontend/SyntaxParseHandler.h | |
parent | f39640128068a3816a9bfc28d619f8fa8f161435 (diff) | |
download | UXP-57a8b65fc0c4bd12149855d972aea05828e4d6e7.tar UXP-57a8b65fc0c4bd12149855d972aea05828e4d6e7.tar.gz UXP-57a8b65fc0c4bd12149855d972aea05828e4d6e7.tar.lz UXP-57a8b65fc0c4bd12149855d972aea05828e4d6e7.tar.xz UXP-57a8b65fc0c4bd12149855d972aea05828e4d6e7.zip |
1339963 - Part 1: Split Parser::exportDeclaration.
Diffstat (limited to 'js/src/frontend/SyntaxParseHandler.h')
-rw-r--r-- | js/src/frontend/SyntaxParseHandler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/frontend/SyntaxParseHandler.h b/js/src/frontend/SyntaxParseHandler.h index aa85a631e..f492bab66 100644 --- a/js/src/frontend/SyntaxParseHandler.h +++ b/js/src/frontend/SyntaxParseHandler.h @@ -241,6 +241,10 @@ class SyntaxParseHandler return NodeUnparenthesizedUnary; } + Node newNullary(ParseNodeKind kind, JSOp op, const TokenPos& pos) { + return NodeGeneric; + } + Node newUnary(ParseNodeKind kind, JSOp op, uint32_t begin, Node kid) { return NodeUnparenthesizedUnary; } @@ -308,6 +312,16 @@ class SyntaxParseHandler MOZ_MUST_USE bool prependInitialYield(Node stmtList, Node gen) { return true; } Node newEmptyStatement(const TokenPos& pos) { return NodeEmptyStatement; } + Node newExportDeclaration(Node kid, const TokenPos& pos) { + return NodeGeneric; + } + Node newExportFromDeclaration(uint32_t begin, Node exportSpecSet, Node moduleSpec) { + return NodeGeneric; + } + Node newExportDefaultDeclaration(Node kid, Node maybeBinding, const TokenPos& pos) { + return NodeGeneric; + } + Node newSetThis(Node thisName, Node value) { return value; } Node newExprStatement(Node expr, uint32_t end) { |