280 lines
6.0 KiB
JSON

{
"type": "File",
"start": 0,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
},
"range": [
0,
54
],
"program": {
"type": "Program",
"start": 0,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
},
"range": [
0,
54
],
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
},
"range": [
0,
54
],
"expression": {
"type": "ComprehensionExpression",
"start": 0,
"end": 54,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 54
}
},
"range": [
0,
54
],
"blocks": [
{
"type": "ComprehensionBlock",
"start": 1,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 17
}
},
"range": [
1,
17
],
"left": {
"type": "Identifier",
"start": 6,
"end": 7,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 7
}
},
"range": [
6,
7
],
"name": "x"
},
"right": {
"type": "Identifier",
"start": 11,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 16
}
},
"range": [
11,
16
],
"name": "array"
}
},
{
"type": "ComprehensionBlock",
"start": 18,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 35
}
},
"range": [
18,
35
],
"left": {
"type": "Identifier",
"start": 23,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 24
}
},
"range": [
23,
24
],
"name": "y"
},
"right": {
"type": "Identifier",
"start": 28,
"end": 34,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 34
}
},
"range": [
28,
34
],
"name": "array2"
}
}
],
"filter": {
"type": "BinaryExpression",
"start": 40,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 50
}
},
"range": [
40,
50
],
"left": {
"type": "Identifier",
"start": 40,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 41
}
},
"range": [
40,
41
],
"name": "x"
},
"operator": "===",
"right": {
"type": "Identifier",
"start": 46,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 50
}
},
"range": [
46,
50
],
"name": "test"
}
},
"body": {
"type": "Identifier",
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 1,
"column": 52
},
"end": {
"line": 1,
"column": 53
}
},
"range": [
52,
53
],
"name": "x"
},
"generator": true
}
}
]
}
}