summaryrefslogtreecommitdiffstats
path: root/js/src/frontend/Parser.h
Commit message (Collapse)AuthorAgeLines
* 1303703 - Part 3: Syntax parse destructuring assignment patterns.Gaming4JC2019-07-18-20/+33
|
* 1303703 - Part 2: Clean-up bits of destructuring parsing which are no longer ↵Gaming4JC2019-07-18-14/+5
| | | | needed.
* 1303703 - Part 1: Separate binding pattern parsing from object/array literal ↵Gaming4JC2019-07-18-11/+19
| | | | parsing.
* 420857 - Part 1: Report the position of opening brace for missing brace ↵Gaming4JC2019-07-18-0/+2
| | | | error in function body.
* 1357506 - Remove assert that constructorBox can only be set once when ↵Gaming4JC2019-07-18-18/+3
| | | | | | | parsing classes. Both asm.js and syntax parsing can abort and rewind parsing of an inner function. The bookkeeping to make sure that a class's constructor FunctionBox is only set once is not worth it -- duplicate constructor definitions already throw an early error.
* 1216630 - Rename preludeStart and postludeEnd to toStringStart and ↵Gaming4JC2019-07-18-9/+9
| | | | toStringEnd and misc fixes.
* 1216630 - Print class source when calling toString on the constructor.Gaming4JC2019-07-18-0/+37
| | | | | | | | | | This is accomplished in the following ways. LazyScripts and JSScripts now have 4 offsets: - Source begin and end for the actual source. This is used for lazy parsing. - toString begin and end for toString. Some kinds of functions, like async, only have a different begin offset. Class constructors have different offsets for both begin and end. For syntactically present (i.e. non-default) constructors, the class source span is remembered directly on the LazyScript or JSScript. The toString implementation then splices out the substring directly. For default constructors, a new SRC_CLASS SrcNote type is added. It's binary and has as its arguments the begin and end offsets of the class expression or statement. MakeDefaultConstructor reads the note and overrides the cloned self-hosted function's source object. This is probably the least intrusive way to accomplish this.
* 104442 - Part 1: Report the position and the kind of previous declaration ↵Gaming4JC2019-07-18-7/+9
| | | | for redeclaration error.
* 1339963 - Part 3: Check IdentifierName in ExportClause without from.Gaming4JC2019-07-18-0/+5
|
* 1339963 - Part 1: Split Parser::exportDeclaration.Gaming4JC2019-07-18-1/+22
|
* 1336783 - followup: Fix rooting.Gaming4JC2019-07-18-5/+5
|
* 1336783 - Part 2: Remove Parser::checkStrictBinding.Gaming4JC2019-07-18-1/+4
|
* 1336783 - Part 1: Rework on reserved word and remove TokenStream::KeywordIsName.Gaming4JC2019-07-18-9/+39
|
* 1283712 - Part 3: Add Parser::errorWithNotes and Parser::errorWithNotesAt.Gaming4JC2019-07-18-0/+3
|
* 1317375 - Implement "Template Literals Revision / Lifting Template Literal ↵Gaming4JC2019-07-18-1/+2
| | | | Restriction" ECMAScript proposal
* 1325157 - Implement a ParserBase class that holds functionality that's ↵Gaming4JC2019-07-18-120/+131
| | | | identical between syntax parsing and full parsing.
* 636635 - Do not create named lambda binding for a function created by ↵Gaming4JC2019-07-18-3/+4
| | | | Function constructor.
* 1317153 - Provide better error message when errornous syntax possibly match ↵Gaming4JC2019-07-18-0/+4
| | | | "await SOMETHING" outside async function.
* Remove Parser::reportHelper since it's no longer used.wolfbeast2019-04-06-3/+0
|
* Remove Parser::reportWithNode and its remaining callers.wolfbeast2019-04-06-1/+0
| | | | | All of the callsites have a full ParseNode* at hand, of which the offset can be directly accessed.
* Report errors for bad increment/decrement operands usingwolfbeast2019-04-06-1/+1
| | | | explicitly-specified offsets.
* Simplify checking of targets within destructuring patterns.wolfbeast2019-04-06-9/+0
|
* Simplify increment/decrement operand checking.wolfbeast2019-04-06-1/+1
|
* Inline Parser::checkAssignmentToCall into its sole caller.wolfbeast2019-04-06-2/+0
|
* Simplify checking of the left-hand side of assignment and compoundwolfbeast2019-04-06-4/+0
| | | | assignment expressions.
* Report some errors about invalid left-hand-sides in for-in/of loop headswolfbeast2019-04-06-2/+0
| | | | using code with an explicitly computed offset.
* Introduce Parser::warningAtwolfbeast2019-04-06-2/+3
| | | | | This reduces reporting an warning at a particular offset to its bare essentials, simplifying calls.
* Remove Parser::reportBadReturnwolfbeast2019-04-06-2/+0
| | | | Report simpler errors that don't use the offset of a node as location.
* Introduce Parser::errorAtwolfbeast2019-04-06-0/+3
| | | | | This reduces reporting an error at a particular offset to its bare essentials, simplifying calls.
* Inline Parser::checkFunctionDefinition into its sole caller.wolfbeast2019-04-06-2/+0
|
* Move the Parser::checkFunctionDefinition call into its callers.wolfbeast2019-04-06-2/+3
|
* Move part of Parser::functionDefinition into callers.wolfbeast2019-04-06-3/+2
|
* Track strict mode errors in unary deletions correctly whenwolfbeast2019-04-05-0/+7
| | | | syntax-parsing.
* Change report at current offset to warning(), extraWarning() and error()wolfbeast2019-04-05-1/+12
|
* Remove the |bool strict| argument from the report-at-current-offsetwolfbeast2019-04-05-1/+8
| | | | | Parser function (zeport). zeport => qeport
* Split Parser::report into Parser::zeport (a temporary name) that useswolfbeast2019-04-05-6/+7
| | | | | the current offset, and Parser::reportWithNode that derives it from a Node.
* Stage 1-1: Implement Function.prototype.toString revision proposal.wolfbeast2019-02-02-11/+17
| | | | Tag #960
* Remove telemetry leftovers from JS engine.adeshkp2019-01-30-2/+0
|
* Bug 755821: Function() should use the parser's argument parsing codejanekptacijarabaci2018-03-16-7/+9
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+1430