diff --git a/CHANGELOG.md b/CHANGELOG.md index 393b05401e..d78294a4c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,98 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ See the [Babel Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) for the pre-6.8.0 version Changelog. +## 6.15.0 (2017-01-10) + +### :eyeglasses: Spec Compliancy + +Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison) + +This change implements flows new shorthand import syntax +and where previously you had to write this code: + +```js +import {someValue} from "blah"; +import type {someType} from "blah"; +import typeof {someOtherValue} from "blah"; +``` + +you can now write it like this: + +```js +import { + someValue, + type someType, + typeof someOtherValue, +} from "blah"; +``` + +For more information look at [this](https://github.com/facebook/flow/pull/2890) pull request. + +flow: allow leading pipes in all positions ([#256](https://github.com/babel/babylon/pull/256)) (Vladimir Kurchatkin) + +This change now allows a leading pipe everywhere types can be used: +```js +var f = (x): | 1 | 2 => 1; +``` + +Throw error when exporting non-declaration ([#241](https://github.com/babel/babylon/pull/241)) (Kai Cataldo) + +Previously babylon parsed the following exports, although they are not valid: +```js +export typeof foo; +export new Foo(); +export function() {}; +export for (;;); +export while(foo); +``` + +### :bug: Bug Fix + +Don't set inType flag when parsing property names ([#266](https://github.com/babel/babylon/pull/266)) (Vladimir Kurchatkin) + +This fixes parsing of this case: + +```js +const map = { + [age <= 17] : 'Too young' +}; +``` + +Fix source location for JSXEmptyExpression nodes (fixes #248) ([#249](https://github.com/babel/babylon/pull/249)) (James Long) + +The following case produced an invalid AST +```js +
{/* foo */}
+``` + +Use fromCodePoint to convert high value unicode entities ([#243](https://github.com/babel/babylon/pull/243)) (Ryan Duffy) + +When high value unicode entities (e.g. 💩) were used in the input source code they are now correctly encoded in the resulting AST. + +Rename folder to avoid Windows-illegal characters ([#281](https://github.com/babel/babylon/pull/281)) (Ryan Plant) + +Allow this.state.clone() when parsing decorators ([#262](https://github.com/babel/babylon/pull/262)) (Alex Rattray) + +### :house: Internal + +User external-helpers ([#254](https://github.com/babel/babylon/pull/254)) (Daniel Tschinder) + +Add watch script for dev ([#234](https://github.com/babel/babylon/pull/234)) (Kai Cataldo) + +Freeze current plugins list for "*" option, and remove from README.md ([#245](https://github.com/babel/babylon/pull/245)) (Andrew Levine) + +Prepare tests for multiple fixture runners. ([#240](https://github.com/babel/babylon/pull/240)) (Daniel Tschinder) + +Add some test coverage for decorators stage-0 plugin ([#250](https://github.com/babel/babylon/pull/250)) (Andrew Levine) + +Refactor tokenizer types file ([#263](https://github.com/babel/babylon/pull/263)) (Sven SAULEAU) + +Update eslint-config-babel to the latest version 🚀 ([#273](https://github.com/babel/babylon/pull/273)) (greenkeeper[bot]) + +chore(package): update rollup to version 0.41.0 ([#272](https://github.com/babel/babylon/pull/272)) (greenkeeper[bot]) + +chore(package): update flow-bin to version 0.37.0 ([#255](https://github.com/babel/babylon/pull/255)) (greenkeeper[bot]) + ## 6.14.1 (2016-11-17) ### :bug: Bug Fix diff --git a/package.json b/package.json index df4765f2bf..f8dfe1c530 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "babylon", - "version": "6.14.1", + "version": "6.15.0", "description": "A JavaScript parser", "author": "Sebastian McKenzie ", "homepage": "https://babeljs.io/", @@ -25,7 +25,7 @@ "codecov": "^1.0.1", "cross-env": "^2.0.0", "eslint": "^3.7.1", - "eslint-config-babel": "^3.0.0", + "eslint-config-babel": "^4.0.1", "eslint-plugin-babel": "^4.0.0", "eslint-plugin-flowtype": "^2.20.0", "flow-bin": "^0.37.0", diff --git a/src/options.js b/src/options.js index 59bd2d35d7..8e39e451e8 100755 --- a/src/options.js +++ b/src/options.js @@ -31,8 +31,8 @@ export const defaultOptions: { // Interpret and default an options object export function getOptions(opts?: Object): Object { - let options = {}; - for (let key in defaultOptions) { + const options = {}; + for (const key in defaultOptions) { options[key] = opts && key in opts ? opts[key] : defaultOptions[key]; } return options; diff --git a/src/parser/comments.js b/src/parser/comments.js index 648c5601f7..c032e85e07 100644 --- a/src/parser/comments.js +++ b/src/parser/comments.js @@ -41,7 +41,7 @@ pp.addComment = function (comment) { pp.processComment = function (node) { if (node.type === "Program" && node.body.length > 0) return; - let stack = this.state.commentStack; + const stack = this.state.commentStack; let lastChild, trailingComments, i, j; @@ -63,7 +63,7 @@ pp.processComment = function (node) { this.state.trailingComments.length = 0; } } else { - let lastInStack = last(stack); + const lastInStack = last(stack); if (stack.length > 0 && lastInStack.trailingComments && lastInStack.trailingComments[0].start >= node.end) { trailingComments = lastInStack.trailingComments; lastInStack.trailingComments = null; diff --git a/src/parser/expression.js b/src/parser/expression.js index 1e9f4197e3..9deb74c686 100644 --- a/src/parser/expression.js +++ b/src/parser/expression.js @@ -33,7 +33,7 @@ const pp = Parser.prototype; pp.checkPropClash = function (prop, propHash) { if (prop.computed) return; - let key = prop.key; + const key = prop.key; let name; switch (key.type) { case "Identifier": @@ -72,10 +72,11 @@ pp.checkPropClash = function (prop, propHash) { // delayed syntax error at correct position). pp.parseExpression = function (noIn, refShorthandDefaultPos) { - let startPos = this.state.start, startLoc = this.state.startLoc; - let expr = this.parseMaybeAssign(noIn, refShorthandDefaultPos); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const expr = this.parseMaybeAssign(noIn, refShorthandDefaultPos); if (this.match(tt.comma)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.expressions = [expr]; while (this.eat(tt.comma)) { node.expressions.push(this.parseMaybeAssign(noIn, refShorthandDefaultPos)); @@ -90,8 +91,8 @@ pp.parseExpression = function (noIn, refShorthandDefaultPos) { // operators like `+=`. pp.parseMaybeAssign = function (noIn, refShorthandDefaultPos, afterLeftParse, refNeedsArrowPos) { - let startPos = this.state.start; - let startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; if (this.match(tt._yield) && this.state.inGenerator) { let left = this.parseYield(); @@ -114,7 +115,7 @@ pp.parseMaybeAssign = function (noIn, refShorthandDefaultPos, afterLeftParse, re let left = this.parseMaybeConditional(noIn, refShorthandDefaultPos, refNeedsArrowPos); if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc); if (this.state.type.isAssign) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.operator = this.state.value; node.left = this.match(tt.eq) ? this.toAssignable(left, undefined, "assignment expression") : left; refShorthandDefaultPos.start = 0; // reset because shorthand default was used correctly @@ -146,8 +147,9 @@ pp.parseMaybeAssign = function (noIn, refShorthandDefaultPos, afterLeftParse, re // Parse a ternary conditional (`?:`) operator. pp.parseMaybeConditional = function (noIn, refShorthandDefaultPos, refNeedsArrowPos) { - let startPos = this.state.start, startLoc = this.state.startLoc; - let expr = this.parseExprOps(noIn, refShorthandDefaultPos); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const expr = this.parseExprOps(noIn, refShorthandDefaultPos); if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr; return this.parseConditional(expr, noIn, startPos, startLoc, refNeedsArrowPos); @@ -155,7 +157,7 @@ pp.parseMaybeConditional = function (noIn, refShorthandDefaultPos, refNeedsArrow pp.parseConditional = function (expr, noIn, startPos, startLoc) { if (this.eat(tt.question)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.test = expr; node.consequent = this.parseMaybeAssign(); this.expect(tt.colon); @@ -168,8 +170,9 @@ pp.parseConditional = function (expr, noIn, startPos, startLoc) { // Start the precedence parser. pp.parseExprOps = function (noIn, refShorthandDefaultPos) { - let startPos = this.state.start, startLoc = this.state.startLoc; - let expr = this.parseMaybeUnary(refShorthandDefaultPos); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const expr = this.parseMaybeUnary(refShorthandDefaultPos); if (refShorthandDefaultPos && refShorthandDefaultPos.start) { return expr; } else { @@ -184,10 +187,10 @@ pp.parseExprOps = function (noIn, refShorthandDefaultPos) { // operator that has a lower precedence than the set it is parsing. pp.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, noIn) { - let prec = this.state.type.binop; + const prec = this.state.type.binop; if (prec != null && (!noIn || !this.match(tt._in))) { if (prec > minPrec) { - let node = this.startNodeAt(leftStartPos, leftStartLoc); + const node = this.startNodeAt(leftStartPos, leftStartLoc); node.left = left; node.operator = this.state.value; @@ -201,11 +204,11 @@ pp.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, noIn) { this.raise(left.argument.start, "Illegal expression. Wrap left hand side or entire exponentiation in parentheses."); } - let op = this.state.type; + const op = this.state.type; this.next(); - let startPos = this.state.start; - let startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; node.right = this.parseExprOp(this.parseMaybeUnary(), startPos, startLoc, op.rightAssociative ? prec - 1 : prec, noIn); this.finishNode(node, (op === tt.logicalOR || op === tt.logicalAND) ? "LogicalExpression" : "BinaryExpression"); @@ -219,13 +222,13 @@ pp.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, noIn) { pp.parseMaybeUnary = function (refShorthandDefaultPos) { if (this.state.type.prefix) { - let node = this.startNode(); - let update = this.match(tt.incDec); + const node = this.startNode(); + const update = this.match(tt.incDec); node.operator = this.state.value; node.prefix = true; this.next(); - let argType = this.state.type; + const argType = this.state.type; node.argument = this.parseMaybeUnary(); this.addExtra(node, "parenthesizedArgument", argType === tt.parenL && (!node.argument.extra || !node.argument.extra.parenthesized)); @@ -243,11 +246,12 @@ pp.parseMaybeUnary = function (refShorthandDefaultPos) { return this.finishNode(node, update ? "UpdateExpression" : "UnaryExpression"); } - let startPos = this.state.start, startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; let expr = this.parseExprSubscripts(refShorthandDefaultPos); if (refShorthandDefaultPos && refShorthandDefaultPos.start) return expr; while (this.state.type.postfix && !this.canInsertSemicolon()) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.operator = this.state.value; node.prefix = false; node.argument = expr; @@ -261,9 +265,10 @@ pp.parseMaybeUnary = function (refShorthandDefaultPos) { // Parse call, dot, and `[]`-subscript expressions. pp.parseExprSubscripts = function (refShorthandDefaultPos) { - let startPos = this.state.start, startLoc = this.state.startLoc; - let potentialArrowAt = this.state.potentialArrowAt; - let expr = this.parseExprAtom(refShorthandDefaultPos); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const potentialArrowAt = this.state.potentialArrowAt; + const expr = this.parseExprAtom(refShorthandDefaultPos); if (expr.type === "ArrowFunctionExpression" && expr.start === potentialArrowAt) { return expr; @@ -279,28 +284,28 @@ pp.parseExprSubscripts = function (refShorthandDefaultPos) { pp.parseSubscripts = function (base, startPos, startLoc, noCalls) { for (;;) { if (!noCalls && this.eat(tt.doubleColon)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.object = base; node.callee = this.parseNoCallExpr(); return this.parseSubscripts(this.finishNode(node, "BindExpression"), startPos, startLoc, noCalls); } else if (this.eat(tt.dot)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.object = base; node.property = this.parseIdentifier(true); node.computed = false; base = this.finishNode(node, "MemberExpression"); } else if (this.eat(tt.bracketL)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.object = base; node.property = this.parseExpression(); node.computed = true; this.expect(tt.bracketR); base = this.finishNode(node, "MemberExpression"); } else if (!noCalls && this.match(tt.parenL)) { - let possibleAsync = this.state.potentialArrowAt === base.start && base.type === "Identifier" && base.name === "async" && !this.canInsertSemicolon(); + const possibleAsync = this.state.potentialArrowAt === base.start && base.type === "Identifier" && base.name === "async" && !this.canInsertSemicolon(); this.next(); - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.callee = base; node.arguments = this.parseCallExpressionArguments(tt.parenR, possibleAsync); if (node.callee.type === "Import" && node.arguments.length !== 1) { @@ -314,7 +319,7 @@ pp.parseSubscripts = function (base, startPos, startLoc, noCalls) { this.toReferencedList(node.arguments); } } else if (this.match(tt.backQuote)) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.tag = base; node.quasi = this.parseTemplate(); base = this.finishNode(node, "TaggedTemplateExpression"); @@ -325,9 +330,10 @@ pp.parseSubscripts = function (base, startPos, startLoc, noCalls) { }; pp.parseCallExpressionArguments = function (close, possibleAsyncArrow) { + const elts = []; let innerParenStart; + let first = true; - let elts = [], first = true; while (!this.eat(close)) { if (first) { first = false; @@ -364,7 +370,8 @@ pp.parseAsyncArrowFromCallExpression = function (node, call) { // Parse a no-call expression (like argument of `new` or `::` operators). pp.parseNoCallExpr = function () { - let startPos = this.state.start, startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; return this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true); }; @@ -374,7 +381,9 @@ pp.parseNoCallExpr = function () { // or `{}`. pp.parseExprAtom = function (refShorthandDefaultPos) { - let node, canBeArrow = this.state.potentialArrowAt === this.state.start; + const canBeArrow = this.state.potentialArrowAt === this.state.start; + let node; + switch (this.state.type) { case tt._super: if (!this.state.inMethod && !this.options.allowSuperOutsideMethod) { @@ -411,9 +420,9 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { case tt.name: node = this.startNode(); - let allowAwait = this.state.value === "await" && this.state.inAsync; - let allowYield = this.shouldAllowYieldIdentifier(); - let id = this.parseIdentifier(allowAwait || allowYield); + const allowAwait = this.state.value === "await" && this.state.inAsync; + const allowYield = this.shouldAllowYieldIdentifier(); + const id = this.parseIdentifier(allowAwait || allowYield); if (id.name === "await") { if (this.state.inAsync || this.inModule) { @@ -423,7 +432,7 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { this.next(); return this.parseFunction(node, false, false, true); } else if (canBeArrow && id.name === "async" && this.match(tt.name)) { - let params = [this.parseIdentifier()]; + const params = [this.parseIdentifier()]; this.expect(tt.arrow); // let foo = bar => {}; return this.parseArrowExpression(node, params, true); @@ -437,10 +446,10 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { case tt._do: if (this.hasPlugin("doExpressions")) { - let node = this.startNode(); + const node = this.startNode(); this.next(); - let oldInFunction = this.state.inFunction; - let oldLabels = this.state.labels; + const oldInFunction = this.state.inFunction; + const oldLabels = this.state.labels; this.state.labels = []; this.state.inFunction = false; node.body = this.parseBlock(false, true); @@ -450,7 +459,7 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { } case tt.regexp: - let value = this.state.value; + const value = this.state.value; node = this.parseLiteral(value.value, "RegExpLiteral"); node.pattern = value.pattern; node.flags = value.flags; @@ -507,7 +516,7 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { node = this.startNode(); this.next(); node.object = null; - let callee = node.callee = this.parseNoCallExpr(); + const callee = node.callee = this.parseNoCallExpr(); if (callee.type === "MemberExpression") { return this.finishNode(node, "BindExpression"); } else { @@ -520,8 +529,8 @@ pp.parseExprAtom = function (refShorthandDefaultPos) { }; pp.parseFunctionExpression = function () { - let node = this.startNode(); - let meta = this.parseIdentifier(true); + const node = this.startNode(); + const meta = this.parseIdentifier(true); if (this.state.inGenerator && this.eat(tt.dot) && this.hasPlugin("functionSent")) { return this.parseMetaProperty(node, meta, "sent"); } else { @@ -541,7 +550,7 @@ pp.parseMetaProperty = function (node, meta, propertyName) { }; pp.parseLiteral = function (value, type) { - let node = this.startNode(); + const node = this.startNode(); this.addExtra(node, "rawValue", value); this.addExtra(node, "raw", this.input.slice(this.state.start, this.state.end)); node.value = value; @@ -551,7 +560,7 @@ pp.parseLiteral = function (value, type) { pp.parseParenExpression = function () { this.expect(tt.parenL); - let val = this.parseExpression(); + const val = this.parseExpression(); this.expect(tt.parenR); return val; }; @@ -563,10 +572,15 @@ pp.parseParenAndDistinguishExpression = function (startPos, startLoc, canBeArrow let val; this.expect(tt.parenL); - let innerStartPos = this.state.start, innerStartLoc = this.state.startLoc; - let exprList = [], first = true; - let refShorthandDefaultPos = { start: 0 }, spreadStart, optionalCommaStart; - let refNeedsArrowPos = { start: 0 }; + const innerStartPos = this.state.start; + const innerStartLoc = this.state.startLoc; + const exprList = []; + const refShorthandDefaultPos = { start: 0 }; + const refNeedsArrowPos = { start: 0 }; + let first = true; + let spreadStart; + let optionalCommaStart; + while (!this.match(tt.parenR)) { if (first) { first = false; @@ -579,7 +593,8 @@ pp.parseParenAndDistinguishExpression = function (startPos, startLoc, canBeArrow } if (this.match(tt.ellipsis)) { - let spreadNodeStartPos = this.state.start, spreadNodeStartLoc = this.state.startLoc; + const spreadNodeStartPos = this.state.start; + const spreadNodeStartLoc = this.state.startLoc; spreadStart = this.state.start; exprList.push(this.parseParenItem(this.parseRest(), spreadNodeStartLoc, spreadNodeStartPos)); break; @@ -588,13 +603,13 @@ pp.parseParenAndDistinguishExpression = function (startPos, startLoc, canBeArrow } } - let innerEndPos = this.state.start; - let innerEndLoc = this.state.startLoc; + const innerEndPos = this.state.start; + const innerEndLoc = this.state.startLoc; this.expect(tt.parenR); let arrowNode = this.startNodeAt(startPos, startLoc); if (canBeArrow && this.shouldParseArrow() && (arrowNode = this.parseArrow(arrowNode))) { - for (let param of exprList) { + for (const param of exprList) { if (param.extra && param.extra.parenthesized) this.unexpected(param.extra.parenStart); } @@ -644,8 +659,8 @@ pp.parseParenItem = function (node) { // least, not without wrapping it in parentheses. Thus, it uses the pp.parseNew = function () { - let node = this.startNode(); - let meta = this.parseIdentifier(true); + const node = this.startNode(); + const meta = this.parseIdentifier(true); if (this.eat(tt.dot)) { return this.parseMetaProperty(node, meta, "target"); @@ -666,7 +681,7 @@ pp.parseNew = function () { // Parse template expression. pp.parseTemplateElement = function () { - let elem = this.startNode(); + const elem = this.startNode(); elem.value = { raw: this.input.slice(this.state.start, this.state.end).replace(/\r\n?/g, "\n"), cooked: this.state.value @@ -677,7 +692,7 @@ pp.parseTemplateElement = function () { }; pp.parseTemplate = function () { - let node = this.startNode(); + const node = this.startNode(); this.next(); node.expressions = []; let curElt = this.parseTemplateElement(); @@ -696,9 +711,9 @@ pp.parseTemplate = function () { pp.parseObj = function (isPattern, refShorthandDefaultPos) { let decorators = []; - let propHash = Object.create(null); + const propHash = Object.create(null); let first = true; - let node = this.startNode(); + const node = this.startNode(); node.properties = []; this.next(); @@ -761,7 +776,7 @@ pp.parseObj = function (isPattern, refShorthandDefaultPos) { if (!isPattern && this.isContextual("async")) { if (isGenerator) this.unexpected(); - let asyncId = this.parseIdentifier(); + const asyncId = this.parseIdentifier(); if (this.match(tt.colon) || this.match(tt.parenL) || this.match(tt.braceR) || this.match(tt.eq) || this.match(tt.comma)) { prop.key = asyncId; } else { @@ -813,9 +828,9 @@ pp.parseObjPropValue = function (prop, startPos, startLoc, isGenerator, isAsync, prop.kind = prop.key.name; this.parsePropertyName(prop); this.parseMethod(prop, false); - let paramCount = prop.kind === "get" ? 0 : 1; + const paramCount = prop.kind === "get" ? 0 : 1; if (prop.params.length !== paramCount) { - let start = prop.start; + const start = prop.start; if (prop.kind === "get") { this.raise(start, "getter should have no params"); } else { @@ -872,7 +887,7 @@ pp.initFunction = function (node, isAsync) { // Parse object or class method. pp.parseMethod = function (node, isGenerator, isAsync) { - let oldInMethod = this.state.inMethod; + const oldInMethod = this.state.inMethod; this.state.inMethod = node.kind || true; this.initFunction(node, isAsync); this.expect(tt.parenL); @@ -895,9 +910,9 @@ pp.parseArrowExpression = function (node, params, isAsync) { // Parse function body and check parameters. pp.parseFunctionBody = function (node, allowExpression) { - let isExpression = allowExpression && !this.match(tt.braceL); + const isExpression = allowExpression && !this.match(tt.braceL); - let oldInAsync = this.state.inAsync; + const oldInAsync = this.state.inAsync; this.state.inAsync = node.async; if (isExpression) { node.body = this.parseMaybeAssign(); @@ -905,7 +920,9 @@ pp.parseFunctionBody = function (node, allowExpression) { } else { // Start a new scope with regard to labels and the `inFunction` // flag (restore them to their old value afterwards). - let oldInFunc = this.state.inFunction, oldInGen = this.state.inGenerator, oldLabels = this.state.labels; + const oldInFunc = this.state.inFunction; + const oldInGen = this.state.inGenerator; + const oldLabels = this.state.labels; this.state.inFunction = true; this.state.inGenerator = node.generator; this.state.labels = []; node.body = this.parseBlock(true); node.expression = false; @@ -924,7 +941,7 @@ pp.parseFunctionBody = function (node, allowExpression) { // normal function if (!isExpression && node.body.directives.length) { - for (let directive of (node.body.directives: Array)) { + for (const directive of (node.body.directives: Array)) { if (directive.value.value === "use strict") { isStrict = true; checkLVal = true; @@ -939,13 +956,13 @@ pp.parseFunctionBody = function (node, allowExpression) { } if (checkLVal) { - let nameHash = Object.create(null); - let oldStrict = this.state.strict; + const nameHash = Object.create(null); + const oldStrict = this.state.strict; if (isStrict) this.state.strict = true; if (node.id) { this.checkLVal(node.id, true, undefined, "function name"); } - for (let param of (node.params: Array)) { + for (const param of (node.params: Array)) { if (isStrict && param.type !== "Identifier") { this.raise(param.start, "Non-simple parameter in strict mode"); } @@ -962,7 +979,9 @@ pp.parseFunctionBody = function (node, allowExpression) { // for array literals). pp.parseExprList = function (close, allowEmpty, refShorthandDefaultPos) { - let elts = [], first = true; + const elts = []; + let first = true; + while (!this.eat(close)) { if (first) { first = false; @@ -993,7 +1012,7 @@ pp.parseExprListItem = function (allowEmpty, refShorthandDefaultPos) { // identifiers. pp.parseIdentifier = function (liberal) { - let node = this.startNode(); + const node = this.startNode(); if (this.match(tt.name)) { if (!liberal) { @@ -1044,7 +1063,7 @@ pp.parseAwait = function (node) { // Parses yield expression inside generator. pp.parseYield = function () { - let node = this.startNode(); + const node = this.startNode(); this.next(); if (this.match(tt.semi) || this.canInsertSemicolon() || (!this.match(tt.star) && !this.state.type.startsExpr)) { node.delegate = false; diff --git a/src/parser/index.js b/src/parser/index.js index de7eb11ba4..fc6a98bd4e 100644 --- a/src/parser/index.js +++ b/src/parser/index.js @@ -60,7 +60,7 @@ export default class Parser extends Tokenizer { pluginNames.push("flow"); pluginNames.forEach((name) => { - let plugin = plugins[name]; + const plugin = plugins[name]; if (plugin) plugin(this); }); } @@ -73,7 +73,7 @@ export default class Parser extends Tokenizer { return { "*": true }; } - let pluginMap = {}; + const pluginMap = {}; if (pluginList.indexOf("flow") >= 0) { // ensure flow plugin loads last @@ -81,11 +81,11 @@ export default class Parser extends Tokenizer { pluginList.push("flow"); } - for (let name of pluginList) { + for (const name of pluginList) { if (!pluginMap[name]) { pluginMap[name] = true; - let plugin = plugins[name]; + const plugin = plugins[name]; if (plugin) plugin(this); } } @@ -100,8 +100,8 @@ export default class Parser extends Tokenizer { body: Array } } { - let file = this.startNode(); - let program = this.startNode(); + const file = this.startNode(); + const program = this.startNode(); this.nextToken(); return this.parseTopLevel(file, program); } diff --git a/src/parser/location.js b/src/parser/location.js index c8f10cc172..2a408a5100 100644 --- a/src/parser/location.js +++ b/src/parser/location.js @@ -10,9 +10,9 @@ const pp = Parser.prototype; // message. pp.raise = function (pos, message) { - let loc = getLineInfo(this.input, pos); + const loc = getLineInfo(this.input, pos); message += ` (${loc.line}:${loc.column})`; - let err = new SyntaxError(message); + const err = new SyntaxError(message); err.pos = pos; err.loc = loc; throw err; diff --git a/src/parser/lval.js b/src/parser/lval.js index c74e88a5dd..4258506020 100644 --- a/src/parser/lval.js +++ b/src/parser/lval.js @@ -19,7 +19,7 @@ pp.toAssignable = function (node, isBinding, contextDescription) { case "ObjectExpression": node.type = "ObjectPattern"; - for (let prop of (node.properties: Array)) { + for (const prop of (node.properties: Array)) { if (prop.type === "ObjectMethod") { if (prop.kind === "get" || prop.kind === "set") { this.raise(prop.key.start, "Object pattern can't contain getter or setter"); @@ -72,12 +72,12 @@ pp.toAssignable = function (node, isBinding, contextDescription) { pp.toAssignableList = function (exprList, isBinding, contextDescription) { let end = exprList.length; if (end) { - let last = exprList[end - 1]; + const last = exprList[end - 1]; if (last && last.type === "RestElement") { --end; } else if (last && last.type === "SpreadElement") { last.type = "RestElement"; - let arg = last.argument; + const arg = last.argument; this.toAssignable(arg, isBinding, contextDescription); if (arg.type !== "Identifier" && arg.type !== "MemberExpression" && arg.type !== "ArrayPattern") { this.unexpected(arg.start); @@ -86,7 +86,7 @@ pp.toAssignableList = function (exprList, isBinding, contextDescription) { } } for (let i = 0; i < end; i++) { - let elt = exprList[i]; + const elt = exprList[i]; if (elt) this.toAssignable(elt, isBinding, contextDescription); } return exprList; @@ -101,14 +101,14 @@ pp.toReferencedList = function (exprList) { // Parses spread element. pp.parseSpread = function (refShorthandDefaultPos) { - let node = this.startNode(); + const node = this.startNode(); this.next(); node.argument = this.parseMaybeAssign(false, refShorthandDefaultPos); return this.finishNode(node, "SpreadElement"); }; pp.parseRest = function () { - let node = this.startNode(); + const node = this.startNode(); this.next(); node.argument = this.parseBindingIdentifier(); return this.finishNode(node, "RestElement"); @@ -133,7 +133,7 @@ pp.parseBindingAtom = function () { return this.parseIdentifier(true); case tt.bracketL: - let node = this.startNode(); + const node = this.startNode(); this.next(); node.elements = this.parseBindingList(tt.bracketR, true); return this.finishNode(node, "ArrayPattern"); @@ -147,7 +147,7 @@ pp.parseBindingAtom = function () { }; pp.parseBindingList = function (close, allowEmpty) { - let elts = []; + const elts = []; let first = true; while (!this.eat(close)) { if (first) { @@ -164,11 +164,11 @@ pp.parseBindingList = function (close, allowEmpty) { this.expect(close); break; } else { - let decorators = []; + const decorators = []; while (this.match(tt.at)) { decorators.push(this.parseDecorator()); } - let left = this.parseMaybeDefault(); + const left = this.parseMaybeDefault(); if (decorators.length) { left.decorators = decorators; } @@ -191,7 +191,7 @@ pp.parseMaybeDefault = function (startPos, startLoc, left) { left = left || this.parseBindingAtom(); if (!this.eat(tt.eq)) return left; - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.left = left; node.right = this.parseMaybeAssign(); return this.finishNode(node, "AssignmentPattern"); @@ -217,7 +217,7 @@ pp.checkLVal = function (expr, isBinding, checkClashes, contextDescription) { // true // > obj.__proto__ // null - let key = `_${expr.name}`; + const key = `_${expr.name}`; if (checkClashes[key]) { this.raise(expr.start, "Argument name clash in strict mode"); @@ -239,7 +239,7 @@ pp.checkLVal = function (expr, isBinding, checkClashes, contextDescription) { break; case "ArrayPattern": - for (let elem of (expr.elements: Array)) { + for (const elem of (expr.elements: Array)) { if (elem) this.checkLVal(elem, isBinding, checkClashes, "array destructuring pattern"); } break; diff --git a/src/parser/node.js b/src/parser/node.js index 43146fd7ff..7af6c29687 100644 --- a/src/parser/node.js +++ b/src/parser/node.js @@ -22,7 +22,7 @@ class Node { __clone(): Node { const node2 = new Node; - for (let key in this) { + for (const key in this) { // Do not clone comments that are already attached to the node if (commentKeys.indexOf(key) < 0) { node2[key] = this[key]; diff --git a/src/parser/statement.js b/src/parser/statement.js index 053241298b..cfff7be0a7 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -31,13 +31,13 @@ const loopLabel = {kind: "loop"}, switchLabel = {kind: "switch"}; // TODO pp.stmtToDirective = function (stmt) { - let expr = stmt.expression; + const expr = stmt.expression; - let directiveLiteral = this.startNodeAt(expr.start, expr.loc.start); - let directive = this.startNodeAt(stmt.start, stmt.loc.start); + const directiveLiteral = this.startNodeAt(expr.start, expr.loc.start); + const directive = this.startNodeAt(stmt.start, stmt.loc.start); - let raw = this.input.slice(expr.start, expr.end); - let val = directiveLiteral.value = raw.slice(1, -1); // remove quotes + const raw = this.input.slice(expr.start, expr.end); + const val = directiveLiteral.value = raw.slice(1, -1); // remove quotes this.addExtra(directiveLiteral, "raw", raw); this.addExtra(directiveLiteral, "rawValue", val); @@ -59,7 +59,8 @@ pp.parseStatement = function (declaration, topLevel) { this.parseDecorators(true); } - let starttype = this.state.type, node = this.startNode(); + const starttype = this.state.type; + const node = this.startNode(); // Most types of statements are recognized by the keyword they // start with. Many are trivial to parse, some require a bit of @@ -114,7 +115,7 @@ pp.parseStatement = function (declaration, topLevel) { case tt.name: if (this.state.value === "async") { // peek ahead and see if next token is a function - let state = this.state.clone(); + const state = this.state.clone(); this.next(); if (this.match(tt._function) && !this.canInsertSemicolon()) { this.expect(tt._function); @@ -130,8 +131,8 @@ pp.parseStatement = function (declaration, topLevel) { // simply start parsing an expression, and afterwards, if the // next token is a colon and the expression was a simple // Identifier node, we switch to interpreting it as a label. - let maybeName = this.state.value; - let expr = this.parseExpression(); + const maybeName = this.state.value; + const expr = this.parseExpression(); if (starttype === tt.name && expr.type === "Identifier" && this.eat(tt.colon)) { return this.parseLabeledStatement(node, maybeName, expr); @@ -149,7 +150,7 @@ pp.takeDecorators = function (node) { pp.parseDecorators = function (allowExport) { while (this.match(tt.at)) { - let decorator = this.parseDecorator(); + const decorator = this.parseDecorator(); this.state.decorators.push(decorator); } @@ -166,14 +167,14 @@ pp.parseDecorator = function () { if (!this.hasPlugin("decorators")) { this.unexpected(); } - let node = this.startNode(); + const node = this.startNode(); this.next(); node.expression = this.parseMaybeAssign(); return this.finishNode(node, "Decorator"); }; pp.parseBreakContinueStatement = function (node, keyword) { - let isBreak = keyword === "break"; + const isBreak = keyword === "break"; this.next(); if (this.isLineTerminator()) { @@ -189,7 +190,7 @@ pp.parseBreakContinueStatement = function (node, keyword) { // continue to. let i; for (i = 0; i < this.state.labels.length; ++i) { - let lab = this.state.labels[i]; + const lab = this.state.labels[i]; if (node.label == null || lab.name === node.label.name) { if (lab.kind != null && (isBreak || lab.kind === "loop")) break; if (node.label && isBreak) break; @@ -243,7 +244,8 @@ pp.parseForStatement = function (node) { } if (this.match(tt._var) || this.match(tt._let) || this.match(tt._const)) { - let init = this.startNode(), varKind = this.state.type; + const init = this.startNode(); + const varKind = this.state.type; this.next(); this.parseVar(init, true, varKind); this.finishNode(init, "VariableDeclaration"); @@ -259,8 +261,8 @@ pp.parseForStatement = function (node) { return this.parseFor(node, init); } - let refShorthandDefaultPos = {start: 0}; - let init = this.parseExpression(true, refShorthandDefaultPos); + const refShorthandDefaultPos = {start: 0}; + const init = this.parseExpression(true, refShorthandDefaultPos); if (this.match(tt._in) || this.isContextual("of")) { const description = this.isContextual("of") ? "for-of statement" : "for-in statement"; this.toAssignable(init, undefined, description); @@ -323,7 +325,7 @@ pp.parseSwitchStatement = function (node) { let cur; for (let sawDefault; !this.match(tt.braceR); ) { if (this.match(tt._case) || this.match(tt._default)) { - let isCase = this.match(tt._case); + const isCase = this.match(tt._case); if (cur) this.finishNode(cur, "SwitchCase"); node.cases.push(cur = this.startNode()); cur.consequent = []; @@ -361,7 +363,7 @@ pp.parseThrowStatement = function (node) { // Reused empty array added for node fields that are always empty. -let empty = []; +const empty = []; pp.parseTryStatement = function (node) { this.next(); @@ -370,7 +372,7 @@ pp.parseTryStatement = function (node) { node.handler = null; if (this.match(tt._catch)) { - let clause = this.startNode(); + const clause = this.startNode(); this.next(); this.expect(tt.parenL); @@ -422,15 +424,15 @@ pp.parseEmptyStatement = function (node) { }; pp.parseLabeledStatement = function (node, maybeName, expr) { - for (let label of (this.state.labels: Array)) { + for (const label of (this.state.labels: Array)) { if (label.name === maybeName) { this.raise(expr.start, `Label '${maybeName}' is already declared`); } } - let kind = this.state.type.isLoop ? "loop" : this.match(tt._switch) ? "switch" : null; + const kind = this.state.type.isLoop ? "loop" : this.match(tt._switch) ? "switch" : null; for (let i = this.state.labels.length - 1; i >= 0; i--) { - let label = this.state.labels[i]; + const label = this.state.labels[i]; if (label.statementStart === node.start) { label.statementStart = this.state.start; label.kind = kind; @@ -457,7 +459,7 @@ pp.parseExpressionStatement = function (node, expr) { // function bodies). pp.parseBlock = function (allowDirectives?) { - let node = this.startNode(); + const node = this.startNode(); this.expect(tt.braceL); this.parseBlockBody(node, allowDirectives, false, tt.braceR); return this.finishNode(node, "BlockStatement"); @@ -478,12 +480,12 @@ pp.parseBlockBody = function (node, allowDirectives, topLevel, end) { octalPosition = this.state.octalPosition; } - let stmt = this.parseStatement(true, topLevel); + const stmt = this.parseStatement(true, topLevel); if (allowDirectives && !parsedNonDirective && stmt.type === "ExpressionStatement" && stmt.expression.type === "StringLiteral" && !stmt.expression.extra.parenthesized) { - let directive = this.stmtToDirective(stmt); + const directive = this.stmtToDirective(stmt); node.directives.push(directive); if (oldStrict === undefined && directive.value.value === "use strict") { @@ -549,7 +551,7 @@ pp.parseVar = function (node, isFor, kind) { node.declarations = []; node.kind = kind.keyword; for (;;) { - let decl = this.startNode(); + const decl = this.startNode(); this.parseVarHead(decl); if (this.eat(tt.eq)) { decl.init = this.parseMaybeAssign(isFor); @@ -575,7 +577,7 @@ pp.parseVarHead = function (decl) { // `isStatement` parameter). pp.parseFunction = function (node, isStatement, allowExpressionBody, isAsync, optionalId) { - let oldInMethod = this.state.inMethod; + const oldInMethod = this.state.inMethod; this.state.inMethod = false; this.initFunction(node, isAsync); @@ -631,13 +633,13 @@ pp.isClassMutatorStarter = function () { pp.parseClassBody = function (node) { // class bodies are implicitly strict - let oldStrict = this.state.strict; + const oldStrict = this.state.strict; this.state.strict = true; let hadConstructorCall = false; let hadConstructor = false; let decorators = []; - let classBody = this.startNode(); + const classBody = this.startNode(); classBody.body = []; @@ -653,7 +655,7 @@ pp.parseClassBody = function (node) { continue; } - let method = this.startNode(); + const method = this.startNode(); // steal the decorators if there are any if (decorators.length) { @@ -662,7 +664,7 @@ pp.parseClassBody = function (node) { } let isConstructorCall = false; - let isMaybeStatic = this.match(tt.name) && this.state.value === "static"; + const isMaybeStatic = this.match(tt.name) && this.state.value === "static"; let isGenerator = this.eat(tt.star); let isGetSet = false; let isAsync = false; @@ -687,7 +689,7 @@ pp.parseClassBody = function (node) { } } - let isAsyncMethod = !this.match(tt.parenL) && !method.computed && method.key.type === "Identifier" && method.key.name === "async"; + const isAsyncMethod = !this.match(tt.parenL) && !method.computed && method.key.type === "Identifier" && method.key.name === "async"; if (isAsyncMethod) { if (this.hasPlugin("asyncGenerators") && this.eat(tt.star)) isGenerator = true; isAsync = true; @@ -708,7 +710,7 @@ pp.parseClassBody = function (node) { } // disallow invalid constructors - let isConstructor = !isConstructorCall && !method.static && ( + const isConstructor = !isConstructorCall && !method.static && ( (key.type === "Identifier" && key.name === "constructor") || (key.type === "StringLiteral" && key.value === "constructor") ); @@ -722,7 +724,7 @@ pp.parseClassBody = function (node) { } // disallow static prototype method - let isStaticPrototype = method.static && ( + const isStaticPrototype = method.static && ( (key.type === "Identifier" && key.name === "prototype") || (key.type === "StringLiteral" && key.value === "prototype") ); @@ -748,9 +750,9 @@ pp.parseClassBody = function (node) { // get methods aren't allowed to have any parameters // set methods must have exactly 1 parameter if (isGetSet) { - let paramCount = method.kind === "get" ? 0 : 1; + const paramCount = method.kind === "get" ? 0 : 1; if (method.params.length !== paramCount) { - let start = method.start; + const start = method.start; if (method.kind === "get") { this.raise(start, "getter should have no params"); } else { @@ -808,7 +810,7 @@ pp.parseExport = function (node) { this.next(); // export * from '...' if (this.match(tt.star)) { - let specifier = this.startNode(); + const specifier = this.startNode(); this.next(); if (this.hasPlugin("exportExtensions") && this.eatContextual("as")) { specifier.exported = this.parseIdentifier(); @@ -820,12 +822,12 @@ pp.parseExport = function (node) { return this.finishNode(node, "ExportAllDeclaration"); } } else if (this.hasPlugin("exportExtensions") && this.isExportDefaultSpecifier()) { - let specifier = this.startNode(); + const specifier = this.startNode(); specifier.exported = this.parseIdentifier(true); node.specifiers = [this.finishNode(specifier, "ExportDefaultSpecifier")]; if (this.match(tt.comma) && this.lookahead().type === tt.star) { this.expect(tt.comma); - let specifier = this.startNode(); + const specifier = this.startNode(); this.expect(tt.star); this.expectContextual("as"); specifier.exported = this.parseIdentifier(); @@ -877,7 +879,7 @@ pp.isExportDefaultSpecifier = function () { return false; } - let lookahead = this.lookahead(); + const lookahead = this.lookahead(); return lookahead.type === tt.comma || (lookahead.type === tt.name && lookahead.value === "from"); }; @@ -919,7 +921,7 @@ pp.checkExport = function (node, checkNames, isDefault) { this.checkDuplicateExports(node, "default"); } else if (node.specifiers && node.specifiers.length) { // Named exports - for (let specifier of node.specifiers) { + for (const specifier of node.specifiers) { this.checkDuplicateExports(specifier, specifier.exported.name); } } else if (node.declaration) { @@ -927,7 +929,7 @@ pp.checkExport = function (node, checkNames, isDefault) { if (node.declaration.type === "FunctionDeclaration" || node.declaration.type === "ClassDeclaration") { this.checkDuplicateExports(node, node.declaration.id.name); } else if (node.declaration.type === "VariableDeclaration") { - for (let declaration of node.declaration.declarations) { + for (const declaration of node.declaration.declarations) { this.checkDeclaration(declaration.id); } } @@ -935,7 +937,7 @@ pp.checkExport = function (node, checkNames, isDefault) { } if (this.state.decorators.length) { - let isClass = node.declaration && (node.declaration.type === "ClassDeclaration" || node.declaration.type === "ClassExpression"); + const isClass = node.declaration && (node.declaration.type === "ClassDeclaration" || node.declaration.type === "ClassExpression"); if (!node.declaration || !isClass) { this.raise(node.start, "You can only use decorators on an export when exporting a class"); } @@ -945,11 +947,11 @@ pp.checkExport = function (node, checkNames, isDefault) { pp.checkDeclaration = function(node) { if (node.type === "ObjectPattern") { - for (let prop of node.properties) { + for (const prop of node.properties) { this.checkDeclaration(prop); } } else if (node.type === "ArrayPattern") { - for (let elem of node.elements) { + for (const elem of node.elements) { if (elem) { this.checkDeclaration(elem); } @@ -980,7 +982,7 @@ pp.raiseDuplicateExportError = function(node, name) { // Parses a comma-separated list of module exports. pp.parseExportSpecifiers = function () { - let nodes = []; + const nodes = []; let first = true; let needsFrom; @@ -995,10 +997,10 @@ pp.parseExportSpecifiers = function () { if (this.eat(tt.braceR)) break; } - let isDefault = this.match(tt._default); + const isDefault = this.match(tt._default); if (isDefault && !needsFrom) needsFrom = true; - let node = this.startNode(); + const node = this.startNode(); node.local = this.parseIdentifier(isDefault); node.exported = this.eatContextual("as") ? this.parseIdentifier(true) : node.local.__clone(); nodes.push(this.finishNode(node, "ExportSpecifier")); @@ -1037,13 +1039,14 @@ pp.parseImportSpecifiers = function (node) { let first = true; if (this.match(tt.name)) { // import defaultObj, { x, y as z } from '...' - let startPos = this.state.start, startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; node.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(), startPos, startLoc)); if (!this.eat(tt.comma)) return; } if (this.match(tt.star)) { - let specifier = this.startNode(); + const specifier = this.startNode(); this.next(); this.expectContextual("as"); specifier.local = this.parseIdentifier(); @@ -1066,7 +1069,7 @@ pp.parseImportSpecifiers = function (node) { }; pp.parseImportSpecifier = function (node) { - let specifier = this.startNode(); + const specifier = this.startNode(); specifier.imported = this.parseIdentifier(true); specifier.local = this.eatContextual("as") ? this.parseIdentifier() : specifier.imported.__clone(); this.checkLVal(specifier.local, true, undefined, "import specifier"); @@ -1074,7 +1077,7 @@ pp.parseImportSpecifier = function (node) { }; pp.parseImportSpecifierDefault = function (id, startPos, startLoc) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.local = id; this.checkLVal(node.local, true, undefined, "default import specifier"); return this.finishNode(node, "ImportDefaultSpecifier"); diff --git a/src/parser/util.js b/src/parser/util.js index c8ac407a8c..86724e67c6 100644 --- a/src/parser/util.js +++ b/src/parser/util.js @@ -11,7 +11,7 @@ const pp = Parser.prototype; pp.addExtra = function (node, key, val) { if (!node) return; - let extra = node.extra = node.extra || {}; + const extra = node.extra = node.extra || {}; extra[key] = val; }; diff --git a/src/plugins/flow.js b/src/plugins/flow.js index cc4c7a1e76..db2fc7724e 100644 --- a/src/plugins/flow.js +++ b/src/plugins/flow.js @@ -5,14 +5,14 @@ import { types as tt } from "../tokenizer/types"; import { types as ct } from "../tokenizer/context"; import Parser from "../parser"; -let pp = Parser.prototype; +const pp = Parser.prototype; pp.flowParseTypeInitialiser = function (tok) { - let oldInType = this.state.inType; + const oldInType = this.state.inType; this.state.inType = true; this.expect(tok || tt.colon); - let type = this.flowParseType(); + const type = this.flowParseType(); this.state.inType = oldInType; return type; }; @@ -26,10 +26,10 @@ pp.flowParseDeclareClass = function (node) { pp.flowParseDeclareFunction = function (node) { this.next(); - let id = node.id = this.parseIdentifier(); + const id = node.id = this.parseIdentifier(); - let typeNode = this.startNode(); - let typeContainer = this.startNode(); + const typeNode = this.startNode(); + const typeContainer = this.startNode(); if (this.isRelational("<")) { typeNode.typeParameters = this.flowParseTypeParameterDeclaration(); @@ -38,7 +38,7 @@ pp.flowParseDeclareFunction = function (node) { } this.expect(tt.parenL); - let tmp = this.flowParseFunctionTypeParams(); + const tmp = this.flowParseFunctionTypeParams(); typeNode.params = tmp.params; typeNode.rest = tmp.rest; this.expect(tt.parenR); @@ -92,11 +92,11 @@ pp.flowParseDeclareModule = function (node) { node.id = this.parseIdentifier(); } - let bodyNode = node.body = this.startNode(); - let body = bodyNode.body = []; + const bodyNode = node.body = this.startNode(); + const body = bodyNode.body = []; this.expect(tt.braceL); while (!this.match(tt.braceR)) { - let node2 = this.startNode(); + const node2 = this.startNode(); this.expectContextual("declare", "Unexpected token. Only declares are allowed inside declare module"); @@ -161,7 +161,7 @@ pp.flowParseInterfaceish = function (node, allowStatic) { }; pp.flowParseInterfaceExtends = function () { - let node = this.startNode(); + const node = this.startNode(); node.id = this.flowParseQualifiedTypeIdentifier(); if (this.isRelational("<")) { @@ -198,11 +198,11 @@ pp.flowParseTypeAlias = function (node) { // Type annotations pp.flowParseTypeParameter = function () { - let node = this.startNode(); + const node = this.startNode(); - let variance = this.flowParseVariance(); + const variance = this.flowParseVariance(); - let ident = this.flowParseTypeAnnotatableIdentifier(); + const ident = this.flowParseTypeAnnotatableIdentifier(); node.name = ident.name; node.variance = variance; node.bound = ident.typeAnnotation; @@ -217,7 +217,7 @@ pp.flowParseTypeParameter = function () { pp.flowParseTypeParameterDeclaration = function () { const oldInType = this.state.inType; - let node = this.startNode(); + const node = this.startNode(); node.params = []; this.state.inType = true; @@ -243,7 +243,8 @@ pp.flowParseTypeParameterDeclaration = function () { }; pp.flowParseTypeParameterInstantiation = function () { - let node = this.startNode(), oldInType = this.state.inType; + const node = this.startNode(); + const oldInType = this.state.inType; node.params = []; this.state.inType = true; @@ -312,7 +313,7 @@ pp.flowParseObjectTypeMethodish = function (node) { }; pp.flowParseObjectTypeMethod = function (startPos, startLoc, isStatic, key) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.value = this.flowParseObjectTypeMethodish(this.startNodeAt(startPos, startLoc)); node.static = isStatic; node.key = key; @@ -322,7 +323,7 @@ pp.flowParseObjectTypeMethod = function (startPos, startLoc, isStatic, key) { }; pp.flowParseObjectTypeCallProperty = function (node, isStatic) { - let valueNode = this.startNode(); + const valueNode = this.startNode(); node.static = isStatic; node.value = this.flowParseObjectTypeMethodish(valueNode); this.flowObjectTypeSemicolon(); @@ -333,7 +334,7 @@ pp.flowParseObjectType = function (allowStatic, allowExact) { const oldInType = this.state.inType; this.state.inType = true; - let nodeStart = this.startNode(); + const nodeStart = this.startNode(); let node; let propertyKey; let isStatic = false; @@ -358,15 +359,16 @@ pp.flowParseObjectType = function (allowStatic, allowExact) { while (!this.match(endDelim)) { let optional = false; - let startPos = this.state.start, startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; node = this.startNode(); if (allowStatic && this.isContextual("static") && this.lookahead().type !== tt.colon) { this.next(); isStatic = true; } - let variancePos = this.state.start; - let variance = this.flowParseVariance(); + const variancePos = this.state.start; + const variance = this.flowParseVariance(); if (this.match(tt.bracketL)) { nodeStart.indexers.push(this.flowParseObjectTypeIndexer(node, isStatic, variance)); @@ -422,7 +424,7 @@ pp.flowParseQualifiedTypeIdentifier = function (startPos, startLoc, id) { let node = id || this.parseIdentifier(); while (this.eat(tt.dot)) { - let node2 = this.startNodeAt(startPos, startLoc); + const node2 = this.startNodeAt(startPos, startLoc); node2.qualification = node; node2.id = this.parseIdentifier(); node = this.finishNode(node2, "QualifiedTypeIdentifier"); @@ -432,7 +434,7 @@ pp.flowParseQualifiedTypeIdentifier = function (startPos, startLoc, id) { }; pp.flowParseGenericType = function (startPos, startLoc, id) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.typeParameters = null; node.id = this.flowParseQualifiedTypeIdentifier(startPos, startLoc, id); @@ -445,14 +447,14 @@ pp.flowParseGenericType = function (startPos, startLoc, id) { }; pp.flowParseTypeofType = function () { - let node = this.startNode(); + const node = this.startNode(); this.expect(tt._typeof); node.argument = this.flowParsePrimaryType(); return this.finishNode(node, "TypeofTypeAnnotation"); }; pp.flowParseTupleType = function () { - let node = this.startNode(); + const node = this.startNode(); node.types = []; this.expect(tt.bracketL); // We allow trailing commas @@ -469,7 +471,7 @@ pp.flowParseFunctionTypeParam = function () { let name = null; let optional = false; let typeAnnotation = null; - let node = this.startNode(); + const node = this.startNode(); const lh = this.lookahead(); if (lh.type === tt.colon || lh.type === tt.question) { @@ -488,7 +490,7 @@ pp.flowParseFunctionTypeParam = function () { }; pp.reinterpretTypeAsFunctionTypeParam = function (type) { - let node = this.startNodeAt(type.start, type.loc); + const node = this.startNodeAt(type.start, type.loc); node.name = null; node.optional = false; node.typeAnnotation = type; @@ -496,7 +498,7 @@ pp.reinterpretTypeAsFunctionTypeParam = function (type) { }; pp.flowParseFunctionTypeParams = function (params = []) { - let ret = { params, rest: null }; + const ret = { params, rest: null }; while (this.match(tt.name)) { ret.params.push(this.flowParseFunctionTypeParam()); if (!this.match(tt.parenR)) { @@ -542,12 +544,13 @@ pp.flowIdentToTypeAnnotation = function (startPos, startLoc, node, id) { // primary types are kind of like primary expressions...they're the // primitives with which other types are constructed. pp.flowParsePrimaryType = function () { - let startPos = this.state.start, startLoc = this.state.startLoc; - let node = this.startNode(); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const node = this.startNode(); let tmp; let type; let isGroupedType = false; - let oldNoAnonFunctionType = this.state.noAnonFunctionType; + const oldNoAnonFunctionType = this.state.noAnonFunctionType; switch (this.state.type) { case tt.name: @@ -585,7 +588,7 @@ pp.flowParsePrimaryType = function () { // Check to see if this is actually a grouped type if (!this.match(tt.parenR) && !this.match(tt.ellipsis)) { if (this.match(tt.name)) { - let token = this.lookahead().type; + const token = this.lookahead().type; isGroupedType = token !== tt.question && token !== tt.colon; } else { isGroupedType = true; @@ -698,7 +701,7 @@ pp.flowParsePostfixType = function () { }; pp.flowParsePrefixType = function () { - let node = this.startNode(); + const node = this.startNode(); if (this.eat(tt.question)) { node.typeAnnotation = this.flowParsePrefixType(); return this.finishNode(node, "NullableTypeAnnotation"); @@ -721,9 +724,9 @@ pp.flowParseAnonFunctionWithoutParens = function () { }; pp.flowParseIntersectionType = function () { - let node = this.startNode(); + const node = this.startNode(); this.eat(tt.bitwiseAND); - let type = this.flowParseAnonFunctionWithoutParens(); + const type = this.flowParseAnonFunctionWithoutParens(); node.types = [type]; while (this.eat(tt.bitwiseAND)) { node.types.push(this.flowParseAnonFunctionWithoutParens()); @@ -732,9 +735,9 @@ pp.flowParseIntersectionType = function () { }; pp.flowParseUnionType = function () { - let node = this.startNode(); + const node = this.startNode(); this.eat(tt.bitwiseOR); - let type = this.flowParseIntersectionType(); + const type = this.flowParseIntersectionType(); node.types = [type]; while (this.eat(tt.bitwiseOR)) { node.types.push(this.flowParseIntersectionType()); @@ -743,21 +746,21 @@ pp.flowParseUnionType = function () { }; pp.flowParseType = function () { - let oldInType = this.state.inType; + const oldInType = this.state.inType; this.state.inType = true; - let type = this.flowParseUnionType(); + const type = this.flowParseUnionType(); this.state.inType = oldInType; return type; }; pp.flowParseTypeAnnotation = function () { - let node = this.startNode(); + const node = this.startNode(); node.typeAnnotation = this.flowParseTypeInitialiser(); return this.finishNode(node, "TypeAnnotation"); }; pp.flowParseTypeAnnotatableIdentifier = function () { - let ident = this.parseIdentifier(); + const ident = this.parseIdentifier(); if (this.match(tt.colon)) { ident.typeAnnotation = this.flowParseTypeAnnotation(); this.finishNode(ident, ident.type); @@ -808,7 +811,7 @@ export default function (instance) { return function (declaration, topLevel) { // strict mode handling of `interface` since it's a reserved word if (this.state.strict && this.match(tt.name) && this.state.value === "interface") { - let node = this.startNode(); + const node = this.startNode(); this.next(); return this.flowParseInterface(node); } else { @@ -879,7 +882,7 @@ export default function (instance) { } if (this.match(tt.colon)) { - let typeCastNode = this.startNodeAt(startLoc, startPos); + const typeCastNode = this.startNodeAt(startLoc, startPos); typeCastNode.expression = node; typeCastNode.typeAnnotation = this.flowParseTypeAnnotation(); @@ -905,7 +908,7 @@ export default function (instance) { if (this.isContextual("type")) { node.exportKind = "type"; - let declarationNode = this.startNode(); + const declarationNode = this.startNode(); this.next(); if (this.match(tt.braceL)) { @@ -919,7 +922,7 @@ export default function (instance) { } } else if (this.isContextual("interface")) { node.exportKind = "type"; - let declarationNode = this.startNode(); + const declarationNode = this.startNode(); this.next(); return this.flowParseInterface(declarationNode); } else { @@ -981,7 +984,7 @@ export default function (instance) { instance.extend("toAssignableList", function (inner) { return function (exprList, isBinding, contextDescription) { for (let i = 0; i < exprList.length; i++) { - let expr = exprList[i]; + const expr = exprList[i]; if (expr && expr.type === "TypeCastExpression") { exprList[i] = this.typeCastToParameter(expr); } @@ -995,7 +998,7 @@ export default function (instance) { instance.extend("toReferencedList", function () { return function (exprList) { for (let i = 0; i < exprList.length; i++) { - let expr = exprList[i]; + const expr = exprList[i]; if (expr && expr._exprListItem && expr.type === "TypeCastExpression") { this.raise(expr.start, "Unexpected type cast"); } @@ -1009,8 +1012,8 @@ export default function (instance) { // the position where this function is called instance.extend("parseExprListItem", function (inner) { return function (allowEmpty, refShorthandDefaultPos) { - let container = this.startNode(); - let node = inner.call(this, allowEmpty, refShorthandDefaultPos); + const container = this.startNode(); + const node = inner.call(this, allowEmpty, refShorthandDefaultPos); if (this.match(tt.colon)) { container._exprListItem = true; container.expression = node; @@ -1073,9 +1076,9 @@ export default function (instance) { } if (this.isContextual("implements")) { this.next(); - let implemented = node.implements = []; + const implemented = node.implements = []; do { - let node = this.startNode(); + const node = this.startNode(); node.id = this.parseIdentifier(); if (this.isRelational("<")) { node.typeParameters = this.flowParseTypeParameterInstantiation(); @@ -1090,9 +1093,9 @@ export default function (instance) { instance.extend("parsePropertyName", function (inner) { return function (node) { - let variancePos = this.state.start; - let variance = this.flowParseVariance(); - let key = inner.call(this, node); + const variancePos = this.state.start; + const variance = this.flowParseVariance(); + const key = inner.call(this, node); node.variance = variance; node.variancePos = variancePos; return key; @@ -1163,7 +1166,7 @@ export default function (instance) { kind = "type"; } if (kind) { - let lh = this.lookahead(); + const lh = this.lookahead(); if ((lh.type === tt.name && lh.value !== "from") || lh.type === tt.braceL || lh.type === tt.star) { this.next(); node.importKind = kind; @@ -1177,7 +1180,7 @@ export default function (instance) { // parse import-type/typeof shorthand instance.extend("parseImportSpecifier", function () { return function (node) { - let specifier = this.startNode(); + const specifier = this.startNode(); const firstIdentLoc = this.state.start; const firstIdent = this.parseIdentifier(true); @@ -1334,11 +1337,11 @@ export default function (instance) { instance.extend("parseArrow", function (inner) { return function (node) { if (this.match(tt.colon)) { - let state = this.state.clone(); + const state = this.state.clone(); try { const oldNoAnonFunctionType = this.state.noAnonFunctionType; this.state.noAnonFunctionType = true; - let returnType = this.flowParseTypeAnnotation(); + const returnType = this.flowParseTypeAnnotation(); this.state.noAnonFunctionType = oldNoAnonFunctionType; if (this.canInsertSemicolon()) this.unexpected(); diff --git a/src/plugins/jsx/index.js b/src/plugins/jsx/index.js index 31bf94de8b..871de841f6 100644 --- a/src/plugins/jsx/index.js +++ b/src/plugins/jsx/index.js @@ -26,7 +26,7 @@ tt.jsxTagStart.updateContext = function() { }; tt.jsxTagEnd.updateContext = function(prevType) { - let out = this.state.context.pop(); + const out = this.state.context.pop(); if (out === tc.j_oTag && prevType === tt.slash || out === tc.j_cTag) { this.state.context.pop(); this.state.exprAllowed = this.curContext() === tc.j_expr; @@ -35,7 +35,7 @@ tt.jsxTagEnd.updateContext = function(prevType) { } }; -let pp = Parser.prototype; +const pp = Parser.prototype; // Reads inline JSX contents token. @@ -47,7 +47,7 @@ pp.jsxReadToken = function() { this.raise(this.state.start, "Unterminated JSX contents"); } - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); switch (ch) { case 60: // "<" @@ -81,7 +81,7 @@ pp.jsxReadToken = function() { }; pp.jsxReadNewLine = function(normalizeCRLF) { - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); let out; ++this.state.pos; if (ch === 13 && this.input.charCodeAt(this.state.pos) === 10) { @@ -104,7 +104,7 @@ pp.jsxReadString = function(quote) { this.raise(this.state.start, "Unterminated string constant"); } - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); if (ch === quote) break; if (ch === 38) { // "&" out += this.input.slice(chunkStart, this.state.pos); @@ -128,7 +128,7 @@ pp.jsxReadEntity = function() { let entity; let ch = this.input[this.state.pos]; - let startPos = ++this.state.pos; + const startPos = ++this.state.pos; while (this.state.pos < this.input.length && count++ < 10) { ch = this.input[this.state.pos++]; if (ch === ";") { @@ -166,7 +166,7 @@ pp.jsxReadEntity = function() { pp.jsxReadWord = function() { let ch; - let start = this.state.pos; + const start = this.state.pos; do { ch = this.input.charCodeAt(++this.state.pos); } while (isIdentifierChar(ch) || ch === 45); // "-" @@ -192,7 +192,7 @@ function getQualifiedJSXName(object) { // Parse next token as JSX identifier pp.jsxParseIdentifier = function() { - let node = this.startNode(); + const node = this.startNode(); if (this.match(tt.jsxName)) { node.name = this.state.value; } else if (this.state.type.keyword) { @@ -207,11 +207,12 @@ pp.jsxParseIdentifier = function() { // Parse namespaced identifier. pp.jsxParseNamespacedName = function() { - let startPos = this.state.start, startLoc = this.state.startLoc; - let name = this.jsxParseIdentifier(); + const startPos = this.state.start; + const startLoc = this.state.startLoc; + const name = this.jsxParseIdentifier(); if (!this.eat(tt.colon)) return name; - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.namespace = name; node.name = this.jsxParseIdentifier(); return this.finishNode(node, "JSXNamespacedName"); @@ -221,10 +222,11 @@ pp.jsxParseNamespacedName = function() { // or single identifier. pp.jsxParseElementName = function() { - let startPos = this.state.start, startLoc = this.state.startLoc; + const startPos = this.state.start; + const startLoc = this.state.startLoc; let node = this.jsxParseNamespacedName(); while (this.eat(tt.dot)) { - let newNode = this.startNodeAt(startPos, startLoc); + const newNode = this.startNodeAt(startPos, startLoc); newNode.object = node; newNode.property = this.jsxParseIdentifier(); node = this.finishNode(newNode, "JSXMemberExpression"); @@ -261,14 +263,14 @@ pp.jsxParseAttributeValue = function() { // at the beginning of the next one (right brace). pp.jsxParseEmptyExpression = function() { - let node = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc); + const node = this.startNodeAt(this.state.lastTokEnd, this.state.lastTokEndLoc); return this.finishNodeAt(node, "JSXEmptyExpression", this.state.start, this.state.startLoc); }; // Parse JSX spread child pp.jsxParseSpreadChild = function() { - let node = this.startNode(); + const node = this.startNode(); this.expect(tt.braceL); this.expect(tt.ellipsis); node.expression = this.parseExpression(); @@ -281,7 +283,7 @@ pp.jsxParseSpreadChild = function() { pp.jsxParseExpressionContainer = function() { - let node = this.startNode(); + const node = this.startNode(); this.next(); if (this.match(tt.braceR)) { node.expression = this.jsxParseEmptyExpression(); @@ -295,7 +297,7 @@ pp.jsxParseExpressionContainer = function() { // Parses following JSX attribute name-value pair. pp.jsxParseAttribute = function() { - let node = this.startNode(); + const node = this.startNode(); if (this.eat(tt.braceL)) { this.expect(tt.ellipsis); node.argument = this.parseMaybeAssign(); @@ -310,7 +312,7 @@ pp.jsxParseAttribute = function() { // Parses JSX opening tag starting after "<". pp.jsxParseOpeningElementAt = function(startPos, startLoc) { - let node = this.startNodeAt(startPos, startLoc); + const node = this.startNodeAt(startPos, startLoc); node.attributes = []; node.name = this.jsxParseElementName(); while (!this.match(tt.slash) && !this.match(tt.jsxTagEnd)) { @@ -324,7 +326,7 @@ pp.jsxParseOpeningElementAt = function(startPos, startLoc) { // Parses JSX closing tag starting after "= 0xe000) return code; - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); return (code << 10) + next - 0x35fdc00; } pushComment(block, text, start, end, startLoc, endLoc) { - let comment = { + const comment = { type: block ? "CommentBlock" : "CommentLine", value: text, start: start, @@ -171,8 +171,9 @@ export default class Tokenizer { } skipBlockComment() { - let startLoc = this.state.curPosition(); - let start = this.state.pos, end = this.input.indexOf("*/", this.state.pos += 2); + const startLoc = this.state.curPosition(); + const start = this.state.pos; + const end = this.input.indexOf("*/", this.state.pos += 2); if (end === -1) this.raise(this.state.pos - 2, "Unterminated comment"); this.state.pos = end + 2; @@ -187,8 +188,8 @@ export default class Tokenizer { } skipLineComment(startSkip) { - let start = this.state.pos; - let startLoc = this.state.curPosition(); + const start = this.state.pos; + const startLoc = this.state.curPosition(); let ch = this.input.charCodeAt(this.state.pos += startSkip); while (this.state.pos < this.input.length && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) { ++this.state.pos; @@ -203,7 +204,7 @@ export default class Tokenizer { skipSpace() { loop: while (this.state.pos < this.input.length) { - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); switch (ch) { case 32: case 160: // ' ' ++this.state.pos; @@ -253,7 +254,7 @@ export default class Tokenizer { finishToken(type, val) { this.state.end = this.state.pos; this.state.endLoc = this.state.curPosition(); - let prevType = this.state.type; + const prevType = this.state.type; this.state.type = type; this.state.value = val; @@ -270,12 +271,12 @@ export default class Tokenizer { // All in the name of speed. // readToken_dot() { - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next >= 48 && next <= 57) { return this.readNumber(true); } - let next2 = this.input.charCodeAt(this.state.pos + 2); + const next2 = this.input.charCodeAt(this.state.pos + 2); if (next === 46 && next2 === 46) { // 46 = dot '.' this.state.pos += 3; return this.finishToken(tt.ellipsis); @@ -291,7 +292,7 @@ export default class Tokenizer { return this.readRegexp(); } - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === 61) { return this.finishOp(tt.assign, 2); } else { @@ -319,7 +320,7 @@ export default class Tokenizer { } readToken_pipe_amp(code) { // '|&' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === code) return this.finishOp(code === 124 ? tt.logicalOR : tt.logicalAND, 2); if (next === 61) return this.finishOp(tt.assign, 2); if (code === 124 && next === 125 && this.hasPlugin("flow")) return this.finishOp(tt.braceBarR, 2); @@ -327,7 +328,7 @@ export default class Tokenizer { } readToken_caret() { // '^' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === 61) { return this.finishOp(tt.assign, 2); } else { @@ -336,7 +337,7 @@ export default class Tokenizer { } readToken_plus_min(code) { // '+-' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === code) { if (next === 45 && this.input.charCodeAt(this.state.pos + 2) === 62 && lineBreak.test(this.input.slice(this.state.lastTokEnd, this.state.pos))) { @@ -356,7 +357,7 @@ export default class Tokenizer { } readToken_lt_gt(code) { // '<>' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); let size = 1; if (next === code) { @@ -382,7 +383,7 @@ export default class Tokenizer { } readToken_eq_excl(code) { // '=!' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === 61) return this.finishOp(tt.equality, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); if (code === 61 && next === 62) { // '=>' this.state.pos += 2; @@ -433,7 +434,7 @@ export default class Tokenizer { return this.finishToken(tt.backQuote); case 48: // '0' - let next = this.input.charCodeAt(this.state.pos + 1); + const next = this.input.charCodeAt(this.state.pos + 1); if (next === 120 || next === 88) return this.readRadixNumber(16); // '0x', '0X' - hex number if (next === 111 || next === 79) return this.readRadixNumber(8); // '0o', '0O' - octal number if (next === 98 || next === 66) return this.readRadixNumber(2); // '0b', '0B' - binary number @@ -480,16 +481,17 @@ export default class Tokenizer { } finishOp(type, size) { - let str = this.input.slice(this.state.pos, this.state.pos + size); + const str = this.input.slice(this.state.pos, this.state.pos + size); this.state.pos += size; return this.finishToken(type, str); } readRegexp() { - let escaped, inClass, start = this.state.pos; + const start = this.state.pos; + let escaped, inClass; for (;;) { if (this.state.pos >= this.input.length) this.raise(start, "Unterminated regular expression"); - let ch = this.input.charAt(this.state.pos); + const ch = this.input.charAt(this.state.pos); if (lineBreak.test(ch)) { this.raise(start, "Unterminated regular expression"); } @@ -507,13 +509,13 @@ export default class Tokenizer { } ++this.state.pos; } - let content = this.input.slice(start, this.state.pos); + const content = this.input.slice(start, this.state.pos); ++this.state.pos; // Need to use `readWord1` because '\uXXXX' sequences are allowed // here (don't ask). - let mods = this.readWord1(); + const mods = this.readWord1(); if (mods) { - let validFlags = /^[gmsiyu]*$/; + const validFlags = /^[gmsiyu]*$/; if (!validFlags.test(mods)) this.raise(start, "Invalid regular expression flag"); } return this.finishToken(tt.regexp, { @@ -527,9 +529,12 @@ export default class Tokenizer { // will return `null` unless the integer has exactly `len` digits. readInt(radix, len) { - let start = this.state.pos, total = 0; + const start = this.state.pos; + let total = 0; + for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) { - let code = this.input.charCodeAt(this.state.pos), val; + const code = this.input.charCodeAt(this.state.pos); + let val; if (code >= 97) { val = code - 97 + 10; // a } else if (code >= 65) { @@ -550,7 +555,7 @@ export default class Tokenizer { readRadixNumber(radix) { this.state.pos += 2; // 0x - let val = this.readInt(radix); + const val = this.readInt(radix); if (val == null) this.raise(this.state.start + 2, "Expected number in radix " + radix); if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.state.pos, "Identifier directly after number"); return this.finishToken(tt.num, val); @@ -559,7 +564,10 @@ export default class Tokenizer { // Read an integer, octal integer, or floating-point number. readNumber(startsWithDot) { - let start = this.state.pos, isFloat = false, octal = this.input.charCodeAt(this.state.pos) === 48; + const start = this.state.pos; + const octal = this.input.charCodeAt(this.state.pos) === 48; + let isFloat = false; + if (!startsWithDot && this.readInt(10) === null) this.raise(start, "Invalid number"); let next = this.input.charCodeAt(this.state.pos); if (next === 46) { // '.' @@ -576,7 +584,8 @@ export default class Tokenizer { } if (isIdentifierStart(this.fullCharCodeAtPos())) this.raise(this.state.pos, "Identifier directly after number"); - let str = this.input.slice(start, this.state.pos), val; + const str = this.input.slice(start, this.state.pos); + let val; if (isFloat) { val = parseFloat(str); } else if (!octal || str.length === 1) { @@ -592,10 +601,11 @@ export default class Tokenizer { // Read a string value, interpreting backslash-escapes. readCodePoint() { - let ch = this.input.charCodeAt(this.state.pos), code; + const ch = this.input.charCodeAt(this.state.pos); + let code; if (ch === 123) { - let codePos = ++this.state.pos; + const codePos = ++this.state.pos; code = this.readHexChar(this.input.indexOf("}", this.state.pos) - this.state.pos); ++this.state.pos; if (code > 0x10FFFF) this.raise(codePos, "Code point out of bounds"); @@ -609,7 +619,7 @@ export default class Tokenizer { let out = "", chunkStart = ++this.state.pos; for (;;) { if (this.state.pos >= this.input.length) this.raise(this.state.start, "Unterminated string constant"); - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); if (ch === quote) break; if (ch === 92) { // '\' out += this.input.slice(chunkStart, this.state.pos); @@ -630,7 +640,7 @@ export default class Tokenizer { let out = "", chunkStart = this.state.pos; for (;;) { if (this.state.pos >= this.input.length) this.raise(this.state.start, "Unterminated template"); - let ch = this.input.charCodeAt(this.state.pos); + const ch = this.input.charCodeAt(this.state.pos); if (ch === 96 || ch === 36 && this.input.charCodeAt(this.state.pos + 1) === 123) { // '`', '${' if (this.state.pos === this.state.start && this.match(tt.template)) { if (ch === 36) { @@ -673,7 +683,7 @@ export default class Tokenizer { // Used to read escaped characters readEscapedChar(inTemplate) { - let ch = this.input.charCodeAt(++this.state.pos); + const ch = this.input.charCodeAt(++this.state.pos); ++this.state.pos; switch (ch) { case 110: return "\n"; // 'n' -> '\n' @@ -716,8 +726,8 @@ export default class Tokenizer { // Used to read character escape sequences ('\x', '\u', '\U'). readHexChar(len) { - let codePos = this.state.pos; - let n = this.readInt(16, len); + const codePos = this.state.pos; + const n = this.readInt(16, len); if (n === null) this.raise(codePos, "Bad character escape sequence"); return n; } @@ -732,21 +742,21 @@ export default class Tokenizer { this.state.containsEsc = false; let word = "", first = true, chunkStart = this.state.pos; while (this.state.pos < this.input.length) { - let ch = this.fullCharCodeAtPos(); + const ch = this.fullCharCodeAtPos(); if (isIdentifierChar(ch)) { this.state.pos += ch <= 0xffff ? 1 : 2; } else if (ch === 92) { // "\" this.state.containsEsc = true; word += this.input.slice(chunkStart, this.state.pos); - let escStart = this.state.pos; + const escStart = this.state.pos; if (this.input.charCodeAt(++this.state.pos) !== 117) { // "u" this.raise(this.state.pos, "Expecting Unicode escape sequence \\uXXXX"); } ++this.state.pos; - let esc = this.readCodePoint(); + const esc = this.readCodePoint(); if (!(first ? isIdentifierStart : isIdentifierChar)(esc, true)) { this.raise(escStart, "Invalid Unicode escape"); } @@ -765,7 +775,7 @@ export default class Tokenizer { // words when necessary. readWord() { - let word = this.readWord1(); + const word = this.readWord1(); let type = tt.name; if (!this.state.containsEsc && this.isKeyword(word)) { type = keywordTypes[word]; @@ -775,7 +785,7 @@ export default class Tokenizer { braceIsBlock(prevType) { if (prevType === tt.colon) { - let parent = this.curContext(); + const parent = this.curContext(); if (parent === ct.braceStatement || parent === ct.braceExpression) { return !parent.isExpr; } @@ -797,7 +807,9 @@ export default class Tokenizer { } updateContext(prevType) { - let update, type = this.state.type; + const type = this.state.type; + let update; + if (type.keyword && prevType === tt.dot) { this.state.exprAllowed = false; } else if (update = type.updateContext) { diff --git a/src/tokenizer/state.js b/src/tokenizer/state.js index b526ca22eb..878bf6b932 100644 --- a/src/tokenizer/state.js +++ b/src/tokenizer/state.js @@ -140,8 +140,8 @@ export default class State { } clone(skipArrays?) { - let state = new State; - for (let key in this) { + const state = new State; + for (const key in this) { let val = this[key]; if ((!skipArrays || key === "context") && Array.isArray(val)) { diff --git a/src/tokenizer/types.js b/src/tokenizer/types.js index 86d49e10cb..b82dfe0902 100644 --- a/src/tokenizer/types.js +++ b/src/tokenizer/types.js @@ -16,6 +16,13 @@ // to know when parsing a label, in order to allow or disallow // continue jumps to that label. +const beforeExpr = true; +const startsExpr = true; +const isLoop = true; +const isAssign = true; +const prefix = true; +const postfix = true; + export class TokenType { constructor(label, conf = {}) { this.label = label; @@ -32,38 +39,47 @@ export class TokenType { } } -function binop(name, prec) { - return new TokenType(name, {beforeExpr: true, binop: prec}); +class KeywordTokenType extends TokenType { + constructor(name, options = {}) { + options.keyword = name; + + super(name, options); + } +} + +export class BinopTokenType extends TokenType { + constructor(name, prec) { + super(name, { beforeExpr, binop: prec }); + } } -const beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true}; export const types = { - num: new TokenType("num", startsExpr), - regexp: new TokenType("regexp", startsExpr), - string: new TokenType("string", startsExpr), - name: new TokenType("name", startsExpr), + num: new TokenType("num", { startsExpr }), + regexp: new TokenType("regexp", { startsExpr }), + string: new TokenType("string", { startsExpr }), + name: new TokenType("name", { startsExpr }), eof: new TokenType("eof"), // Punctuation token types. - bracketL: new TokenType("[", {beforeExpr: true, startsExpr: true}), + bracketL: new TokenType("[", { beforeExpr, startsExpr }), bracketR: new TokenType("]"), - braceL: new TokenType("{", {beforeExpr: true, startsExpr: true}), - braceBarL: new TokenType("{|", {beforeExpr: true, startsExpr: true}), + braceL: new TokenType("{", { beforeExpr, startsExpr }), + braceBarL: new TokenType("{|", { beforeExpr, startsExpr }), braceR: new TokenType("}"), braceBarR: new TokenType("|}"), - parenL: new TokenType("(", {beforeExpr: true, startsExpr: true}), + parenL: new TokenType("(", { beforeExpr, startsExpr }), parenR: new TokenType(")"), - comma: new TokenType(",", beforeExpr), - semi: new TokenType(";", beforeExpr), - colon: new TokenType(":", beforeExpr), - doubleColon: new TokenType("::", beforeExpr), + comma: new TokenType(",", { beforeExpr }), + semi: new TokenType(";", { beforeExpr }), + colon: new TokenType(":", { beforeExpr }), + doubleColon: new TokenType("::", { beforeExpr }), dot: new TokenType("."), - question: new TokenType("?", beforeExpr), - arrow: new TokenType("=>", beforeExpr), + question: new TokenType("?", { beforeExpr }), + arrow: new TokenType("=>", { beforeExpr }), template: new TokenType("template"), - ellipsis: new TokenType("...", beforeExpr), - backQuote: new TokenType("`", startsExpr), - dollarBraceL: new TokenType("${", {beforeExpr: true, startsExpr: true}), + ellipsis: new TokenType("...", { beforeExpr }), + backQuote: new TokenType("`", { startsExpr }), + dollarBraceL: new TokenType("${", { beforeExpr, startsExpr }), at: new TokenType("@"), // Operators. These carry several kinds of properties to help the @@ -80,69 +96,66 @@ export const types = { // binary operators with a very low precedence, that should result // in AssignmentExpression nodes. - eq: new TokenType("=", {beforeExpr: true, isAssign: true}), - assign: new TokenType("_=", {beforeExpr: true, isAssign: true}), - incDec: new TokenType("++/--", {prefix: true, postfix: true, startsExpr: true}), - prefix: new TokenType("prefix", {beforeExpr: true, prefix: true, startsExpr: true}), - logicalOR: binop("||", 1), - logicalAND: binop("&&", 2), - bitwiseOR: binop("|", 3), - bitwiseXOR: binop("^", 4), - bitwiseAND: binop("&", 5), - equality: binop("==/!=", 6), - relational: binop("", 7), - bitShift: binop("<>", 8), - plusMin: new TokenType("+/-", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}), - modulo: binop("%", 10), - star: binop("*", 10), - slash: binop("/", 10), - exponent: new TokenType("**", {beforeExpr: true, binop: 11, rightAssociative: true}) + eq: new TokenType("=", { beforeExpr, isAssign }), + assign: new TokenType("_=", { beforeExpr, isAssign }), + incDec: new TokenType("++/--", { prefix, postfix, startsExpr }), + prefix: new TokenType("prefix", { beforeExpr, prefix, startsExpr }), + logicalOR: new BinopTokenType("||", 1), + logicalAND: new BinopTokenType("&&", 2), + bitwiseOR: new BinopTokenType("|", 3), + bitwiseXOR: new BinopTokenType("^", 4), + bitwiseAND: new BinopTokenType("&", 5), + equality: new BinopTokenType("==/!=", 6), + relational: new BinopTokenType("", 7), + bitShift: new BinopTokenType("<>", 8), + plusMin: new TokenType("+/-", { beforeExpr, binop: 9, prefix, startsExpr }), + modulo: new BinopTokenType("%", 10), + star: new BinopTokenType("*", 10), + slash: new BinopTokenType("/", 10), + exponent: new TokenType("**", { beforeExpr, binop: 11, rightAssociative: true }) +}; + +export const keywords = { + "break": new KeywordTokenType("break"), + "case": new KeywordTokenType("case", { beforeExpr }), + "catch": new KeywordTokenType("catch"), + "continue": new KeywordTokenType("continue"), + "debugger": new KeywordTokenType("debugger"), + "default": new KeywordTokenType("default", { beforeExpr }), + "do": new KeywordTokenType("do", { isLoop, beforeExpr }), + "else": new KeywordTokenType("else", { beforeExpr }), + "finally": new KeywordTokenType("finally"), + "for": new KeywordTokenType("for", { isLoop }), + "function": new KeywordTokenType("function", { startsExpr }), + "if": new KeywordTokenType("if"), + "return": new KeywordTokenType("return", { beforeExpr }), + "switch": new KeywordTokenType("switch"), + "throw": new KeywordTokenType("throw", { beforeExpr }), + "try": new KeywordTokenType("try"), + "var": new KeywordTokenType("var"), + "let": new KeywordTokenType("let"), + "const": new KeywordTokenType("const"), + "while": new KeywordTokenType("while", { isLoop }), + "with": new KeywordTokenType("with"), + "new": new KeywordTokenType("new", { beforeExpr, startsExpr }), + "this": new KeywordTokenType("this", { startsExpr }), + "super": new KeywordTokenType("super", { startsExpr }), + "class": new KeywordTokenType("class"), + "extends": new KeywordTokenType("extends", { beforeExpr }), + "export": new KeywordTokenType("export"), + "import": new KeywordTokenType("import"), + "yield": new KeywordTokenType("yield", { beforeExpr, startsExpr }), + "null": new KeywordTokenType("null", { startsExpr }), + "true": new KeywordTokenType("true", { startsExpr }), + "false": new KeywordTokenType("false", { startsExpr }), + "in": new KeywordTokenType("in", { beforeExpr, binop: 7 }), + "instanceof": new KeywordTokenType("instanceof", { beforeExpr, binop: 7 }), + "typeof": new KeywordTokenType("typeof", { beforeExpr, prefix, startsExpr }), + "void": new KeywordTokenType("void", { beforeExpr, prefix, startsExpr }), + "delete": new KeywordTokenType("delete", { beforeExpr, prefix, startsExpr }) }; // Map keyword names to token types. - -export const keywords = {}; - -// Succinct definitions of keyword token types -function kw(name, options = {}) { - options.keyword = name; - keywords[name] = types["_" + name] = new TokenType(name, options); -} - -kw("break"); -kw("case", beforeExpr); -kw("catch"); -kw("continue"); -kw("debugger"); -kw("default", beforeExpr); -kw("do", {isLoop: true, beforeExpr: true}); -kw("else", beforeExpr); -kw("finally"); -kw("for", {isLoop: true}); -kw("function", startsExpr); -kw("if"); -kw("return", beforeExpr); -kw("switch"); -kw("throw", beforeExpr); -kw("try"); -kw("var"); -kw("let"); -kw("const"); -kw("while", {isLoop: true}); -kw("with"); -kw("new", {beforeExpr: true, startsExpr: true}); -kw("this", startsExpr); -kw("super", startsExpr); -kw("class"); -kw("extends", beforeExpr); -kw("export"); -kw("import"); -kw("yield", {beforeExpr: true, startsExpr: true}); -kw("null", startsExpr); -kw("true", startsExpr); -kw("false", startsExpr); -kw("in", {beforeExpr: true, binop: 7}); -kw("instanceof", {beforeExpr: true, binop: 7}); -kw("typeof", {beforeExpr: true, prefix: true, startsExpr: true}); -kw("void", {beforeExpr: true, prefix: true, startsExpr: true}); -kw("delete", {beforeExpr: true, prefix: true, startsExpr: true}); +Object.keys(keywords).forEach((name) => { + types["_" + name] = keywords[name]; +}); diff --git a/src/util/location.js b/src/util/location.js index 883d4b3daa..38137496c1 100644 --- a/src/util/location.js +++ b/src/util/location.js @@ -26,7 +26,7 @@ export class SourceLocation { export function getLineInfo(input, offset) { for (let line = 1, cur = 0; ;) { lineBreakG.lastIndex = cur; - let match = lineBreakG.exec(input); + const match = lineBreakG.exec(input); if (match && match.index < offset) { ++line; cur = match.index + match[0].length; diff --git a/test/fixtures/core/regression/T2921/expected.json b/test/fixtures/core/regression/T2921/expected.json deleted file mode 100644 index 9df924963b..0000000000 --- a/test/fixtures/core/regression/T2921/expected.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "expression": { - "type": "BinaryExpression", - "start": 0, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "left": { - "type": "Identifier", - "start": 0, - "end": 1, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 1 - } - }, - "name": "a" - }, - "operator": "<==", - "right": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "b" - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/466/expected.json b/test/fixtures/core/uncategorised/466/expected.json deleted file mode 100644 index 4888c9e77c..0000000000 --- a/test/fixtures/core/uncategorised/466/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "expression": { - "type": "CallExpression", - "start": 1, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 29, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 36, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "name": "i" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/467/expected.json b/test/fixtures/core/uncategorised/467/expected.json deleted file mode 100644 index b5c7e063e3..0000000000 --- a/test/fixtures/core/uncategorised/467/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "expression": { - "type": "CallExpression", - "start": 1, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "WithStatement", - "start": 29, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "i" - }, - "body": { - "type": "EmptyStatement", - "start": 37, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 38 - } - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/468/expected.json b/test/fixtures/core/uncategorised/468/expected.json deleted file mode 100644 index 7616b5c4d0..0000000000 --- a/test/fixtures/core/uncategorised/468/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 32, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 36, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "eval" - }, - "init": { - "type": "NumericLiteral", - "start": 43, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/469/expected.json b/test/fixtures/core/uncategorised/469/expected.json deleted file mode 100644 index 7c7fe68ad2..0000000000 --- a/test/fixtures/core/uncategorised/469/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 32, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "arguments" - }, - "init": { - "type": "NumericLiteral", - "start": 48, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/470/expected.json b/test/fixtures/core/uncategorised/470/expected.json deleted file mode 100644 index 25732f3422..0000000000 --- a/test/fixtures/core/uncategorised/470/expected.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 32, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "block": { - "type": "BlockStatement", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 40, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "param": { - "type": "Identifier", - "start": 47, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "eval" - }, - "body": { - "type": "BlockStatement", - "start": 53, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/471/expected.json b/test/fixtures/core/uncategorised/471/expected.json deleted file mode 100644 index 14e6af099e..0000000000 --- a/test/fixtures/core/uncategorised/471/expected.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "block": { - "type": "BlockStatement", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 40, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "param": { - "type": "Identifier", - "start": 47, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "name": "arguments" - }, - "body": { - "type": "BlockStatement", - "start": 58, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 58 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "body": [], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/472/expected.json b/test/fixtures/core/uncategorised/472/expected.json deleted file mode 100644 index 5096320c21..0000000000 --- a/test/fixtures/core/uncategorised/472/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - }, - "right": { - "type": "NumericLiteral", - "start": 39, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/473/expected.json b/test/fixtures/core/uncategorised/473/expected.json deleted file mode 100644 index 6b52d892dd..0000000000 --- a/test/fixtures/core/uncategorised/473/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 32, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - }, - "right": { - "type": "NumericLiteral", - "start": 44, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/474/expected.json b/test/fixtures/core/uncategorised/474/expected.json deleted file mode 100644 index 4a54d8d316..0000000000 --- a/test/fixtures/core/uncategorised/474/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "++", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/475/expected.json b/test/fixtures/core/uncategorised/475/expected.json deleted file mode 100644 index 0be9956ee7..0000000000 --- a/test/fixtures/core/uncategorised/475/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "--", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/476/expected.json b/test/fixtures/core/uncategorised/476/expected.json deleted file mode 100644 index 3d5a3384b2..0000000000 --- a/test/fixtures/core/uncategorised/476/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "++", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/477/expected.json b/test/fixtures/core/uncategorised/477/expected.json deleted file mode 100644 index a129e39f7e..0000000000 --- a/test/fixtures/core/uncategorised/477/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "--", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/478/expected.json b/test/fixtures/core/uncategorised/478/expected.json deleted file mode 100644 index 7c98807107..0000000000 --- a/test/fixtures/core/uncategorised/478/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/479/expected.json b/test/fixtures/core/uncategorised/479/expected.json deleted file mode 100644 index 7db69736d2..0000000000 --- a/test/fixtures/core/uncategorised/479/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "--", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/480/expected.json b/test/fixtures/core/uncategorised/480/expected.json deleted file mode 100644 index 029e95d4fd..0000000000 --- a/test/fixtures/core/uncategorised/480/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/481/expected.json b/test/fixtures/core/uncategorised/481/expected.json deleted file mode 100644 index fc9fb9e66f..0000000000 --- a/test/fixtures/core/uncategorised/481/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "--", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/482/expected.json b/test/fixtures/core/uncategorised/482/expected.json deleted file mode 100644 index 416268fca0..0000000000 --- a/test/fixtures/core/uncategorised/482/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 32, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 41, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 48, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/483/expected.json b/test/fixtures/core/uncategorised/483/expected.json deleted file mode 100644 index aeae082c8b..0000000000 --- a/test/fixtures/core/uncategorised/483/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 32, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 41, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 53, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/484/expected.json b/test/fixtures/core/uncategorised/484/expected.json deleted file mode 100644 index c110e76a57..0000000000 --- a/test/fixtures/core/uncategorised/484/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 16, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "expression": { - "type": "Literal", - "start": 17, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/485/expected.json b/test/fixtures/core/uncategorised/485/expected.json deleted file mode 100644 index 817f907aee..0000000000 --- a/test/fixtures/core/uncategorised/485/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/486/expected.json b/test/fixtures/core/uncategorised/486/expected.json deleted file mode 100644 index ae9e78153d..0000000000 --- a/test/fixtures/core/uncategorised/486/expected.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "expression": { - "type": "CallExpression", - "start": 33, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 33, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 49, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "body": [], - "directives": [] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/487/expected.json b/test/fixtures/core/uncategorised/487/expected.json deleted file mode 100644 index dc709c3172..0000000000 --- a/test/fixtures/core/uncategorised/487/expected.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 33, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/488/expected.json b/test/fixtures/core/uncategorised/488/expected.json deleted file mode 100644 index 1a995ca123..0000000000 --- a/test/fixtures/core/uncategorised/488/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "expression": { - "type": "Literal", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/489/expected.json b/test/fixtures/core/uncategorised/489/expected.json deleted file mode 100644 index 34984de2e0..0000000000 --- a/test/fixtures/core/uncategorised/489/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 22, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "Literal", - "start": 23, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/490/expected.json b/test/fixtures/core/uncategorised/490/expected.json deleted file mode 100644 index f6abe3ed03..0000000000 --- a/test/fixtures/core/uncategorised/490/expected.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "s" - }, - "value": { - "type": "FunctionExpression", - "start": 38, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 47, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/491/expected.json b/test/fixtures/core/uncategorised/491/expected.json deleted file mode 100644 index d0765fadb6..0000000000 --- a/test/fixtures/core/uncategorised/491/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "name": "package" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 20, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "Literal", - "start": 21, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/492/expected.json b/test/fixtures/core/uncategorised/492/expected.json deleted file mode 100644 index 9abf715af6..0000000000 --- a/test/fixtures/core/uncategorised/492/expected.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "i" - }, - "value": { - "type": "NumericLiteral", - "start": 38, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 42, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 46, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "s" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "start": 47, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/493/expected.json b/test/fixtures/core/uncategorised/493/expected.json deleted file mode 100644 index bebdcad342..0000000000 --- a/test/fixtures/core/uncategorised/493/expected.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "s" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "start": 40, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 41, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 47, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/494/expected.json b/test/fixtures/core/uncategorised/494/expected.json deleted file mode 100644 index d098c6d058..0000000000 --- a/test/fixtures/core/uncategorised/494/expected.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "s" - }, - "value": { - "type": "FunctionExpression", - "start": 38, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "s" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 49, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 55, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 55 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [], - "directives": [] - } - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/495/expected.json b/test/fixtures/core/uncategorised/495/expected.json deleted file mode 100644 index 6aa54306ed..0000000000 --- a/test/fixtures/core/uncategorised/495/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/496/expected.json b/test/fixtures/core/uncategorised/496/expected.json deleted file mode 100644 index 5fbf9ec4b8..0000000000 --- a/test/fixtures/core/uncategorised/496/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "BlockStatement", - "start": 26, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "expression": { - "type": "Literal", - "start": 27, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/497/expected.json b/test/fixtures/core/uncategorised/497/expected.json deleted file mode 100644 index 8425a41fb7..0000000000 --- a/test/fixtures/core/uncategorised/497/expected.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/498/expected.json b/test/fixtures/core/uncategorised/498/expected.json deleted file mode 100644 index bab5d19160..0000000000 --- a/test/fixtures/core/uncategorised/498/expected.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "BlockStatement", - "start": 59, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 59 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/499/expected.json b/test/fixtures/core/uncategorised/499/expected.json deleted file mode 100644 index 53489fbf1c..0000000000 --- a/test/fixtures/core/uncategorised/499/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - }, - { - "type": "Directive", - "start": 33, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "raw": "\"\\1\"", - "value": "\\1" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/500/expected.json b/test/fixtures/core/uncategorised/500/expected.json deleted file mode 100644 index d23924aa07..0000000000 --- a/test/fixtures/core/uncategorised/500/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "expression": { - "type": "NumericLiteral", - "start": 33, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "value": 17, - "rawValue": 17, - "raw": "021" - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/501/expected.json b/test/fixtures/core/uncategorised/501/expected.json deleted file mode 100644 index 0f7be5add6..0000000000 --- a/test/fixtures/core/uncategorised/501/expected.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 34, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "properties": [ - { - "type": "Property", - "start": 36, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 36, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "value": "\u0001", - "rawValue": "\u0001", - "raw": "\"\\1\"" - }, - "value": { - "type": "NumericLiteral", - "start": 42, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/502/expected.json b/test/fixtures/core/uncategorised/502/expected.json deleted file mode 100644 index 8bd74936f0..0000000000 --- a/test/fixtures/core/uncategorised/502/expected.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 34, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "properties": [ - { - "type": "Property", - "start": 36, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "NumericLiteral", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "value": 17, - "rawValue": 17, - "raw": "021" - }, - "value": { - "type": "NumericLiteral", - "start": 41, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/503/expected.json b/test/fixtures/core/uncategorised/503/expected.json deleted file mode 100644 index 9f10388176..0000000000 --- a/test/fixtures/core/uncategorised/503/expected.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 74, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 74 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 50, - "end": 74, - "loc": { - "start": { - "line": 1, - "column": 50 - }, - "end": { - "line": 1, - "column": 74 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 52, - "end": 72, - "loc": { - "start": { - "line": 1, - "column": 52 - }, - "end": { - "line": 1, - "column": 72 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 52, - "end": 71, - "loc": { - "start": { - "line": 1, - "column": 52 - }, - "end": { - "line": 1, - "column": 71 - } - }, - "raw": "\"octal directive\\1\"", - "value": "octal directive\\1" - } - } - ] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/504/expected.json b/test/fixtures/core/uncategorised/504/expected.json deleted file mode 100644 index 9e81efccd6..0000000000 --- a/test/fixtures/core/uncategorised/504/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "implements" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/505/expected.json b/test/fixtures/core/uncategorised/505/expected.json deleted file mode 100644 index 09c95282b4..0000000000 --- a/test/fixtures/core/uncategorised/505/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "interface" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/506/expected.json b/test/fixtures/core/uncategorised/506/expected.json deleted file mode 100644 index b5b1bf5fba..0000000000 --- a/test/fixtures/core/uncategorised/506/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "package" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/507/expected.json b/test/fixtures/core/uncategorised/507/expected.json deleted file mode 100644 index bb397becf0..0000000000 --- a/test/fixtures/core/uncategorised/507/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "private" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/508/expected.json b/test/fixtures/core/uncategorised/508/expected.json deleted file mode 100644 index 14ef8d4896..0000000000 --- a/test/fixtures/core/uncategorised/508/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "protected" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/509/expected.json b/test/fixtures/core/uncategorised/509/expected.json deleted file mode 100644 index e6e08fbf57..0000000000 --- a/test/fixtures/core/uncategorised/509/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "public" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/510/expected.json b/test/fixtures/core/uncategorised/510/expected.json deleted file mode 100644 index a8f07d2a1b..0000000000 --- a/test/fixtures/core/uncategorised/510/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "static" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/511/expected.json b/test/fixtures/core/uncategorised/511/expected.json deleted file mode 100644 index 9454908513..0000000000 --- a/test/fixtures/core/uncategorised/511/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "name": "static" - } - ], - "body": { - "type": "BlockStatement", - "start": 23, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "Literal", - "start": 25, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/512/expected.json b/test/fixtures/core/uncategorised/512/expected.json deleted file mode 100644 index 42dbd8e915..0000000000 --- a/test/fixtures/core/uncategorised/512/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "static" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "expression": { - "type": "Literal", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/513/expected.json b/test/fixtures/core/uncategorised/513/expected.json deleted file mode 100644 index e019755823..0000000000 --- a/test/fixtures/core/uncategorised/513/expected.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "static" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 32, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/514/expected.json b/test/fixtures/core/uncategorised/514/expected.json deleted file mode 100644 index 51085f798f..0000000000 --- a/test/fixtures/core/uncategorised/514/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/515/expected.json b/test/fixtures/core/uncategorised/515/expected.json deleted file mode 100644 index 14824eac9f..0000000000 --- a/test/fixtures/core/uncategorised/515/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/516/expected.json b/test/fixtures/core/uncategorised/516/expected.json deleted file mode 100644 index b18233c76a..0000000000 --- a/test/fixtures/core/uncategorised/516/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "package" - } - ], - "body": { - "type": "BlockStatement", - "start": 20, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/517/expected.json b/test/fixtures/core/uncategorised/517/expected.json deleted file mode 100644 index 97c6620ab1..0000000000 --- a/test/fixtures/core/uncategorised/517/expected.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 29, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 38, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "name": "b" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 43, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 46, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [], - "directives": [] - } - }, - { - "type": "EmptyStatement", - "start": 49, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 50 - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/518/expected.json b/test/fixtures/core/uncategorised/518/expected.json deleted file mode 100644 index 6b5bcf5c66..0000000000 --- a/test/fixtures/core/uncategorised/518/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - }, - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/519/expected.json b/test/fixtures/core/uncategorised/519/expected.json deleted file mode 100644 index 636e4bc049..0000000000 --- a/test/fixtures/core/uncategorised/519/expected.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 30, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "b" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 41, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 44, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 47, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [], - "directives": [] - }, - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/520/expected.json b/test/fixtures/core/uncategorised/520/expected.json deleted file mode 100644 index a4e3e8cbd5..0000000000 --- a/test/fixtures/core/uncategorised/520/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "expression": { - "type": "Literal", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - }, - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/521/expected.json b/test/fixtures/core/uncategorised/521/expected.json deleted file mode 100644 index 63264f0559..0000000000 --- a/test/fixtures/core/uncategorised/521/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "package" - } - ], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "Literal", - "start": 23, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - }, - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/522/expected.json b/test/fixtures/core/uncategorised/522/expected.json deleted file mode 100644 index f4c5357419..0000000000 --- a/test/fixtures/core/uncategorised/522/expected.json +++ /dev/null @@ -1,270 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 69, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 69 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 69, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 69 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 13, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 22, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "name": "foo" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 27, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 28, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 28, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - }, - { - "type": "FunctionDeclaration", - "start": 42, - "end": 69, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 69 - } - }, - "id": { - "type": "Identifier", - "start": 51, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 51 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "name": "bar" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 56, - "end": 69, - "loc": { - "start": { - "line": 1, - "column": 56 - }, - "end": { - "line": 1, - "column": 69 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 57, - "end": 68, - "loc": { - "start": { - "line": 1, - "column": 57 - }, - "end": { - "line": 1, - "column": 68 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 61, - "end": 68, - "loc": { - "start": { - "line": 1, - "column": 61 - }, - "end": { - "line": 1, - "column": 68 - } - }, - "id": { - "type": "Identifier", - "start": 61, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 61 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "name": "v" - }, - "init": { - "type": "NumericLiteral", - "start": 65, - "end": 68, - "loc": { - "start": { - "line": 1, - "column": 65 - }, - "end": { - "line": 1, - "column": 68 - } - }, - "value": 13, - "rawValue": 13, - "raw": "015" - } - } - ], - "kind": "var" - } - ], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/core/uncategorised/536/expected.json b/test/fixtures/core/uncategorised/536/expected.json deleted file mode 100644 index 050ac2d8b2..0000000000 --- a/test/fixtures/core/uncategorised/536/expected.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "a" - }, - "init": null - } - ], - "kind": "var" - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/167/expected.json b/test/fixtures/es2015/uncategorised/167/expected.json deleted file mode 100644 index b0298f2072..0000000000 --- a/test/fixtures/es2015/uncategorised/167/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "RestElement", - "start": 11, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 14, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 19, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "b" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 23, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "body": [] - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/168/expected.json b/test/fixtures/es2015/uncategorised/168/expected.json deleted file mode 100644 index b07fc54644..0000000000 --- a/test/fixtures/es2015/uncategorised/168/expected.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ObjectPattern", - "start": 11, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "properties": [ - { - "type": "Property", - "start": 13, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 13, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "a" - }, - "value": { - "type": "ObjectPattern", - "start": 16, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "properties": [ - { - "type": "Property", - "start": 18, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 18, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "w" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 18, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "w" - } - }, - { - "type": "Property", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "x" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "x" - } - } - ] - }, - "kind": "init" - }, - { - "type": "Property", - "start": 26, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 26, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "name": "b" - }, - "value": { - "type": "ArrayPattern", - "start": 29, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 30, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 33, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "name": "z" - } - ] - }, - "kind": "init" - } - ] - }, - { - "type": "RestElement", - "start": 39, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 42, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 43, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 46, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "b" - }, - { - "type": "Identifier", - "start": 49, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "name": "c" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 52, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 52 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "body": [] - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/171/expected.json b/test/fixtures/es2015/uncategorised/171/expected.json deleted file mode 100644 index 834acd8bfe..0000000000 --- a/test/fixtures/es2015/uncategorised/171/expected.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "RestElement", - "start": 12, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 15, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 17, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 20, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "name": "b" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 24, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "body": [] - }, - "parenthesizedExpression": true - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/172/expected.json b/test/fixtures/es2015/uncategorised/172/expected.json deleted file mode 100644 index 82b82246ff..0000000000 --- a/test/fixtures/es2015/uncategorised/172/expected.json +++ /dev/null @@ -1,436 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ObjectPattern", - "start": 12, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "properties": [ - { - "type": "Property", - "start": 14, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "a" - }, - "value": { - "type": "ObjectPattern", - "start": 17, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "properties": [ - { - "type": "Property", - "start": 19, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 19, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "w" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 19, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "w" - } - }, - { - "type": "Property", - "start": 22, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "x" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 22, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "x" - } - } - ] - }, - "kind": "init" - }, - { - "type": "Property", - "start": 27, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "name": "b" - }, - "value": { - "type": "ArrayPattern", - "start": 30, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 31, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 31 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 34, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "name": "z" - } - ] - }, - "kind": "init" - } - ] - }, - { - "type": "RestElement", - "start": 40, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 43, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 44, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "b" - }, - { - "type": "Identifier", - "start": 50, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 50 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "c" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 53, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "body": [] - }, - "parenthesizedExpression": true - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/174/expected.json b/test/fixtures/es2015/uncategorised/174/expected.json deleted file mode 100644 index cf763cceac..0000000000 --- a/test/fixtures/es2015/uncategorised/174/expected.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 4, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 4 - } - }, - "name": "x" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "start": 4, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "RestElement", - "start": 5, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 8, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 13, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "b" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "body": [] - } - } - } - ], - "parenthesizedExpression": true - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/175/expected.json b/test/fixtures/es2015/uncategorised/175/expected.json deleted file mode 100644 index 27674eb5f7..0000000000 --- a/test/fixtures/es2015/uncategorised/175/expected.json +++ /dev/null @@ -1,473 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 4, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 4 - } - }, - "name": "x" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "start": 4, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "ObjectPattern", - "start": 5, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "properties": [ - { - "type": "Property", - "start": 7, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "name": "a" - }, - "value": { - "type": "ObjectPattern", - "start": 10, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "properties": [ - { - "type": "Property", - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "w" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "w" - } - }, - { - "type": "Property", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "x" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "x" - } - } - ] - }, - "kind": "init" - }, - { - "type": "Property", - "start": 20, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "name": "b" - }, - "value": { - "type": "ArrayPattern", - "start": 23, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 24, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "name": "y" - }, - { - "type": "Identifier", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "name": "z" - } - ] - }, - "kind": "init" - } - ] - }, - { - "type": "RestElement", - "start": 33, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 37, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "b" - }, - { - "type": "Identifier", - "start": 43, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "c" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 46, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "body": [] - } - } - } - ], - "parenthesizedExpression": true - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/180/expected.json b/test/fixtures/es2015/uncategorised/180/expected.json deleted file mode 100644 index 56845a6f74..0000000000 --- a/test/fixtures/es2015/uncategorised/180/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "RestElement", - "start": 1, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 4, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 5, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 6 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 8, - "end": 9, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 9 - } - }, - "name": "b" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "body": [] - } - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/181/expected.json b/test/fixtures/es2015/uncategorised/181/expected.json deleted file mode 100644 index ef57adb398..0000000000 --- a/test/fixtures/es2015/uncategorised/181/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 1, - "end": 2, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 2 - } - }, - "name": "a" - }, - { - "type": "RestElement", - "start": 4, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "argument": { - "type": "ArrayPattern", - "start": 7, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 8, - "end": 9, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 9 - } - }, - "name": "b" - } - ] - } - } - ], - "body": { - "type": "BlockStatement", - "start": 15, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "body": [] - } - } - } - ] - }, - "comments": [] -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/227/expected.json b/test/fixtures/es2015/uncategorised/227/expected.json deleted file mode 100644 index a1b9463810..0000000000 --- a/test/fixtures/es2015/uncategorised/227/expected.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "i" - }, - "value": { - "type": "NumericLiteral", - "start": 38, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 42, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 42, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "s" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "start": 43, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 44, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 50, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 50 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/228/expected.json b/test/fixtures/es2015/uncategorised/228/expected.json deleted file mode 100644 index ce7968931a..0000000000 --- a/test/fixtures/es2015/uncategorised/228/expected.json +++ /dev/null @@ -1,258 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 30, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "properties": [ - { - "type": "Property", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 32, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "name": "b" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "start": 33, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 34, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 37, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 40, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/242/expected.json b/test/fixtures/es2015/uncategorised/242/expected.json deleted file mode 100644 index 4d59caecab..0000000000 --- a/test/fixtures/es2015/uncategorised/242/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "AssignmentPattern", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - }, - "right": { - "type": "NumericLiteral", - "start": 22, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "body": { - "type": "NumericLiteral", - "start": 29, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/243/expected.json b/test/fixtures/es2015/uncategorised/243/expected.json deleted file mode 100644 index 19770d930b..0000000000 --- a/test/fixtures/es2015/uncategorised/243/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "eval" - } - ], - "body": { - "type": "NumericLiteral", - "start": 22, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/244/expected.json b/test/fixtures/es2015/uncategorised/244/expected.json deleted file mode 100644 index 419236f394..0000000000 --- a/test/fixtures/es2015/uncategorised/244/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "NumericLiteral", - "start": 27, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/245/expected.json b/test/fixtures/es2015/uncategorised/245/expected.json deleted file mode 100644 index 799a255d29..0000000000 --- a/test/fixtures/es2015/uncategorised/245/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - }, - { - "type": "Identifier", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 27, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/246/expected.json b/test/fixtures/es2015/uncategorised/246/expected.json deleted file mode 100644 index 99a2be70b2..0000000000 --- a/test/fixtures/es2015/uncategorised/246/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "arguments" - }, - { - "type": "Identifier", - "start": 26, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 32, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/247/expected.json b/test/fixtures/es2015/uncategorised/247/expected.json deleted file mode 100644 index 96a6db7cc4..0000000000 --- a/test/fixtures/es2015/uncategorised/247/expected.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - }, - { - "type": "AssignmentPattern", - "start": 21, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "left": { - "type": "Identifier", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "a" - }, - "right": { - "type": "NumericLiteral", - "start": 25, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "body": { - "type": "NumericLiteral", - "start": 32, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/249/expected.json b/test/fixtures/es2015/uncategorised/249/expected.json deleted file mode 100644 index 46e767a89a..0000000000 --- a/test/fixtures/es2015/uncategorised/249/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 21, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "value": 0, - "rawValue": 0, - "raw": "00" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/280/expected.json b/test/fixtures/es2015/uncategorised/280/expected.json deleted file mode 100644 index a001a84bd3..0000000000 --- a/test/fixtures/es2015/uncategorised/280/expected.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 25, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "name": "a" - }, - { - "type": "ObjectPattern", - "start": 28, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "properties": [ - { - "type": "Property", - "start": 30, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 30, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "a" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 30, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "a" - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 34, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/281/expected.json b/test/fixtures/es2015/uncategorised/281/expected.json deleted file mode 100644 index 8976155772..0000000000 --- a/test/fixtures/es2015/uncategorised/281/expected.json +++ /dev/null @@ -1,376 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "x" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ObjectPattern", - "start": 25, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "properties": [ - { - "type": "Property", - "start": 27, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "name": "b" - }, - "value": { - "type": "ObjectPattern", - "start": 30, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "properties": [ - { - "type": "Property", - "start": 32, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 32, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "name": "a" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 32, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "name": "a" - } - } - ] - }, - "kind": "init" - } - ] - }, - { - "type": "ArrayPattern", - "start": 39, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "elements": [ - { - "type": "ObjectPattern", - "start": 40, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "properties": [ - { - "type": "Property", - "start": 42, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 42, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "b" - }, - "value": { - "type": "ObjectPattern", - "start": 45, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 45 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "properties": [ - { - "type": "Property", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "a" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "a" - } - } - ] - }, - "kind": "init" - } - ] - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/289/expected.json b/test/fixtures/es2015/uncategorised/289/expected.json deleted file mode 100644 index 6db69cefb7..0000000000 --- a/test/fixtures/es2015/uncategorised/289/expected.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "method": true, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 4, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 4 - } - }, - "name": "t" - }, - "kind": "init", - "value": { - "type": "FunctionExpression", - "start": 4, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 5, - "end": 9, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 9 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 11, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 13, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "expression": { - "type": "Literal", - "start": 13, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/296/expected.json b/test/fixtures/es2015/uncategorised/296/expected.json deleted file mode 100644 index 4846928444..0000000000 --- a/test/fixtures/es2015/uncategorised/296/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - } - ], - "body": { - "type": "NumericLiteral", - "start": 24, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/297/expected.json b/test/fixtures/es2015/uncategorised/297/expected.json deleted file mode 100644 index 338190dde1..0000000000 --- a/test/fixtures/es2015/uncategorised/297/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 1, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 5 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 10, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "expression": { - "type": "Literal", - "start": 12, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - }, - { - "type": "ExpressionStatement", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "expression": { - "type": "Literal", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - ] - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/332/expected.json b/test/fixtures/es2015/uncategorised/332/expected.json deleted file mode 100644 index 841701d361..0000000000 --- a/test/fixtures/es2015/uncategorised/332/expected.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "operator": "=", - "left": { - "type": "ArrayPattern", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "elements": [ - { - "type": "RestElement", - "start": 15, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "argument": { - "type": "Identifier", - "start": 18, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "eval" - } - } - ] - }, - "right": { - "type": "Identifier", - "start": 26, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "arr" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/333/expected.json b/test/fixtures/es2015/uncategorised/333/expected.json deleted file mode 100644 index beb769433c..0000000000 --- a/test/fixtures/es2015/uncategorised/333/expected.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 15, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "=", - "left": { - "type": "ObjectPattern", - "start": 15, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "properties": [ - { - "type": "Property", - "start": 16, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 16, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "eval" - }, - "kind": "init", - "value": { - "type": "AssignmentPattern", - "start": 16, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "left": { - "type": "Identifier", - "start": 16, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "eval" - }, - "right": { - "type": "Identifier", - "start": 23, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "defValue" - } - } - } - ] - }, - "right": { - "type": "Identifier", - "start": 35, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "obj" - }, - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/334/expected.json b/test/fixtures/es2015/uncategorised/334/expected.json deleted file mode 100644 index 7b7e0ac66d..0000000000 --- a/test/fixtures/es2015/uncategorised/334/expected.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "sourceType": "module", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 0, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "operator": "=", - "left": { - "type": "ArrayPattern", - "start": 0, - "end": 9, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 9 - } - }, - "elements": [ - { - "type": "RestElement", - "start": 1, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "argument": { - "type": "Identifier", - "start": 4, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "name": "eval" - } - } - ] - }, - "right": { - "type": "Identifier", - "start": 12, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "arr" - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/348/expected.json b/test/fixtures/es2015/uncategorised/348/expected.json deleted file mode 100644 index 13c61354ae..0000000000 --- a/test/fixtures/es2015/uncategorised/348/expected.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NumericLiteral", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "extra": { - "rawValue": 1, - "raw": "1" - }, - "value": 1 - } - }, - { - "type": "ObjectProperty", - "start": 17, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 17, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NumericLiteral", - "start": 28, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "extra": { - "rawValue": 2, - "raw": "2" - }, - "value": 2 - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/349/expected.json b/test/fixtures/es2015/uncategorised/349/expected.json deleted file mode 100644 index dab5700b94..0000000000 --- a/test/fixtures/es2015/uncategorised/349/expected.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "'__proto__'" - }, - "value": { - "type": "NumericLiteral", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "value": 1, - "rawValue": 1, - "raw": "1" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 19, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NumericLiteral", - "start": 30, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": 2, - "rawValue": 2, - "raw": "2" - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/es2015/uncategorised/353/expected.json b/test/fixtures/es2015/uncategorised/353/expected.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/test/fixtures/es2015/uncategorised/353/expected.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/test/fixtures/esprima/declaration-function/dupe-param/expected.json b/test/fixtures/esprima/declaration-function/dupe-param/expected.json deleted file mode 100644 index 80306b8cba..0000000000 --- a/test/fixtures/esprima/declaration-function/dupe-param/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "x" - }, - { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "x" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/expected.json b/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/expected.json deleted file mode 100644 index 73fc92e40b..0000000000 --- a/test/fixtures/esprima/es2015-array-binding-pattern/invalid-dup-param/expected.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "ArrayPattern", - "start": 1, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 2, - "end": 3, - "loc": { - "start": { - "line": 1, - "column": 2 - }, - "end": { - "line": 1, - "column": 3 - } - }, - "name": "a" - }, - { - "type": "ArrayPattern", - "start": 4, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 5, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 5 - }, - "end": { - "line": 1, - "column": 6 - } - }, - "name": "b" - } - ] - }, - { - "type": "RestElement", - "start": 8, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "argument": { - "type": "Identifier", - "start": 11, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "b" - } - } - ] - } - ], - "body": { - "type": "Literal", - "start": 16, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "value": 0, - "rawValue": 0, - "raw": "0" - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/expected.json b/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/expected.json deleted file mode 100644 index 65f0476c0e..0000000000 --- a/test/fixtures/esprima/es2015-array-pattern/dupe-param-1/expected.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 2, - "column": 9 - }, - "end": { - "line": 2, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ArrayPattern", - "start": 25, - "end": 30, - "loc": { - "start": { - "line": 2, - "column": 11 - }, - "end": { - "line": 2, - "column": 16 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 26, - "end": 27, - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 13 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 28, - "end": 29, - "loc": { - "start": { - "line": 2, - "column": 14 - }, - "end": { - "line": 2, - "column": 15 - } - }, - "name": "a" - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 31, - "end": 34, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/expected.json b/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/expected.json deleted file mode 100644 index 3497e91ca6..0000000000 --- a/test/fixtures/esprima/es2015-array-pattern/dupe-param-2/expected.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 37, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 2, - "column": 9 - }, - "end": { - "line": 2, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ArrayPattern", - "start": 25, - "end": 33, - "loc": { - "start": { - "line": 2, - "column": 11 - }, - "end": { - "line": 2, - "column": 19 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 26, - "end": 27, - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 13 - } - }, - "name": "a" - }, - { - "type": "RestElement", - "start": 28, - "end": 32, - "loc": { - "start": { - "line": 2, - "column": 14 - }, - "end": { - "line": 2, - "column": 18 - } - }, - "argument": { - "type": "Identifier", - "start": 31, - "end": 32, - "loc": { - "start": { - "line": 2, - "column": 17 - }, - "end": { - "line": 2, - "column": 18 - } - }, - "name": "a" - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 34, - "end": 37, - "loc": { - "start": { - "line": 2, - "column": 20 - }, - "end": { - "line": 2, - "column": 23 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/expected.json b/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/expected.json deleted file mode 100644 index 89963bdc09..0000000000 --- a/test/fixtures/esprima/es2015-array-pattern/dupe-param-3/expected.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 2, - "column": 9 - }, - "end": { - "line": 2, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "ArrayPattern", - "start": 25, - "end": 35, - "loc": { - "start": { - "line": 2, - "column": 11 - }, - "end": { - "line": 2, - "column": 21 - } - }, - "elements": [ - { - "type": "ObjectPattern", - "start": 26, - "end": 29, - "loc": { - "start": { - "line": 2, - "column": 12 - }, - "end": { - "line": 2, - "column": 15 - } - }, - "properties": [ - { - "type": "Property", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 14 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 14 - } - }, - "name": "a" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 27, - "end": 28, - "loc": { - "start": { - "line": 2, - "column": 13 - }, - "end": { - "line": 2, - "column": 14 - } - }, - "name": "a" - } - } - ] - }, - { - "type": "RestElement", - "start": 30, - "end": 34, - "loc": { - "start": { - "line": 2, - "column": 16 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "argument": { - "type": "Identifier", - "start": 33, - "end": 34, - "loc": { - "start": { - "line": 2, - "column": 19 - }, - "end": { - "line": 2, - "column": 20 - } - }, - "name": "a" - } - } - ] - } - ], - "body": { - "type": "BlockStatement", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 2, - "column": 22 - }, - "end": { - "line": 2, - "column": 25 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-array-pattern/patterned-catch-dupe/expected.json b/test/fixtures/esprima/es2015-array-pattern/patterned-catch-dupe/expected.json deleted file mode 100644 index 5752809413..0000000000 --- a/test/fixtures/esprima/es2015-array-pattern/patterned-catch-dupe/expected.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "sourceType": "script", - "body": [ - { - "type": "TryStatement", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "block": { - "type": "BlockStatement", - "start": 4, - "end": 6, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 6 - } - }, - "body": [] - }, - "handler": { - "type": "CatchClause", - "start": 7, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "param": { - "type": "ArrayPattern", - "start": 14, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "elements": [ - { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 17, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "a" - } - ] - }, - "body": { - "type": "BlockStatement", - "start": 21, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "body": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/expected.json b/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/expected.json deleted file mode 100644 index 28f8776321..0000000000 --- a/test/fixtures/esprima/es2015-arrow-function/invalid-param-strict-mode/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 0, - "end": 4, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 4 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 8, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 9, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "expression": { - "type": "Literal", - "start": 9, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/expected.json deleted file mode 100644 index 6edbb3623f..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-getter-literal-identifier/expected.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "__proto" - }, - "kind": "get", - "value": { - "type": "FunctionExpression", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 16, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "body": [] - } - } - }, - { - "type": "Property", - "start": 20, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "NullLiteral", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - } - }, - "kind": "init" - }, - { - "type": "Property", - "start": 39, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 39, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 50, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 50 - }, - "end": { - "line": 1, - "column": 54 - } - } - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/expected.json deleted file mode 100644 index 9b1a68cb99..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-literal/expected.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - } - }, - "kind": "init" - }, - { - "type": "Property", - "start": 20, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 20, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "NullLiteral", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - } - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-shorthand/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-shorthand/expected.json deleted file mode 100644 index 957f3941af..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifier-shorthand/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "value": { - "type": "Literal", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "value": null, - "rawValue": null, - "raw": "null" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 20, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 20, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 20, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "__proto__" - } - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/expected.json deleted file mode 100644 index 853ec2ca42..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-identifiers/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 3, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - } - } - }, - { - "type": "ObjectProperty", - "start": 20, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 31, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 31 - }, - "end": { - "line": 1, - "column": 35 - } - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/expected.json deleted file mode 100644 index 4b2175d058..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-identifier/expected.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "NullLiteral", - "start": 16, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 20 - } - } - }, - "kind": "init" - }, - { - "type": "Property", - "start": 22, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 22, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - } - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-shorthand/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-shorthand/expected.json deleted file mode 100644 index 22e6537ffa..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literal-shorthand/expected.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Literal", - "start": 3, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "Literal", - "start": 16, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "value": null, - "rawValue": null, - "raw": "null" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 22, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 22, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 22, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "name": "__proto__" - } - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/expected.json deleted file mode 100644 index 2a84426d88..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-literals/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 3, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "NullLiteral", - "start": 16, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 20 - } - } - }, - "kind": "init" - }, - { - "type": "Property", - "start": 22, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 22, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "'__proto__'" - }, - "value": { - "type": "NullLiteral", - "start": 35, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 39 - } - } - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/expected.json deleted file mode 100644 index 7120e7bc0a..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-setter-literal-identifier/expected.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 7, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 7 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "__proto__" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "start": 16, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 17, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "x" - } - ], - "body": { - "type": "BlockStatement", - "start": 19, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "body": [] - } - } - }, - { - "type": "Property", - "start": 23, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 23, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "NullLiteral", - "start": 36, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 40 - } - } - }, - "kind": "init" - }, - { - "type": "Property", - "start": 42, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 42, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NullLiteral", - "start": 53, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 57 - } - } - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-identifier/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-identifier/expected.json deleted file mode 100644 index 3f3242833e..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-identifier/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - } - }, - { - "type": "Property", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "__proto__" - }, - "value": { - "type": "Literal", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": null, - "rawValue": null, - "raw": "null" - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-literal/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-literal/expected.json deleted file mode 100644 index c09f7f715b..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthand-literal/expected.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - } - }, - { - "type": "Property", - "start": 14, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Literal", - "start": 14, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "value": "__proto__", - "rawValue": "__proto__", - "raw": "\"__proto__\"" - }, - "value": { - "type": "Literal", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": null, - "rawValue": null, - "raw": "null" - }, - "kind": "init" - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthands/expected.json b/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthands/expected.json deleted file mode 100644 index 3de2340596..0000000000 --- a/test/fixtures/esprima/es2015-object-initialiser/invalid-proto-shorthands/expected.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 1, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "properties": [ - { - "type": "Property", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 3, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 3 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "__proto__" - } - }, - { - "type": "Property", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "method": false, - "shorthand": true, - "computed": false, - "key": { - "type": "Identifier", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "__proto__" - }, - "kind": "init", - "value": { - "type": "Identifier", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "__proto__" - } - } - ], - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/expected.json deleted file mode 100644 index 53cf8c221f..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-generator-catch/expected.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "g" - }, - "generator": true, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 16, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "block": { - "type": "BlockStatement", - "start": 20, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "body": [] - }, - "handler": { - "type": "CatchClause", - "start": 23, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "param": { - "type": "Identifier", - "start": 30, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "name": "yield" - }, - "body": { - "type": "BlockStatement", - "start": 37, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/expected.json deleted file mode 100644 index a4876b5487..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-generator-variable-declaration/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "g" - }, - "generator": true, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 14, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 16, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 20, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "id": { - "type": "Identifier", - "start": 20, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "name": "yield" - }, - "init": null - } - ], - "kind": "var" - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/expected.json deleted file mode 100644 index e95af9ede1..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-binding-element/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 14, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "ObjectPattern", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "properties": [ - { - "type": "Property", - "start": 20, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 20, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "name": "x" - }, - "value": { - "type": "Identifier", - "start": 23, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "name": "yield" - }, - "kind": "init" - } - ] - }, - "init": { - "type": "Identifier", - "start": 33, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "foo" - } - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/expected.json deleted file mode 100644 index 6dc10fb160..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-catch-parameter/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "TryStatement", - "start": 14, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "block": { - "type": "BlockStatement", - "start": 18, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "body": [], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 21, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "param": { - "type": "Identifier", - "start": 28, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "name": "yield" - }, - "body": { - "type": "BlockStatement", - "start": 35, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/expected.json deleted file mode 100644 index 376968b605..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-formal-parameter/expected.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "f" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 25, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "name": "yield" - } - ], - "body": { - "type": "BlockStatement", - "start": 32, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/expected.json deleted file mode 100644 index 83a78a03c2..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-declaration/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "yield" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 16, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "expression": { - "type": "Literal", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/expected.json deleted file mode 100644 index a12316ae59..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-function-expression/expected.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "yield" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - }, - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/expected.json deleted file mode 100644 index 2bdc41583c..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-identifier/expected.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "expression": { - "type": "Literal", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - }, - { - "type": "FunctionDeclaration", - "start": 14, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "f" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 27, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "Identifier", - "start": 29, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "name": "yield" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/expected.json deleted file mode 100644 index 966737277b..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-lexical-declaration/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "id": { - "type": "Identifier", - "start": 18, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "yield" - }, - "init": { - "type": "NumericLiteral", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - ], - "kind": "let" - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/expected.json deleted file mode 100644 index 61833fb65c..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-rest-parameter/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "f" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "RestElement", - "start": 25, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "argument": { - "type": "Identifier", - "start": 28, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 28 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "name": "yield" - } - } - ], - "body": { - "type": "BlockStatement", - "start": 35, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/expected.json b/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/expected.json deleted file mode 100644 index d34ac72f7a..0000000000 --- a/test/fixtures/esprima/es2015-yield/invalid-yield-strict-variable-declaration/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 18, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "id": { - "type": "Identifier", - "start": 18, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "yield" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0087/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0087/expected.json deleted file mode 100644 index 4d59caecab..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0087/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "AssignmentPattern", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "left": { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - }, - "right": { - "type": "NumericLiteral", - "start": 22, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "body": { - "type": "NumericLiteral", - "start": 29, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0088/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0088/expected.json deleted file mode 100644 index 19770d930b..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0088/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 14, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "eval" - } - ], - "body": { - "type": "NumericLiteral", - "start": 22, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0089/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0089/expected.json deleted file mode 100644 index 419236f394..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0089/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "NumericLiteral", - "start": 27, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0090/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0090/expected.json deleted file mode 100644 index 799a255d29..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0090/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - }, - { - "type": "Identifier", - "start": 21, - "end": 22, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 22 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 27, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0091/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0091/expected.json deleted file mode 100644 index 99a2be70b2..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0091/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "arguments" - }, - { - "type": "Identifier", - "start": 26, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 32, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0092/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0092/expected.json deleted file mode 100644 index 89326051bc..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0092/expected.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 1, - "end": 2, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 2 - } - }, - "name": "a" - }, - { - "type": "Identifier", - "start": 4, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 5 - } - }, - "name": "a" - } - ], - "body": { - "type": "Literal", - "start": 10, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0094/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0094/expected.json deleted file mode 100644 index 46e767a89a..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0094/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "a" - } - ], - "body": { - "type": "NumericLiteral", - "start": 21, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "value": 0, - "rawValue": 0, - "raw": "00" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0100/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0100/expected.json deleted file mode 100644 index 4846928444..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0100/expected.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 14, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 14, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "id": null, - "generator": false, - "expression": true, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - } - ], - "body": { - "type": "NumericLiteral", - "start": 24, - "end": 26, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 26 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0101/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0101/expected.json deleted file mode 100644 index 338190dde1..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0101/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "expression": { - "type": "ArrowFunctionExpression", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 1, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 5 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 10, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 12, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "expression": { - "type": "Literal", - "start": 12, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - }, - { - "type": "ExpressionStatement", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "expression": { - "type": "Literal", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - } - } - ] - } - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0138/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0138/expected.json deleted file mode 100644 index b5b53bc87a..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0138/expected.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "x" - }, - "init": { - "type": "Literal", - "start": 10, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "value": 12, - "rawValue": 12, - "raw": "12" - } - }, - { - "type": "VariableDeclarator", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "id": { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "y" - }, - "init": null - } - ], - "kind": "var" - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0139/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0139/expected.json deleted file mode 100644 index 0d296d31a9..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0139/expected.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "x" - }, - "init": null - }, - { - "type": "VariableDeclarator", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "y" - }, - "init": { - "type": "Literal", - "start": 13, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "value": 12, - "rawValue": 12, - "raw": "12" - } - } - ], - "kind": "var" - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0140/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0140/expected.json deleted file mode 100644 index cc88fe2b7e..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0140/expected.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 8, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 8 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "x" - }, - "init": null - } - ], - "kind": "var" - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0183/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0183/expected.json deleted file mode 100644 index 4888c9e77c..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0183/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "expression": { - "type": "CallExpression", - "start": 1, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "UnaryExpression", - "start": 29, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "operator": "delete", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 36, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "name": "i" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0184/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0184/expected.json deleted file mode 100644 index b5c7e063e3..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0184/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "expression": { - "type": "CallExpression", - "start": 1, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "WithStatement", - "start": 29, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "object": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "i" - }, - "body": { - "type": "EmptyStatement", - "start": 37, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 38 - } - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0185/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0185/expected.json deleted file mode 100644 index 7616b5c4d0..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0185/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 32, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 36, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "eval" - }, - "init": { - "type": "NumericLiteral", - "start": 43, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0186/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0186/expected.json deleted file mode 100644 index 7c7fe68ad2..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0186/expected.json +++ /dev/null @@ -1,186 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 32, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 36, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "arguments" - }, - "init": { - "type": "NumericLiteral", - "start": 48, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0187/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0187/expected.json deleted file mode 100644 index 25732f3422..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0187/expected.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 32, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "block": { - "type": "BlockStatement", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 40, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "param": { - "type": "Identifier", - "start": 47, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "eval" - }, - "body": { - "type": "BlockStatement", - "start": 53, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0188/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0188/expected.json deleted file mode 100644 index 14e6af099e..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0188/expected.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "TryStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "block": { - "type": "BlockStatement", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [], - "directives": [] - }, - "handler": { - "type": "CatchClause", - "start": 40, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "param": { - "type": "Identifier", - "start": 47, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "name": "arguments" - }, - "body": { - "type": "BlockStatement", - "start": 58, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 58 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "body": [], - "directives": [] - } - }, - "guardedHandlers": [], - "finalizer": null - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0189/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0189/expected.json deleted file mode 100644 index 5096320c21..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0189/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - }, - "right": { - "type": "NumericLiteral", - "start": 39, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0190/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0190/expected.json deleted file mode 100644 index 6b52d892dd..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0190/expected.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 32, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - }, - "right": { - "type": "NumericLiteral", - "start": 44, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0191/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0191/expected.json deleted file mode 100644 index 4a54d8d316..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0191/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "++", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0192/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0192/expected.json deleted file mode 100644 index 0be9956ee7..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0192/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "--", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0193/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0193/expected.json deleted file mode 100644 index 3d5a3384b2..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0193/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "++", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0194/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0194/expected.json deleted file mode 100644 index a129e39f7e..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0194/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "--", - "prefix": true, - "argument": { - "type": "Identifier", - "start": 34, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0195/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0195/expected.json deleted file mode 100644 index 7c98807107..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0195/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0196/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0196/expected.json deleted file mode 100644 index 7db69736d2..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0196/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "operator": "--", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "eval" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0197/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0197/expected.json deleted file mode 100644 index 029e95d4fd..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0197/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "++", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0198/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0198/expected.json deleted file mode 100644 index fc9fb9e66f..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0198/expected.json +++ /dev/null @@ -1,167 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "expression": { - "type": "UpdateExpression", - "start": 32, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "operator": "--", - "prefix": false, - "argument": { - "type": "Identifier", - "start": 32, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "arguments" - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0199/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0199/expected.json deleted file mode 100644 index 416268fca0..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0199/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 32, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "id": { - "type": "Identifier", - "start": 41, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 48, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0200/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0200/expected.json deleted file mode 100644 index aeae082c8b..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0200/expected.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 32, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 41, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 53, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 53 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0201/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0201/expected.json deleted file mode 100644 index c110e76a57..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0201/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 16, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 17, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "expression": { - "type": "Literal", - "start": 17, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0202/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0202/expected.json deleted file mode 100644 index 817f907aee..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0202/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0203/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0203/expected.json deleted file mode 100644 index ae9e78153d..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0203/expected.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "expression": { - "type": "CallExpression", - "start": 33, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 33, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 49, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "body": [], - "directives": [] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0204/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0204/expected.json deleted file mode 100644 index dc709c3172..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0204/expected.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "expression": { - "type": "CallExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 33, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - }, - "arguments": [], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0205/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0205/expected.json deleted file mode 100644 index 1a995ca123..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0205/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "expression": { - "type": "Literal", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0206/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0206/expected.json deleted file mode 100644 index 34984de2e0..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0206/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 22, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "Literal", - "start": 23, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0207/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0207/expected.json deleted file mode 100644 index f6abe3ed03..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0207/expected.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "s" - }, - "value": { - "type": "FunctionExpression", - "start": 38, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": { - "type": "Identifier", - "start": 47, - "end": 51, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 51 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0208/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0208/expected.json deleted file mode 100644 index d0765fadb6..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0208/expected.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "CallExpression", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "callee": { - "type": "FunctionExpression", - "start": 1, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 17, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 17 - } - }, - "name": "package" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 20, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 21, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "expression": { - "type": "Literal", - "start": 21, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - }, - "parenthesizedExpression": true - }, - "arguments": [] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0209/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0209/expected.json deleted file mode 100644 index 9abf715af6..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0209/expected.json +++ /dev/null @@ -1,295 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "i" - }, - "value": { - "type": "NumericLiteral", - "start": 38, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "value": 10, - "rawValue": 10, - "raw": "10" - }, - "kind": "init" - }, - { - "type": "Property", - "start": 42, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 46, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "s" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "start": 47, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0210/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0210/expected.json deleted file mode 100644 index bebdcad342..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0210/expected.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "s" - }, - "kind": "set", - "value": { - "type": "FunctionExpression", - "start": 40, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 41, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 47, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [], - "directives": [] - } - } - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0211/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0211/expected.json deleted file mode 100644 index d098c6d058..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0211/expected.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 64, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 64 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 32, - "end": 62, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 62 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 33, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "properties": [ - { - "type": "Property", - "start": 35, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 35, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 35 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "name": "s" - }, - "value": { - "type": "FunctionExpression", - "start": 38, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 47, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "name": "s" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 49, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 55, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 55 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [], - "directives": [] - } - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 18, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 18, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0212/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0212/expected.json deleted file mode 100644 index 6aa54306ed..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0212/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0213/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0213/expected.json deleted file mode 100644 index 5fbf9ec4b8..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0213/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "BlockStatement", - "start": 26, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 27, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "expression": { - "type": "Literal", - "start": 27, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0214/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0214/expected.json deleted file mode 100644 index 8425a41fb7..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0214/expected.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 58, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 58 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 54, - "end": 56, - "loc": { - "start": { - "line": 1, - "column": 54 - }, - "end": { - "line": 1, - "column": 56 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0215/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0215/expected.json deleted file mode 100644 index bab5d19160..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0215/expected.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 63, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 63 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 48, - "end": 57, - "loc": { - "start": { - "line": 1, - "column": 48 - }, - "end": { - "line": 1, - "column": 57 - } - }, - "name": "arguments" - } - ], - "body": { - "type": "BlockStatement", - "start": 59, - "end": 61, - "loc": { - "start": { - "line": 1, - "column": 59 - }, - "end": { - "line": 1, - "column": 61 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0216/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0216/expected.json deleted file mode 100644 index 77fb11145f..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0216/expected.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 5 - } - }, - "expression": { - "type": "Literal", - "start": 0, - "end": 4, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 4 - } - }, - "value": "\u0001", - "rawValue": "\u0001", - "raw": "\"\\1\"" - } - }, - { - "type": "ExpressionStatement", - "start": 6, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "expression": { - "type": "Literal", - "start": 6, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "'use strict'" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0217/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0217/expected.json deleted file mode 100644 index 53489fbf1c..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0217/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - }, - { - "type": "Directive", - "start": 33, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "raw": "\"\\1\"", - "value": "\\1" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0218/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0218/expected.json deleted file mode 100644 index d23924aa07..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0218/expected.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "expression": { - "type": "NumericLiteral", - "start": 33, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "value": 17, - "rawValue": 17, - "raw": "021" - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0219/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0219/expected.json deleted file mode 100644 index 0f7be5add6..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0219/expected.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 34, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "properties": [ - { - "type": "Property", - "start": 36, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "StringLiteral", - "start": 36, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "value": "\u0001", - "rawValue": "\u0001", - "raw": "\"\\1\"" - }, - "value": { - "type": "NumericLiteral", - "start": 42, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0220/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0220/expected.json deleted file mode 100644 index 8bd74936f0..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0220/expected.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "expression": { - "type": "ObjectExpression", - "start": 34, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 34 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "properties": [ - { - "type": "Property", - "start": 36, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "NumericLiteral", - "start": 36, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "value": 17, - "rawValue": 17, - "raw": "021" - }, - "value": { - "type": "NumericLiteral", - "start": 41, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "value": 42, - "rawValue": 42, - "raw": "42" - }, - "kind": "init" - } - ], - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "'use strict'", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0221/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0221/expected.json deleted file mode 100644 index b8a30a0e6a..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0221/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 55, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 55 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "value": "octal directive\u0001", - "rawValue": "octal directive\u0001", - "raw": "\"octal directive\\1\"" - } - }, - { - "type": "ExpressionStatement", - "start": 40, - "end": 53, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 53 - } - }, - "expression": { - "type": "Literal", - "start": 40, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0222/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0222/expected.json deleted file mode 100644 index 61e775efcf..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0222/expected.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "value": "octal directive\u0001", - "rawValue": "octal directive\u0001", - "raw": "\"octal directive\\1\"" - } - }, - { - "type": "ExpressionStatement", - "start": 40, - "end": 60, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 60 - } - }, - "expression": { - "type": "Literal", - "start": 40, - "end": 59, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 59 - } - }, - "value": "octal directive\u0002", - "rawValue": "octal directive\u0002", - "raw": "\"octal directive\\2\"" - } - }, - { - "type": "ExpressionStatement", - "start": 61, - "end": 74, - "loc": { - "start": { - "line": 1, - "column": 61 - }, - "end": { - "line": 1, - "column": 74 - } - }, - "expression": { - "type": "Literal", - "start": 61, - "end": 73, - "loc": { - "start": { - "line": 1, - "column": 61 - }, - "end": { - "line": 1, - "column": 73 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0223/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0223/expected.json deleted file mode 100644 index 9f10388176..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0223/expected.json +++ /dev/null @@ -1,203 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 76, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 76 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 33, - "end": 74, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 74 - } - }, - "id": { - "type": "Identifier", - "start": 42, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 42 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "inner" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 50, - "end": 74, - "loc": { - "start": { - "line": 1, - "column": 50 - }, - "end": { - "line": 1, - "column": 74 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 52, - "end": 72, - "loc": { - "start": { - "line": 1, - "column": 52 - }, - "end": { - "line": 1, - "column": 72 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 52, - "end": 71, - "loc": { - "start": { - "line": 1, - "column": 52 - }, - "end": { - "line": 1, - "column": 71 - } - }, - "raw": "\"octal directive\\1\"", - "value": "octal directive\\1" - } - } - ] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0224/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0224/expected.json deleted file mode 100644 index 9e81efccd6..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0224/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 48, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 48 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "name": "implements" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0225/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0225/expected.json deleted file mode 100644 index 09c95282b4..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0225/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "interface" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0226/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0226/expected.json deleted file mode 100644 index b5b1bf5fba..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0226/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "package" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0227/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0227/expected.json deleted file mode 100644 index bb397becf0..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0227/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "private" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0228/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0228/expected.json deleted file mode 100644 index 14ef8d4896..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0228/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 47, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 47 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "name": "protected" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0229/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0229/expected.json deleted file mode 100644 index e6e08fbf57..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0229/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "public" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0230/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0230/expected.json deleted file mode 100644 index a8f07d2a1b..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0230/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 46, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 46 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "name": "static" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0231/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0231/expected.json deleted file mode 100644 index cbac229e7c..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0231/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "body": [ - { - "type": "VariableDeclaration", - "start": 33, - "end": 43, - "loc": { - "start": { - "line": 1, - "column": 33 - }, - "end": { - "line": 1, - "column": 43 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 37, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "id": { - "type": "Identifier", - "start": 37, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 37 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "name": "yield" - }, - "init": null - } - ], - "kind": "var" - } - ], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0233/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0233/expected.json deleted file mode 100644 index 9454908513..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0233/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 14, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 14 - } - }, - "name": "hello" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 15, - "end": 21, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 21 - } - }, - "name": "static" - } - ], - "body": { - "type": "BlockStatement", - "start": 23, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 25, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "expression": { - "type": "Literal", - "start": 25, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0234/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0234/expected.json deleted file mode 100644 index 42dbd8e915..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0234/expected.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "static" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "expression": { - "type": "Literal", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0235/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0235/expected.json deleted file mode 100644 index ae4c951249..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0235/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "eval" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "a" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0236/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0236/expected.json deleted file mode 100644 index 4bd552372c..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0236/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "arguments" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 19, - "end": 20, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 20 - } - }, - "name": "a" - } - ], - "body": { - "type": "BlockStatement", - "start": 22, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 24, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "expression": { - "type": "Literal", - "start": 24, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0238/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0238/expected.json deleted file mode 100644 index f5cbcbeb1d..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0238/expected.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "sourceType": "script", - "body": [ - { - "type": "VariableDeclaration", - "start": 0, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "declarations": [ - { - "type": "VariableDeclarator", - "start": 4, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "id": { - "type": "Identifier", - "start": 4, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "let" - }, - "init": null - } - ], - "kind": "var" - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0239/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0239/expected.json deleted file mode 100644 index e019755823..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0239/expected.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "name": "static" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 32, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0240/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0240/expected.json deleted file mode 100644 index 51085f798f..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0240/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 14, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0241/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0241/expected.json deleted file mode 100644 index 14824eac9f..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0241/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 17, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 19, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "expression": { - "type": "Literal", - "start": 19, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 19 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0242/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0242/expected.json deleted file mode 100644 index b18233c76a..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0242/expected.json +++ /dev/null @@ -1,134 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 11, - "end": 18, - "loc": { - "start": { - "line": 1, - "column": 11 - }, - "end": { - "line": 1, - "column": 18 - } - }, - "name": "package" - } - ], - "body": { - "type": "BlockStatement", - "start": 20, - "end": 37, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 37 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 22, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "expression": { - "type": "Literal", - "start": 22, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 22 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0243/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0243/expected.json deleted file mode 100644 index 97c6620ab1..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0243/expected.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "body": [ - { - "type": "FunctionDeclaration", - "start": 29, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "id": { - "type": "Identifier", - "start": 38, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 38 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "name": "b" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 40, - "end": 41, - "loc": { - "start": { - "line": 1, - "column": 40 - }, - "end": { - "line": 1, - "column": 41 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 43, - "end": 44, - "loc": { - "start": { - "line": 1, - "column": 43 - }, - "end": { - "line": 1, - "column": 44 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 46, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 46 - }, - "end": { - "line": 1, - "column": 49 - } - }, - "body": [], - "directives": [] - } - }, - { - "type": "EmptyStatement", - "start": 49, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 49 - }, - "end": { - "line": 1, - "column": 50 - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0244/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0244/expected.json deleted file mode 100644 index 6b5bcf5c66..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0244/expected.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 15, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [], - "directives": [ - { - "type": "Directive", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - }, - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0245/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0245/expected.json deleted file mode 100644 index 636e4bc049..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0245/expected.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 0, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "id": { - "type": "Identifier", - "start": 9, - "end": 10, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 10 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 13, - "end": 54, - "loc": { - "start": { - "line": 1, - "column": 13 - }, - "end": { - "line": 1, - "column": 54 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 29, - "end": 52, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 52 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 30, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 30 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 39, - "end": 40, - "loc": { - "start": { - "line": 1, - "column": 39 - }, - "end": { - "line": 1, - "column": 40 - } - }, - "name": "b" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 41, - "end": 42, - "loc": { - "start": { - "line": 1, - "column": 41 - }, - "end": { - "line": 1, - "column": 42 - } - }, - "name": "t" - }, - { - "type": "Identifier", - "start": 44, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 44 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "t" - } - ], - "body": { - "type": "BlockStatement", - "start": 47, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [], - "directives": [] - }, - "extra": { - "parenthesized": true - } - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 15, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 15, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 15 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0246/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0246/expected.json deleted file mode 100644 index a4e3e8cbd5..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0246/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 16, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 16 - } - }, - "name": "eval" - } - ], - "body": { - "type": "BlockStatement", - "start": 18, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 18 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 20, - "end": 33, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 33 - } - }, - "expression": { - "type": "Literal", - "start": 20, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 20 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - }, - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0247/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0247/expected.json deleted file mode 100644 index 63264f0559..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0247/expected.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 39, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 39 - } - }, - "expression": { - "type": "FunctionExpression", - "start": 1, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 1 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "id": { - "type": "Identifier", - "start": 10, - "end": 11, - "loc": { - "start": { - "line": 1, - "column": 10 - }, - "end": { - "line": 1, - "column": 11 - } - }, - "name": "a" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 12, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 12 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "name": "package" - } - ], - "body": { - "type": "BlockStatement", - "start": 21, - "end": 38, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 38 - } - }, - "body": [ - { - "type": "ExpressionStatement", - "start": 23, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "Literal", - "start": 23, - "end": 35, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 35 - } - }, - "value": "use strict", - "rawValue": "use strict", - "raw": "\"use strict\"" - } - } - ] - }, - "parenthesizedExpression": true - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0249/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0249/expected.json deleted file mode 100644 index fc69d156ec..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0249/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "sourceType": "script", - "body": [ - { - "type": "FunctionDeclaration", - "start": 14, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 14 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "id": { - "type": "Identifier", - "start": 23, - "end": 24, - "loc": { - "start": { - "line": 1, - "column": 23 - }, - "end": { - "line": 1, - "column": 24 - } - }, - "name": "t" - }, - "generator": false, - "expression": false, - "params": [ - { - "type": "Identifier", - "start": 25, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "name": "__proto__" - }, - { - "type": "Identifier", - "start": 36, - "end": 45, - "loc": { - "start": { - "line": 1, - "column": 36 - }, - "end": { - "line": 1, - "column": 45 - } - }, - "name": "__proto__" - } - ], - "body": { - "type": "BlockStatement", - "start": 47, - "end": 50, - "loc": { - "start": { - "line": 1, - "column": 47 - }, - "end": { - "line": 1, - "column": 50 - } - }, - "body": [], - "directives": [] - } - } - ], - "directives": [ - { - "type": "Directive", - "start": 0, - "end": 13, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 13 - } - }, - "value": { - "type": "DirectiveLiteral", - "start": 0, - "end": 12, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 12 - } - }, - "raw": "\"use strict\"", - "value": "use strict" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0250/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0250/expected.json deleted file mode 100644 index bf9a01a59f..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0250/expected.json +++ /dev/null @@ -1,206 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "expression": { - "type": "AssignmentExpression", - "start": 0, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "operator": "=", - "left": { - "type": "Identifier", - "start": 0, - "end": 1, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 1 - } - }, - "name": "x" - }, - "right": { - "type": "ObjectExpression", - "start": 4, - "end": 36, - "loc": { - "start": { - "line": 1, - "column": 4 - }, - "end": { - "line": 1, - "column": 36 - } - }, - "properties": [ - { - "type": "ObjectProperty", - "start": 6, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 6, - "end": 15, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 15 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NumericLiteral", - "start": 17, - "end": 19, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 19 - } - }, - "extra": { - "rawValue": 42, - "raw": "42" - }, - "value": 42 - } - }, - { - "type": "ObjectProperty", - "start": 21, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "method": false, - "shorthand": false, - "computed": false, - "key": { - "type": "Identifier", - "start": 21, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 21 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "name": "__proto__" - }, - "value": { - "type": "NumericLiteral", - "start": 32, - "end": 34, - "loc": { - "start": { - "line": 1, - "column": 32 - }, - "end": { - "line": 1, - "column": 34 - } - }, - "extra": { - "rawValue": 43, - "raw": "43" - }, - "value": 43 - } - } - ] - } - } - } - ], - "directives": [] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0253/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0253/expected.json deleted file mode 100644 index 51d622d320..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0253/expected.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 3, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 3 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 3, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 3 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ExpressionStatement", - "start": 0, - "end": 3, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 3 - } - }, - "expression": { - "type": "Identifier", - "start": 0, - "end": 3, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 3 - } - }, - "name": "let" - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0270/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0270/expected.json deleted file mode 100644 index ee4de023b7..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0270/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ClassDeclaration", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "A" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 8, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 9, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "computed": false, - "key": { - "type": "Identifier", - "start": 16, - "end": 25, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 25 - } - }, - "name": "prototype" - }, - "static": true, - "kind": "method", - "value": { - "type": "FunctionExpression", - "start": 25, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 25 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 27, - "end": 29, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 29 - } - }, - "body": [] - } - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0271/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0271/expected.json deleted file mode 100644 index d1b5f89276..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0271/expected.json +++ /dev/null @@ -1,153 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ClassDeclaration", - "start": 0, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "A" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 8, - "end": 32, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 32 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 9, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "computed": false, - "key": { - "type": "Literal", - "start": 16, - "end": 27, - "loc": { - "start": { - "line": 1, - "column": 16 - }, - "end": { - "line": 1, - "column": 27 - } - }, - "value": "prototype", - "rawValue": "prototype", - "raw": "\"prototype\"" - }, - "static": true, - "kind": "method", - "value": { - "type": "FunctionExpression", - "start": 27, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 27 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 29, - "end": 31, - "loc": { - "start": { - "line": 1, - "column": 29 - }, - "end": { - "line": 1, - "column": 31 - } - }, - "body": [] - } - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/esprima/invalid-syntax/migrated_0278/expected.json b/test/fixtures/esprima/invalid-syntax/migrated_0278/expected.json deleted file mode 100644 index 1e47cb6c1c..0000000000 --- a/test/fixtures/esprima/invalid-syntax/migrated_0278/expected.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "sourceType": "script", - "body": [ - { - "type": "ClassDeclaration", - "start": 0, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "id": { - "type": "Identifier", - "start": 6, - "end": 7, - "loc": { - "start": { - "line": 1, - "column": 6 - }, - "end": { - "line": 1, - "column": 7 - } - }, - "name": "A" - }, - "superClass": null, - "body": { - "type": "ClassBody", - "start": 8, - "end": 30, - "loc": { - "start": { - "line": 1, - "column": 8 - }, - "end": { - "line": 1, - "column": 30 - } - }, - "body": [ - { - "type": "ClassMethod", - "start": 9, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 9 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "computed": true, - "key": { - "type": "Identifier", - "start": 17, - "end": 23, - "loc": { - "start": { - "line": 1, - "column": 17 - }, - "end": { - "line": 1, - "column": 23 - } - }, - "name": "static" - }, - "static": true, - "kind": "method", - "value": { - "type": "FunctionExpression", - "start": 24, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 24 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "id": null, - "generator": false, - "expression": false, - "params": [], - "body": { - "type": "BlockStatement", - "start": 26, - "end": 28, - "loc": { - "start": { - "line": 1, - "column": 26 - }, - "end": { - "line": 1, - "column": 28 - } - }, - "body": [] - } - } - } - ] - } - } - ] - } -} \ No newline at end of file diff --git a/test/fixtures/flow/type-parameter-declaration/star/expected.json b/test/fixtures/flow/type-parameter-declaration/star/expected.json deleted file mode 100644 index 55692435d7..0000000000 --- a/test/fixtures/flow/type-parameter-declaration/star/expected.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "type": "File", - "start": 0, - "end": 71, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 21 - } - }, - "program": { - "type": "Program", - "start": 0, - "end": 71, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 2, - "column": 21 - } - }, - "sourceType": "module", - "body": [ - { - "type": "TypeAlias", - "start": 50, - "end": 71, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 21 - } - }, - "id": { - "type": "Identifier", - "start": 55, - "end": 58, - "loc": { - "start": { - "line": 2, - "column": 5 - }, - "end": { - "line": 2, - "column": 8 - } - }, - "name": "Foo" - }, - "typeParameters": { - "type": "TypeParameterDeclaration", - "start": 58, - "end": 61, - "loc": { - "start": { - "line": 2, - "column": 8 - }, - "end": { - "line": 2, - "column": 11 - } - }, - "params": [ - { - "type": "ExistentialTypeParam", - "start": 59, - "end": 60, - "loc": { - "start": { - "line": 2, - "column": 9 - }, - "end": { - "line": 2, - "column": 10 - } - } - } - ] - }, - "right": { - "type": "NumberTypeAnnotation", - "start": 64, - "end": 70, - "loc": { - "start": { - "line": 2, - "column": 14 - }, - "end": { - "line": 2, - "column": 20 - } - } - }, - "leadingComments": [ - { - "type": "CommentLine", - "value": " Star is only for type parameter initialization", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - } - } - ] - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentLine", - "value": " Star is only for type parameter initialization", - "start": 0, - "end": 49, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 49 - } - } - } - ] -} \ No newline at end of file diff --git a/test/fixtures/jsx/regression/test-*-option/actual.js b/test/fixtures/jsx/regression/test-star-option/actual.js similarity index 100% rename from test/fixtures/jsx/regression/test-*-option/actual.js rename to test/fixtures/jsx/regression/test-star-option/actual.js diff --git a/test/fixtures/jsx/regression/test-*-option/expected.json b/test/fixtures/jsx/regression/test-star-option/expected.json similarity index 100% rename from test/fixtures/jsx/regression/test-*-option/expected.json rename to test/fixtures/jsx/regression/test-star-option/expected.json diff --git a/test/fixtures/jsx/regression/test-*-option/options.json b/test/fixtures/jsx/regression/test-star-option/options.json similarity index 100% rename from test/fixtures/jsx/regression/test-*-option/options.json rename to test/fixtures/jsx/regression/test-star-option/options.json diff --git a/test/utils/runFixtureTests.js b/test/utils/runFixtureTests.js index 4d8b1c1fda..ee4d10b8bc 100644 --- a/test/utils/runFixtureTests.js +++ b/test/utils/runFixtureTests.js @@ -13,7 +13,7 @@ module.exports = function runFixtureTests(fixturesPath, parseFunction) { try { return runTest(task, parseFunction); } catch (err) { - err.message = task.actual.loc + ": " + err.message; + err.message = name + "/" + task.actual.filename + ": " + err.message; throw err; } }); @@ -33,6 +33,10 @@ function runTest(test, parseFunction) { opts.locations = true; opts.ranges = true; + if (opts.throws && test.expect.code) { + throw new Error("File expected.json exists although options specify throws. Remove expected.json."); + } + try { var ast = parseFunction(test.actual.code, opts); } catch (err) { diff --git a/yarn.lock b/yarn.lock index ae467c1fcc..06840b05bb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1549,9 +1549,9 @@ escope@^3.6.0: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-config-babel@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-3.0.0.tgz#19210e1b46747e7e58d9f477dd00544f5762bf95" +eslint-config-babel@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-4.0.1.tgz#79647e62d82aff64872e5013d6b24f8cfe9b503b" eslint-plugin-babel@^4.0.0: version "4.0.0" @@ -1564,8 +1564,8 @@ eslint-plugin-flowtype@^2.20.0: lodash "^4.15.0" eslint@^3.7.1: - version "3.13.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.0.tgz#636925fd163c9babe2e8be7ae43caf518d469577" + version "3.13.1" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.13.1.tgz#564d2646b5efded85df96985332edd91a23bff25" dependencies: babel-code-frame "^6.16.0" chalk "^1.1.3" @@ -2507,8 +2507,8 @@ lodash.isarray@^3.0.0: resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" lodash.isequal@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.4.0.tgz#6295768e98e14dc15ce8d362ef6340db82852031" + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" lodash.keys@^3.0.0: version "3.1.2" @@ -3376,8 +3376,8 @@ set-immediate-shim@^1.0.1: resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" shelljs@^0.7.5: - version "0.7.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.5.tgz#2eef7a50a21e1ccf37da00df767ec69e30ad0675" + version "0.7.6" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.6.tgz#379cccfb56b91c8601e4793356eb5382924de9ad" dependencies: glob "^7.0.0" interpret "^1.0.0"