chore: remove duplicate test262 parser tests (#13241)

This commit is contained in:
Huáng Jùnliàng 2021-05-01 10:57:43 -04:00 committed by GitHub
parent 9d6893d51f
commit 2a3e35f026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
62 changed files with 0 additions and 2189 deletions

View File

@ -1 +0,0 @@
function emptyWithArray(...[[]]) {}

View File

@ -1,47 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":35,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},
"id": {
"type": "Identifier",
"start":9,"end":23,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":23},"identifierName":"emptyWithArray"},
"name": "emptyWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":24,"end":31,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":31}},
"argument": {
"type": "ArrayPattern",
"start":27,"end":31,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":31}},
"elements": [
{
"type": "ArrayPattern",
"start":28,"end":30,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":30}},
"elements": []
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":33,"end":35,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":35}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithLeading(x, ...[]) {}

View File

@ -1,46 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
"id": {
"type": "Identifier",
"start":9,"end":25,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":25},"identifierName":"emptyWithLeading"},
"name": "emptyWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":27},"identifierName":"x"},
"name": "x"
},
{
"type": "RestElement",
"start":29,"end":34,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":34}},
"argument": {
"type": "ArrayPattern",
"start":32,"end":34,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":34}},
"elements": []
}
}
],
"body": {
"type": "BlockStatement",
"start":36,"end":38,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":38}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithObject(...[{}]) {}

View File

@ -1,47 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"id": {
"type": "Identifier",
"start":9,"end":24,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":24},"identifierName":"emptyWithObject"},
"name": "emptyWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}},
"argument": {
"type": "ArrayPattern",
"start":28,"end":32,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":32}},
"elements": [
{
"type": "ObjectPattern",
"start":29,"end":31,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":31}},
"properties": []
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":34,"end":36,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":36}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithRest(...[...[]]) {}

View File

@ -1,51 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":37,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":37}},
"id": {
"type": "Identifier",
"start":9,"end":22,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":22},"identifierName":"emptyWithRest"},
"name": "emptyWithRest"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":23,"end":33,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":33}},
"argument": {
"type": "ArrayPattern",
"start":26,"end":33,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":33}},
"elements": [
{
"type": "RestElement",
"start":27,"end":32,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":32}},
"argument": {
"type": "ArrayPattern",
"start":30,"end":32,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":32}},
"elements": []
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":35,"end":37,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":37}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function empty(...[]) {}

View File

@ -1,41 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},
"id": {
"type": "Identifier",
"start":9,"end":14,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":14},"identifierName":"empty"},
"name": "empty"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":15,"end":20,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":20}},
"argument": {
"type": "ArrayPattern",
"start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20}},
"elements": []
}
}
],
"body": {
"type": "BlockStatement",
"start":22,"end":24,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":24}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithArray(...[[a], b, [c]]) {}

View File

@ -1,69 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},
"id": {
"type": "Identifier",
"start":9,"end":30,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":30},"identifierName":"multiElementWithArray"},
"name": "multiElementWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":31,"end":47,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":47}},
"argument": {
"type": "ArrayPattern",
"start":34,"end":47,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":47}},
"elements": [
{
"type": "ArrayPattern",
"start":35,"end":38,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":38}},
"elements": [
{
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"a"},
"name": "a"
}
]
},
{
"type": "Identifier",
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"b"},
"name": "b"
},
{
"type": "ArrayPattern",
"start":43,"end":46,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":46}},
"elements": [
{
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"c"},
"name": "c"
}
]
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":49,"end":51,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":51}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithInitializer(...[a = 0, b, c = 1]) {}

View File

@ -1,83 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":61}},
"id": {
"type": "Identifier",
"start":9,"end":36,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":36},"identifierName":"multiElementWithInitializer"},
"name": "multiElementWithInitializer"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":37,"end":57,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":57}},
"argument": {
"type": "ArrayPattern",
"start":40,"end":57,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":57}},
"elements": [
{
"type": "AssignmentPattern",
"start":41,"end":46,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":46}},
"left": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"a"},
"name": "a"
},
"right": {
"type": "NumericLiteral",
"start":45,"end":46,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":46}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "Identifier",
"start":48,"end":49,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":49},"identifierName":"b"},
"name": "b"
},
{
"type": "AssignmentPattern",
"start":51,"end":56,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":56}},
"left": {
"type": "Identifier",
"start":51,"end":52,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":52},"identifierName":"c"},
"name": "c"
},
"right": {
"type": "NumericLiteral",
"start":55,"end":56,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":56}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":59,"end":61,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":61}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithLeading(x, y, ...[a, b, c]) {}

View File

@ -1,67 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":55}},
"id": {
"type": "Identifier",
"start":9,"end":32,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":32},"identifierName":"multiElementWithLeading"},
"name": "multiElementWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34},"identifierName":"x"},
"name": "x"
},
{
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"y"},
"name": "y"
},
{
"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},"identifierName":"a"},
"name": "a"
},
{
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47},"identifierName":"b"},
"name": "b"
},
{
"type": "Identifier",
"start":49,"end":50,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":50},"identifierName":"c"},
"name": "c"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":53,"end":55,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":55}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithObject(...[{p: q}, {r}, {s = 0}]) {}

View File

@ -1,130 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":61,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":61}},
"id": {
"type": "Identifier",
"start":9,"end":31,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":31},"identifierName":"multiElementWithObject"},
"name": "multiElementWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":32,"end":57,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":57}},
"argument": {
"type": "ArrayPattern",
"start":35,"end":57,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":57}},
"elements": [
{
"type": "ObjectPattern",
"start":36,"end":42,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":42}},
"properties": [
{
"type": "ObjectProperty",
"start":37,"end":41,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":41}},
"method": false,
"key": {
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"q"},
"name": "q"
}
}
]
},
{
"type": "ObjectPattern",
"start":44,"end":47,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":47}},
"properties": [
{
"type": "ObjectProperty",
"start":45,"end":46,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":46}},
"method": false,
"key": {
"type": "Identifier",
"start":45,"end":46,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":46},"identifierName":"r"},
"name": "r"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":45,"end":46,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":46},"identifierName":"r"},
"name": "r"
},
"extra": {
"shorthand": true
}
}
]
},
{
"type": "ObjectPattern",
"start":49,"end":56,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":56}},
"properties": [
{
"type": "ObjectProperty",
"start":50,"end":55,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":55}},
"method": false,
"key": {
"type": "Identifier",
"start":50,"end":51,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":51},"identifierName":"s"},
"name": "s"
},
"computed": false,
"shorthand": true,
"value": {
"type": "AssignmentPattern",
"start":50,"end":55,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":55}},
"left": {
"type": "Identifier",
"start":50,"end":51,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":51},"identifierName":"s"},
"name": "s"
},
"right": {
"type": "NumericLiteral",
"start":54,"end":55,"loc":{"start":{"line":1,"column":54},"end":{"line":1,"column":55}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"extra": {
"shorthand": true
}
}
]
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":59,"end":61,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":61}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithRest(...[a, b, ...c]) {}

View File

@ -1,61 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"id": {
"type": "Identifier",
"start":9,"end":29,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":29},"identifierName":"multiElementWithRest"},
"name": "multiElementWithRest"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":30,"end":45,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":45}},
"argument": {
"type": "ArrayPattern",
"start":33,"end":45,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":45}},
"elements": [
{
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"a"},
"name": "a"
},
{
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"b"},
"name": "b"
},
{
"type": "RestElement",
"start":40,"end":44,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":44}},
"argument": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"c"},
"name": "c"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":47,"end":49,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":49}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElement(...[a, b, c]) {}

View File

@ -1,57 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
"id": {
"type": "Identifier",
"start":9,"end":21,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":21},"identifierName":"multiElement"},
"name": "multiElement"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":22,"end":34,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":34}},
"argument": {
"type": "ArrayPattern",
"start":25,"end":34,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":34}},
"elements": [
{
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":27},"identifierName":"a"},
"name": "a"
},
{
"type": "Identifier",
"start":29,"end":30,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":30},"identifierName":"b"},
"name": "b"
},
{
"type": "Identifier",
"start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33},"identifierName":"c"},
"name": "c"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":36,"end":38,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":38}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithArray(...[[a]]) {}

View File

@ -1,53 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},
"id": {
"type": "Identifier",
"start":9,"end":31,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":31},"identifierName":"singleElementWithArray"},
"name": "singleElementWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":32,"end":40,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":40}},
"argument": {
"type": "ArrayPattern",
"start":35,"end":40,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":40}},
"elements": [
{
"type": "ArrayPattern",
"start":36,"end":39,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":39}},
"elements": [
{
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"a"},
"name": "a"
}
]
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":42,"end":44,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":44}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithInitializer(...[a = 0]) {}

View File

@ -1,60 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},
"id": {
"type": "Identifier",
"start":9,"end":37,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":37},"identifierName":"singleElementWithInitializer"},
"name": "singleElementWithInitializer"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":38,"end":48,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":48}},
"argument": {
"type": "ArrayPattern",
"start":41,"end":48,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":48}},
"elements": [
{
"type": "AssignmentPattern",
"start":42,"end":47,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":47}},
"left": {
"type": "Identifier",
"start":42,"end":43,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":43},"identifierName":"a"},
"name": "a"
},
"right": {
"type": "NumericLiteral",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":50,"end":52,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":52}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithLeading(x, ...[a]) {}

View File

@ -1,52 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
"id": {
"type": "Identifier",
"start":9,"end":33,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":33},"identifierName":"singleElementWithLeading"},
"name": "singleElementWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"x"},
"name": "x"
},
{
"type": "RestElement",
"start":37,"end":43,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":43}},
"argument": {
"type": "ArrayPattern",
"start":40,"end":43,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":43}},
"elements": [
{
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"a"},
"name": "a"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":45,"end":47,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":47}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithObject(...[{p: q}]) {}

View File

@ -1,65 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":48,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":48}},
"id": {
"type": "Identifier",
"start":9,"end":32,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":32},"identifierName":"singleElementWithObject"},
"name": "singleElementWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":33,"end":44,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":44}},
"argument": {
"type": "ArrayPattern",
"start":36,"end":44,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":44}},
"elements": [
{
"type": "ObjectPattern",
"start":37,"end":43,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":43}},
"properties": [
{
"type": "ObjectProperty",
"start":38,"end":42,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":42}},
"method": false,
"key": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"q"},
"name": "q"
}
}
]
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":46,"end":48,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":48}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithRest(...[...a]) {}

View File

@ -1,51 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":44}},
"id": {
"type": "Identifier",
"start":9,"end":30,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":30},"identifierName":"singleElementWithRest"},
"name": "singleElementWithRest"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":31,"end":40,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":40}},
"argument": {
"type": "ArrayPattern",
"start":34,"end":40,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":40}},
"elements": [
{
"type": "RestElement",
"start":35,"end":39,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":39}},
"argument": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"a"},
"name": "a"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":42,"end":44,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":44}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElement(...[a]) {}

View File

@ -1,47 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
"id": {
"type": "Identifier",
"start":9,"end":22,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":22},"identifierName":"singleElement"},
"name": "singleElement"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":23,"end":29,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":29}},
"argument": {
"type": "ArrayPattern",
"start":26,"end":29,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":29}},
"elements": [
{
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28},"identifierName":"a"},
"name": "a"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":31,"end":33,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":33}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithArray(...{p: []}) {}

View File

@ -1,59 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
"id": {
"type": "Identifier",
"start":9,"end":23,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":23},"identifierName":"emptyWithArray"},
"name": "emptyWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":24,"end":34,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":34}},
"argument": {
"type": "ObjectPattern",
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}},
"properties": [
{
"type": "ObjectProperty",
"start":28,"end":33,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":33}},
"method": false,
"key": {
"type": "Identifier",
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
"start":31,"end":33,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":33}},
"elements": []
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":36,"end":38,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":38}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithLeading(x, ...{}) {}

View File

@ -1,46 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":38,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},
"id": {
"type": "Identifier",
"start":9,"end":25,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":25},"identifierName":"emptyWithLeading"},
"name": "emptyWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":27},"identifierName":"x"},
"name": "x"
},
{
"type": "RestElement",
"start":29,"end":34,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":34}},
"argument": {
"type": "ObjectPattern",
"start":32,"end":34,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":34}},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start":36,"end":38,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":38}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function emptyWithObject(...{p: {}}) {}

View File

@ -1,59 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"id": {
"type": "Identifier",
"start":9,"end":24,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":24},"identifierName":"emptyWithObject"},
"name": "emptyWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":25,"end":35,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":35}},
"argument": {
"type": "ObjectPattern",
"start":28,"end":35,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":35}},
"properties": [
{
"type": "ObjectProperty",
"start":29,"end":34,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":34}},
"method": false,
"key": {
"type": "Identifier",
"start":29,"end":30,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":30},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
"start":32,"end":34,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":34}},
"properties": []
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":37,"end":39,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":39}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function empty(...{}) {}

View File

@ -1,41 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":24,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},
"id": {
"type": "Identifier",
"start":9,"end":14,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":14},"identifierName":"empty"},
"name": "empty"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":15,"end":20,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":20}},
"argument": {
"type": "ObjectPattern",
"start":18,"end":20,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":20}},
"properties": []
}
}
],
"body": {
"type": "BlockStatement",
"start":22,"end":24,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":24}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithArray(...{p: [a], b, q: [c]}) {}

View File

@ -1,108 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":57,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":57}},
"id": {
"type": "Identifier",
"start":9,"end":30,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":30},"identifierName":"multiElementWithArray"},
"name": "multiElementWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":31,"end":53,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":53}},
"argument": {
"type": "ObjectPattern",
"start":34,"end":53,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":53}},
"properties": [
{
"type": "ObjectProperty",
"start":35,"end":41,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":41}},
"method": false,
"key": {
"type": "Identifier",
"start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
"start":38,"end":41,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":41}},
"elements": [
{
"type": "Identifier",
"start":39,"end":40,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":40},"identifierName":"a"},
"name": "a"
}
]
}
},
{
"type": "ObjectProperty",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44}},
"method": false,
"key": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"b"},
"name": "b"
},
"extra": {
"shorthand": true
}
},
{
"type": "ObjectProperty",
"start":46,"end":52,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":52}},
"method": false,
"key": {
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47},"identifierName":"q"},
"name": "q"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
"start":49,"end":52,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":52}},
"elements": [
{
"type": "Identifier",
"start":50,"end":51,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":51},"identifierName":"c"},
"name": "c"
}
]
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":55,"end":57,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":57}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithInitializer(...{a: r = 0, b: s, c: t = 1}) {}

View File

@ -1,119 +0,0 @@
{
"type": "File",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"program": {
"type": "Program",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"id": {
"type": "Identifier",
"start":9,"end":36,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":36},"identifierName":"multiElementWithInitializer"},
"name": "multiElementWithInitializer"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":37,"end":66,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":66}},
"argument": {
"type": "ObjectPattern",
"start":40,"end":66,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":66}},
"properties": [
{
"type": "ObjectProperty",
"start":41,"end":49,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":49}},
"method": false,
"key": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "AssignmentPattern",
"start":44,"end":49,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":49}},
"left": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"r"},
"name": "r"
},
"right": {
"type": "NumericLiteral",
"start":48,"end":49,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":49}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
},
{
"type": "ObjectProperty",
"start":51,"end":55,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":55}},
"method": false,
"key": {
"type": "Identifier",
"start":51,"end":52,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":52},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":54,"end":55,"loc":{"start":{"line":1,"column":54},"end":{"line":1,"column":55},"identifierName":"s"},
"name": "s"
}
},
{
"type": "ObjectProperty",
"start":57,"end":65,"loc":{"start":{"line":1,"column":57},"end":{"line":1,"column":65}},
"method": false,
"key": {
"type": "Identifier",
"start":57,"end":58,"loc":{"start":{"line":1,"column":57},"end":{"line":1,"column":58},"identifierName":"c"},
"name": "c"
},
"computed": false,
"shorthand": false,
"value": {
"type": "AssignmentPattern",
"start":60,"end":65,"loc":{"start":{"line":1,"column":60},"end":{"line":1,"column":65}},
"left": {
"type": "Identifier",
"start":60,"end":61,"loc":{"start":{"line":1,"column":60},"end":{"line":1,"column":61},"identifierName":"t"},
"name": "t"
},
"right": {
"type": "NumericLiteral",
"start":64,"end":65,"loc":{"start":{"line":1,"column":64},"end":{"line":1,"column":65}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":68,"end":70,"loc":{"start":{"line":1,"column":68},"end":{"line":1,"column":70}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithLeading(x, y, ...{a: r, b: s, c: t}) {}

View File

@ -1,103 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":64,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":64}},
"id": {
"type": "Identifier",
"start":9,"end":32,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":32},"identifierName":"multiElementWithLeading"},
"name": "multiElementWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34},"identifierName":"x"},
"name": "x"
},
{
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"y"},
"name": "y"
},
{
"type": "RestElement",
"start":39,"end":60,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":60}},
"argument": {
"type": "ObjectPattern",
"start":42,"end":60,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":60}},
"properties": [
{
"type": "ObjectProperty",
"start":43,"end":47,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":47}},
"method": false,
"key": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47},"identifierName":"r"},
"name": "r"
}
},
{
"type": "ObjectProperty",
"start":49,"end":53,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":53}},
"method": false,
"key": {
"type": "Identifier",
"start":49,"end":50,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":50},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":52,"end":53,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":53},"identifierName":"s"},
"name": "s"
}
},
{
"type": "ObjectProperty",
"start":55,"end":59,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":59}},
"method": false,
"key": {
"type": "Identifier",
"start":55,"end":56,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":56},"identifierName":"c"},
"name": "c"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":58,"end":59,"loc":{"start":{"line":1,"column":58},"end":{"line":1,"column":59},"identifierName":"t"},
"name": "t"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":62,"end":64,"loc":{"start":{"line":1,"column":62},"end":{"line":1,"column":64}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElementWithObject(...{a: {p: q}, b: {r}, c: {s = 0}}) {}

View File

@ -1,166 +0,0 @@
{
"type": "File",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"program": {
"type": "Program",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":70,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},
"id": {
"type": "Identifier",
"start":9,"end":31,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":31},"identifierName":"multiElementWithObject"},
"name": "multiElementWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":32,"end":66,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":66}},
"argument": {
"type": "ObjectPattern",
"start":35,"end":66,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":66}},
"properties": [
{
"type": "ObjectProperty",
"start":36,"end":45,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":45}},
"method": false,
"key": {
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
"start":39,"end":45,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":45}},
"properties": [
{
"type": "ObjectProperty",
"start":40,"end":44,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":44}},
"method": false,
"key": {
"type": "Identifier",
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"q"},
"name": "q"
}
}
]
}
},
{
"type": "ObjectProperty",
"start":47,"end":53,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":53}},
"method": false,
"key": {
"type": "Identifier",
"start":47,"end":48,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":48},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
"start":50,"end":53,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":53}},
"properties": [
{
"type": "ObjectProperty",
"start":51,"end":52,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":52}},
"method": false,
"key": {
"type": "Identifier",
"start":51,"end":52,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":52},"identifierName":"r"},
"name": "r"
},
"computed": false,
"shorthand": true,
"value": {
"type": "Identifier",
"start":51,"end":52,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":52},"identifierName":"r"},
"name": "r"
},
"extra": {
"shorthand": true
}
}
]
}
},
{
"type": "ObjectProperty",
"start":55,"end":65,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":65}},
"method": false,
"key": {
"type": "Identifier",
"start":55,"end":56,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":56},"identifierName":"c"},
"name": "c"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
"start":58,"end":65,"loc":{"start":{"line":1,"column":58},"end":{"line":1,"column":65}},
"properties": [
{
"type": "ObjectProperty",
"start":59,"end":64,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":64}},
"method": false,
"key": {
"type": "Identifier",
"start":59,"end":60,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":60},"identifierName":"s"},
"name": "s"
},
"computed": false,
"shorthand": true,
"value": {
"type": "AssignmentPattern",
"start":59,"end":64,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":64}},
"left": {
"type": "Identifier",
"start":59,"end":60,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":60},"identifierName":"s"},
"name": "s"
},
"right": {
"type": "NumericLiteral",
"start":63,"end":64,"loc":{"start":{"line":1,"column":63},"end":{"line":1,"column":64}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
"extra": {
"shorthand": true
}
}
]
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":68,"end":70,"loc":{"start":{"line":1,"column":68},"end":{"line":1,"column":70}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function multiElement(...{a: r, b: s, c: t}) {}

View File

@ -1,93 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
"id": {
"type": "Identifier",
"start":9,"end":21,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":21},"identifierName":"multiElement"},
"name": "multiElement"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":22,"end":43,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":43}},
"argument": {
"type": "ObjectPattern",
"start":25,"end":43,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":43}},
"properties": [
{
"type": "ObjectProperty",
"start":26,"end":30,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":30}},
"method": false,
"key": {
"type": "Identifier",
"start":26,"end":27,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":27},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":29,"end":30,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":30},"identifierName":"r"},
"name": "r"
}
},
{
"type": "ObjectProperty",
"start":32,"end":36,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":36}},
"method": false,
"key": {
"type": "Identifier",
"start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33},"identifierName":"b"},
"name": "b"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"s"},
"name": "s"
}
},
{
"type": "ObjectProperty",
"start":38,"end":42,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":42}},
"method": false,
"key": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"c"},
"name": "c"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"t"},
"name": "t"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":45,"end":47,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":47}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithArray(...{p: [a]}) {}

View File

@ -1,65 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
"id": {
"type": "Identifier",
"start":9,"end":31,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":31},"identifierName":"singleElementWithArray"},
"name": "singleElementWithArray"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":32,"end":43,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":43}},
"argument": {
"type": "ObjectPattern",
"start":35,"end":43,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":43}},
"properties": [
{
"type": "ObjectProperty",
"start":36,"end":42,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":42}},
"method": false,
"key": {
"type": "Identifier",
"start":36,"end":37,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":37},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ArrayPattern",
"start":39,"end":42,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":42}},
"elements": [
{
"type": "Identifier",
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"a"},
"name": "a"
}
]
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":45,"end":47,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":47}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithInitializer(...{a: b = 0}) {}

View File

@ -1,72 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":55,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":55}},
"id": {
"type": "Identifier",
"start":9,"end":37,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":37},"identifierName":"singleElementWithInitializer"},
"name": "singleElementWithInitializer"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":38,"end":51,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":51}},
"argument": {
"type": "ObjectPattern",
"start":41,"end":51,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":51}},
"properties": [
{
"type": "ObjectProperty",
"start":42,"end":50,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":50}},
"method": false,
"key": {
"type": "Identifier",
"start":42,"end":43,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":43},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "AssignmentPattern",
"start":45,"end":50,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":50}},
"left": {
"type": "Identifier",
"start":45,"end":46,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":46},"identifierName":"b"},
"name": "b"
},
"right": {
"type": "NumericLiteral",
"start":49,"end":50,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":50}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":53,"end":55,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":55}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithLeading(x, ...{a: b}) {}

View File

@ -1,64 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
"id": {
"type": "Identifier",
"start":9,"end":33,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":33},"identifierName":"singleElementWithLeading"},
"name": "singleElementWithLeading"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"x"},
"name": "x"
},
{
"type": "RestElement",
"start":37,"end":46,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":46}},
"argument": {
"type": "ObjectPattern",
"start":40,"end":46,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":46}},
"properties": [
{
"type": "ObjectProperty",
"start":41,"end":45,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":45}},
"method": false,
"key": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"b"},
"name": "b"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":48,"end":50,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":50}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElementWithObject(...{p: {a: b}}) {}

View File

@ -1,77 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},
"id": {
"type": "Identifier",
"start":9,"end":32,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":32},"identifierName":"singleElementWithObject"},
"name": "singleElementWithObject"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":33,"end":47,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":47}},
"argument": {
"type": "ObjectPattern",
"start":36,"end":47,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":47}},
"properties": [
{
"type": "ObjectProperty",
"start":37,"end":46,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":46}},
"method": false,
"key": {
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"p"},
"name": "p"
},
"computed": false,
"shorthand": false,
"value": {
"type": "ObjectPattern",
"start":40,"end":46,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":46}},
"properties": [
{
"type": "ObjectProperty",
"start":41,"end":45,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":45}},
"method": false,
"key": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"b"},
"name": "b"
}
}
]
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":49,"end":51,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":51}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}

View File

@ -1 +0,0 @@
function singleElement(...{a: b}) {}

View File

@ -1,59 +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",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"id": {
"type": "Identifier",
"start":9,"end":22,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":22},"identifierName":"singleElement"},
"name": "singleElement"
},
"generator": false,
"async": false,
"params": [
{
"type": "RestElement",
"start":23,"end":32,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":32}},
"argument": {
"type": "ObjectPattern",
"start":26,"end":32,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":32}},
"properties": [
{
"type": "ObjectProperty",
"start":27,"end":31,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":31}},
"method": false,
"key": {
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28},"identifierName":"a"},
"name": "a"
},
"computed": false,
"shorthand": false,
"value": {
"type": "Identifier",
"start":30,"end":31,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":31},"identifierName":"b"},
"name": "b"
}
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start":34,"end":36,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":36}},
"body": [],
"directives": []
}
}
],
"directives": []
}
}