208 lines
4.3 KiB
JSON

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