Files
babel/test/fixtures/harmony/uncategorised/152/expected.json
2015-07-25 05:19:32 +01:00

132 lines
2.6 KiB
JSON

{
"type": "Program",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "f",
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 10
}
}
},
"params": [
{
"type": "AssignmentPattern",
"left": {
"type": "ArrayPattern",
"elements": [
{
"type": "Identifier",
"name": "x",
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 14
}
}
},
"right": {
"type": "ArrayExpression",
"elements": [
{
"type": "Literal",
"value": 1,
"raw": "1",
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 19
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 20
}
}
},
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 20
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [],
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 24
}
}
},
"generator": false,
"expression": false,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 24
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 24
}
}
}