blob: e8ff223d1b9bb4c6982e801e69187f9e22b071dd [file] [log] [blame]
{
"type": "Program",
"body": [
{
"type": "IfStatement",
"test": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
4,
8
],
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 8
}
}
},
"consequent": {
"type": "ForStatement",
"init": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
19,
20
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
}
},
"test": null,
"update": null,
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
32,
33
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 9
}
}
},
"range": [
32,
34
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 10
}
}
},
"range": [
14,
34
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 3,
"column": 10
}
}
},
"alternate": {
"type": "ForOfStatement",
"left": {
"type": "Identifier",
"name": "x",
"range": [
49,
50
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 10
}
}
},
"right": {
"type": "Identifier",
"name": "y",
"range": [
54,
55
],
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 15
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
65,
66
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 9
}
}
},
"range": [
65,
67
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 10
}
}
},
"range": [
44,
67
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 6,
"column": 10
}
}
},
"range": [
0,
67
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 10
}
}
}
],
"sourceType": "script",
"range": [
0,
67
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 6,
"column": 10
}
},
"tokens": [
{
"type": "Keyword",
"value": "if",
"range": [
0,
2
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 2
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
3,
4
],
"loc": {
"start": {
"line": 1,
"column": 3
},
"end": {
"line": 1,
"column": 4
}
}
},
{
"type": "Boolean",
"value": "true",
"range": [
4,
8
],
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
8,
9
],
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 9
}
}
},
{
"type": "Keyword",
"value": "for",
"range": [
14,
17
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 7
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
18,
19
],
"loc": {
"start": {
"line": 2,
"column": 8
},
"end": {
"line": 2,
"column": 9
}
}
},
{
"type": "Numeric",
"value": "1",
"range": [
19,
20
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
}
},
{
"type": "Punctuator",
"value": ";",
"range": [
20,
21
],
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 11
}
}
},
{
"type": "Punctuator",
"value": ";",
"range": [
21,
22
],
"loc": {
"start": {
"line": 2,
"column": 11
},
"end": {
"line": 2,
"column": 12
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
22,
23
],
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 13
}
}
},
{
"type": "Numeric",
"value": "1",
"range": [
32,
33
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 9
}
}
},
{
"type": "Punctuator",
"value": ";",
"range": [
33,
34
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 10
}
}
},
{
"type": "Keyword",
"value": "else",
"range": [
35,
39
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 4
}
}
},
{
"type": "Keyword",
"value": "for",
"range": [
44,
47
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 7
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
48,
49
],
"loc": {
"start": {
"line": 5,
"column": 8
},
"end": {
"line": 5,
"column": 9
}
}
},
{
"type": "Identifier",
"value": "x",
"range": [
49,
50
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 10
}
}
},
{
"type": "Identifier",
"value": "of",
"range": [
51,
53
],
"loc": {
"start": {
"line": 5,
"column": 11
},
"end": {
"line": 5,
"column": 13
}
}
},
{
"type": "Identifier",
"value": "y",
"range": [
54,
55
],
"loc": {
"start": {
"line": 5,
"column": 14
},
"end": {
"line": 5,
"column": 15
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
55,
56
],
"loc": {
"start": {
"line": 5,
"column": 15
},
"end": {
"line": 5,
"column": 16
}
}
},
{
"type": "Numeric",
"value": "2",
"range": [
65,
66
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 9
}
}
},
{
"type": "Punctuator",
"value": ";",
"range": [
66,
67
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 10
}
}
}
]
}