379 lines
11 KiB
JSON

{
"type": "File",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
0,
29
],
"program": {
"type": "Program",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
0,
29
],
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 29
}
},
"range": [
0,
29
],
"expression": {
"type": "ClassExpression",
"start": 1,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 28
}
},
"range": [
1,
28
],
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start": 7,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 28
}
},
"range": [
7,
28
],
"body": [
{
"type": "MethodDefinition",
"start": 8,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
8,
27
],
"computed": false,
"key": {
"type": "Identifier",
"start": 8,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 9
}
},
"range": [
8,
9
],
"name": "f"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 9,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
9,
27
],
"id": null,
"generator": false,
"expression": false,
"params": [
{
"type": "AssignmentPattern",
"start": 10,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 23
}
},
"range": [
10,
23
],
"operator": "=",
"left": {
"type": "ObjectPattern",
"start": 10,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 13
}
},
"range": [
10,
13
],
"properties": [
{
"type": "Property",
"start": 11,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
}
},
"range": [
11,
12
],
"method": false,
"shorthand": true,
"computed": false,
"key": {
"type": "Identifier",
"start": 11,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
}
},
"range": [
11,
12
],
"name": "x"
},
"kind": "init",
"value": {
"type": "Identifier",
"start": 11,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
}
},
"range": [
11,
12
],
"name": "x"
}
}
]
},
"right": {
"type": "ObjectExpression",
"start": 16,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 23
}
},
"range": [
16,
23
],
"properties": [
{
"type": "Property",
"start": 17,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 22
}
},
"range": [
17,
22
],
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 17,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 18
}
},
"range": [
17,
18
],
"name": "x"
},
"value": {
"type": "Literal",
"start": 20,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 22
}
},
"range": [
20,
22
],
"value": 10,
"rawValue": 10,
"raw": "10"
},
"kind": "init"
}
]
}
}
],
"body": {
"type": "BlockStatement",
"start": 25,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 27
}
},
"range": [
25,
27
],
"body": []
}
}
}
]
},
"parenthesizedExpression": true
}
}
]
}
}