removing expression field from ArrowFunctionExpression (#6836)

This commit is contained in:
Martin McKeaveney 2017-11-23 21:12:13 +00:00 committed by Nicolò Ribaudo
parent 1ef7e0f48e
commit 6d820a2757
786 changed files with 728 additions and 1533 deletions

View File

@ -627,7 +627,6 @@ A `this` expression.
interface ArrowFunctionExpression <: Function, Expression {
type: "ArrowFunctionExpression";
body: BlockStatement | Expression;
expression: boolean;
}
```

View File

@ -1480,7 +1480,6 @@ export default class ExpressionParser extends LValParser {
initFunction(node: N.BodilessFunctionOrMethodBase, isAsync: ?boolean): void {
node.id = null;
node.generator = false;
node.expression = false;
node.async = !!isAsync;
}
@ -1559,11 +1558,10 @@ export default class ExpressionParser extends LValParser {
);
}
isStrictBody(
node: { body: N.BlockStatement },
isExpression: ?boolean,
): boolean {
if (!isExpression && node.body.directives.length) {
isStrictBody(node: { body: N.BlockStatement }): boolean {
const isBlockStatement = node.body.type === "BlockStatement";
if (isBlockStatement && node.body.directives.length) {
for (const directive of node.body.directives) {
if (directive.value.value === "use strict") {
return true;
@ -1595,7 +1593,6 @@ export default class ExpressionParser extends LValParser {
if (isExpression) {
node.body = this.parseMaybeAssign();
node.expression = true;
} else {
// Start a new scope with regard to labels and the `inGenerator`
// flag (restore them to their old value afterwards).
@ -1606,7 +1603,6 @@ export default class ExpressionParser extends LValParser {
this.state.inFunction = true;
this.state.labels = [];
node.body = this.parseBlock(true);
node.expression = false;
this.state.inFunction = oldInFunc;
this.state.inGenerator = oldInGen;
this.state.labels = oldLabels;
@ -1624,7 +1620,7 @@ export default class ExpressionParser extends LValParser {
// If this is a strict mode function, verify that argument names
// are not repeated, and it does not try to bind the words `eval`
// or `arguments`.
const isStrict = this.isStrictBody(node, node.expression);
const isStrict = this.isStrictBody(node);
// Also check for arrow functions
const checkLVal = this.state.strict || isStrict || isArrowFunction;

View File

@ -66,6 +66,14 @@ export default (superClass: Class<Parser>): Class<Parser> =>
// Overrides
// ==================================
initFunction(
node: N.BodilessFunctionOrMethodBase,
isAsync: ?boolean,
): void {
super.initFunction(node, isAsync);
node.expression = false;
}
checkDeclaration(node: N.Pattern): void {
if (isSimpleProperty(node)) {
// $FlowFixMe
@ -128,11 +136,10 @@ export default (superClass: Class<Parser>): Class<Parser> =>
}
}
isStrictBody(
node: { body: N.BlockStatement },
isExpression: ?boolean,
): boolean {
if (!isExpression && node.body.body.length > 0) {
isStrictBody(node: { body: N.BlockStatement }): boolean {
const isBlockStatement = node.body.type === "BlockStatement";
if (isBlockStatement && node.body.body.length > 0) {
for (const directive of node.body.body) {
if (
directive.type === "ExpressionStatement" &&
@ -242,6 +249,11 @@ export default (superClass: Class<Parser>): Class<Parser> =>
return node;
}
parseFunctionBody(node: N.Function, allowExpression: ?boolean): void {
super.parseFunctionBody(node, allowExpression);
node.expression = node.body.type !== "BlockStatement";
}
parseMethod<T: N.MethodLike>(
node: T,
isGenerator: boolean,

View File

@ -14,7 +14,6 @@
},
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [],
"body": {

View File

@ -88,7 +88,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 103,
@ -107,10 +106,10 @@
"name": "method1",
"leadingComments": null
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -121,8 +121,6 @@
}
},
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 8,
@ -140,6 +138,8 @@
},
"name": "b"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start": 8,

View File

@ -104,8 +104,6 @@
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 14,
@ -123,6 +121,8 @@
},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"start": 17,
@ -159,8 +159,6 @@
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 37,
@ -179,6 +177,8 @@
"name": "b",
"leadingComments": null
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"start": 40,
@ -233,8 +233,6 @@
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 60,
@ -253,6 +251,8 @@
"name": "c",
"leadingComments": null
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",
"start": 63,

View File

@ -87,7 +87,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 33,
@ -106,6 +105,7 @@
"name": "spawn",
"leadingComments": null
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -60,7 +60,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "f"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "bar"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "bar"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -123,7 +123,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
@ -191,7 +190,6 @@
"name": "isConstant"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "x"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -76,7 +76,6 @@
"name": "fn"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "answer"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -89,7 +89,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "if"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "true"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "false"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "null"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "StringLiteral",
"start": 6,
@ -125,6 +124,7 @@
},
"value": "answer"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -72,7 +72,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8,
@ -90,6 +89,7 @@
},
"name": "message"
},
"computed": false,
"shorthand": false,
"value": {
"type": "StringLiteral",

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "x"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
@ -159,7 +159,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 12,
@ -177,6 +176,7 @@
},
"name": "x"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -60,7 +60,6 @@
"name": "hello"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "eval"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "arguments"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "test"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -74,7 +74,6 @@
"name": "test"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "eval"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -110,7 +109,6 @@
"name": "inner"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "width"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "hello"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "hello"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "hello"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "hello"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -90,7 +90,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -106,7 +106,6 @@
"name": "eval"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -106,7 +106,6 @@
"name": "arguments"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -106,7 +106,6 @@
"name": "hi"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "undef"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "if"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -72,7 +72,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "true"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "false"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -100,7 +100,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 2,
@ -118,6 +117,7 @@
},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayExpression",

View File

@ -72,7 +72,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "NumericLiteral",
"start": 2,
@ -93,6 +92,7 @@
},
"value": 1
},
"computed": false,
"shorthand": false,
"value": {
"type": "BinaryExpression",

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "null"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "StringLiteral",
"start": 10,
@ -125,10 +124,10 @@
},
"value": "undef"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "NumericLiteral",
"start": 10,
@ -125,10 +124,10 @@
},
"value": 10
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "width"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "if"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "true"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "false"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -122,10 +121,10 @@
},
"name": "null"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "StringLiteral",
"start": 10,
@ -125,10 +124,10 @@
},
"value": "null"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "NumericLiteral",
"start": 10,
@ -125,10 +124,10 @@
},
"value": 10
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "get"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -104,7 +104,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 6,
@ -122,6 +121,7 @@
},
"name": "set"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",

View File

@ -60,7 +60,6 @@
"name": "f"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -72,7 +72,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "f"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -87,7 +87,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8,
@ -105,6 +104,7 @@
},
"name": "public"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -87,7 +87,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 8,
@ -105,6 +104,7 @@
},
"name": "arguments"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -116,7 +116,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 9,
@ -134,6 +133,7 @@
},
"name": "length"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -72,7 +72,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -160,7 +159,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
@ -123,7 +122,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 14,
@ -141,6 +139,7 @@
},
"name": "title"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -90,7 +90,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 18,
@ -108,10 +107,10 @@
},
"name": "a"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -147,7 +146,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 37,
@ -165,10 +163,10 @@
},
"name": "a"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
@ -222,7 +220,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 51,
@ -240,10 +237,10 @@
},
"name": "constructor"
},
"computed": false,
"kind": "constructor",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -279,7 +276,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 74,
@ -297,10 +293,10 @@
},
"name": "a"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -337,7 +333,6 @@
},
"static": false,
"kind": "method",
"computed": false,
"key": {
"type": "Identifier",
"start": 91,
@ -355,9 +350,9 @@
},
"name": "a"
},
"computed": false,
"id": null,
"generator": true,
"expression": false,
"async": false,
"params": [],
"body": {
@ -393,7 +388,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 119,
@ -411,10 +405,10 @@
},
"name": "a"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -450,7 +444,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 147,
@ -468,10 +461,10 @@
},
"name": "a"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
@ -525,7 +518,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 170,
@ -543,10 +535,10 @@
},
"name": "constructor"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -582,7 +574,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 202,
@ -600,10 +591,10 @@
},
"name": "a"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -640,7 +631,6 @@
},
"static": true,
"kind": "method",
"computed": false,
"key": {
"type": "Identifier",
"start": 228,
@ -658,9 +648,9 @@
},
"name": "a"
},
"computed": false,
"id": null,
"generator": true,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -111,7 +111,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -168,7 +167,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -225,7 +223,6 @@
"static": false,
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -282,7 +279,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -342,7 +338,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -402,7 +397,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -462,7 +456,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -519,7 +512,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -576,7 +568,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -633,7 +624,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -690,7 +680,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -747,7 +736,6 @@
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -804,7 +792,6 @@
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -861,7 +848,6 @@
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "Foo"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
@ -195,7 +194,6 @@
"name": "Bar"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
@ -243,7 +241,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -60,7 +60,6 @@
"name": "foo"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -103,7 +103,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 15,
@ -121,6 +120,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -242,7 +242,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 43,
@ -260,6 +259,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
@ -378,7 +378,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 77,
@ -396,6 +395,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -427,7 +427,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 84,
@ -445,6 +444,7 @@
},
"name": "baz"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -569,7 +569,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 114,
@ -587,6 +586,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -618,7 +618,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 121,
@ -636,6 +635,7 @@
},
"name": "baz"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -667,7 +667,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 129,
@ -685,6 +684,7 @@
},
"name": "qux"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -812,7 +812,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 161,
@ -830,6 +829,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -861,7 +861,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 168,
@ -879,6 +878,7 @@
},
"name": "baz"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -910,7 +910,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 176,
@ -928,6 +927,7 @@
},
"name": "qux2"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -971,7 +971,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 186,
@ -989,6 +988,7 @@
},
"name": "foo3"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -1344,7 +1344,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 272,
@ -1362,6 +1361,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
@ -1430,7 +1430,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 289,
@ -1448,6 +1447,7 @@
},
"name": "foo2"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
@ -1585,7 +1585,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 327,
@ -1603,6 +1602,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -1634,7 +1634,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 334,
@ -1652,6 +1651,7 @@
},
"name": "baz"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -1683,7 +1683,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 341,
@ -1701,6 +1700,7 @@
},
"name": "qux3"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -1744,7 +1744,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 351,
@ -1762,6 +1761,7 @@
},
"name": "foo2"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -1793,7 +1793,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 359,
@ -1811,6 +1810,7 @@
},
"name": "baz2"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
@ -1949,7 +1949,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 397,
@ -1967,6 +1966,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -1998,7 +1998,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 404,
@ -2016,6 +2015,7 @@
},
"name": "baz"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -2047,7 +2047,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 411,
@ -2065,6 +2064,7 @@
},
"name": "qux5"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -2108,7 +2108,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 421,
@ -2126,6 +2125,7 @@
},
"name": "foo2"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
@ -2157,7 +2157,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 429,
@ -2175,6 +2174,7 @@
},
"name": "baz2"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
@ -2221,7 +2221,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 437,
@ -2239,6 +2238,7 @@
},
"name": "qux6"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -2368,7 +2368,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 469,
@ -2386,6 +2385,7 @@
},
"name": "Foo"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
@ -2507,7 +2507,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 497,
@ -2525,6 +2524,7 @@
},
"name": "foo"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",

View File

@ -58,7 +58,6 @@
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -74,7 +74,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -74,7 +74,6 @@
"name": "a"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -159,7 +159,6 @@
}
},
"method": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 18,
@ -177,6 +176,7 @@
},
"name": "bar"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",

View File

@ -74,7 +74,6 @@
"name": "bar"
},
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -60,7 +60,6 @@
"name": "t"
},
"generator": true,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 9,
@ -108,10 +107,10 @@
},
"name": "get"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 17,
@ -108,10 +107,10 @@
},
"name": "get"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -106,7 +106,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 23,
@ -124,10 +123,10 @@
},
"name": "foo"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -106,7 +106,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 31,
@ -124,10 +123,10 @@
},
"name": "foo"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {

View File

@ -90,7 +90,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 13,
@ -108,10 +107,10 @@
},
"name": "a"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -90,7 +90,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 21,
@ -108,10 +107,10 @@
},
"name": "a"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -90,7 +90,6 @@
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 9,
@ -108,10 +107,10 @@
},
"name": "set"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -90,7 +90,6 @@
}
},
"static": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 17,
@ -108,10 +107,10 @@
},
"name": "set"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{

View File

@ -91,7 +91,6 @@
},
"static": false,
"kind": "method",
"computed": false,
"key": {
"type": "Identifier",
"start": 10,
@ -109,9 +108,9 @@
},
"name": "gen"
},
"computed": false,
"id": null,
"generator": true,
"expression": false,
"async": false,
"params": [
{

View File

@ -91,7 +91,6 @@
},
"static": true,
"kind": "method",
"computed": false,
"key": {
"type": "Identifier",
"start": 18,
@ -109,9 +108,9 @@
},
"name": "gen"
},
"computed": false,
"id": null,
"generator": true,
"expression": false,
"async": false,
"params": [
{

Some files were not shown because too many files have changed in this diff Show More