remove range property from nodes, clean up babylon codebase

This commit is contained in:
Sebastian McKenzie
2015-07-25 07:07:22 +01:00
parent af03a301ae
commit e7fec51feb
424 changed files with 3967 additions and 19592 deletions

View File

@@ -1,53 +1,52 @@
{
"type": "File",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "BlockStatement",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "a",
"range": [
6,
7
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 5
}
}
},
"arguments": [],
"range": [
6,
9
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 7
}
}
},
"range": [
6,
10
],
"start": 6,
"end": 10,
"loc": {
"start": {
"line": 2,
@@ -58,14 +57,44 @@
"column": 8
}
},
"expression": {
"type": "CallExpression",
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 7
}
},
"callee": {
"type": "Identifier",
"start": 6,
"end": 7,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 5
}
},
"name": "a"
},
"arguments": []
},
"trailingComments": [
{
"type": "CommentLine",
"value": "comment",
"range": [
15,
24
],
"start": 15,
"end": 24,
"loc": {
"start": {
"line": 3,
@@ -75,51 +104,24 @@
"line": 3,
"column": 13
}
}
},
"range": [
15,
24
]
}
]
}
],
"range": [
0,
26
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
}
]
}
],
"sourceType": "script",
"range": [
0,
26
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentLine",
"value": "comment",
"range": [
15,
24
],
"start": 15,
"end": 24,
"loc": {
"start": {
"line": 3,
@@ -129,7 +131,11 @@
"line": 3,
"column": 13
}
}
},
"range": [
15,
24
]
}
]
}
}

View File

@@ -1,71 +1,37 @@
{
"type": "File",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 20
}
},
"program": {
"type": "Program",
"start": 0,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 20
}
},
"sourceType": "script",
"body": [
{
"type": "IfStatement",
"test": {
"type": "Identifier",
"name": "a",
"range": [
25,
26
],
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"range": [
14,
23
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 13
}
}
}
]
},
"consequent": {
"type": "BlockStatement",
"body": [],
"range": [
28,
30
],
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 20
}
}
},
"alternate": null,
"range": [
10,
30
],
"start": 10,
"end": 30,
"loc": {
"start": {
"line": 2,
@@ -76,14 +42,67 @@
"column": 20
}
},
"test": {
"type": "Identifier",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
},
"name": "a",
"leadingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"start": 14,
"end": 23,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 13
}
},
"range": [
14,
23
]
}
]
},
"consequent": {
"type": "BlockStatement",
"start": 28,
"end": 30,
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 20
}
},
"body": []
},
"alternate": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": " foo ",
"range": [
0,
9
],
"start": 0,
"end": 9,
"loc": {
"start": {
"line": 1,
@@ -93,35 +112,22 @@
"line": 1,
"column": 9
}
}
},
"range": [
0,
9
]
}
]
}
],
"sourceType": "script",
"range": [
0,
30
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 20
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " foo ",
"range": [
0,
9
],
"start": 0,
"end": 9,
"loc": {
"start": {
"line": 1,
@@ -131,15 +137,17 @@
"line": 1,
"column": 9
}
}
},
"range": [
0,
9
]
},
{
"type": "CommentBlock",
"value": " bar ",
"range": [
14,
23
],
"start": 14,
"end": 23,
"loc": {
"start": {
"line": 2,
@@ -149,7 +157,11 @@
"line": 2,
"column": 13
}
}
},
"range": [
14,
23
]
}
]
}
}

View File

@@ -1,149 +1,37 @@
{
"type": "File",
"start": 0,
"end": 121,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 121,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
},
"sourceType": "module",
"body": [
{
"type": "ExportDefaultDeclaration",
"declaration": {
"type": "ClassExpression",
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "method1",
"range": [
103,
110
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 11
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [],
"range": [
112,
119
],
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 9,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
110,
119
],
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 9,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
103,
119
],
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * this is method1.\n ",
"range": [
63,
98
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 7,
"column": 7
}
}
}
],
"static": false
}
],
"range": [
57,
121
],
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 10,
"column": 1
}
}
},
"range": [
51,
121
],
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 10,
"column": 1
}
}
},
"range": [
36,
121
],
"start": 36,
"end": 121,
"loc": {
"start": {
"line": 4,
@@ -154,14 +42,140 @@
"column": 1
}
},
"declaration": {
"type": "ClassExpression",
"start": 51,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 10,
"column": 1
}
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start": 57,
"end": 121,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 10,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 103,
"end": 119,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 9,
"column": 5
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 103,
"end": 110,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 11
}
},
"name": "method1",
"leadingComments": null
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 110,
"end": 119,
"loc": {
"start": {
"line": 8,
"column": 11
},
"end": {
"line": 9,
"column": 5
}
},
"id": null,
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 112,
"end": 119,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 9,
"column": 5
}
},
"body": []
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * this is method1.\n ",
"start": 63,
"end": 98,
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 7,
"column": 7
}
},
"range": [
63,
98
]
}
]
}
],
"leadingComments": null
},
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * this is anonymous class.\n ",
"range": [
0,
35
],
"start": 0,
"end": 35,
"loc": {
"start": {
"line": 1,
@@ -171,35 +185,22 @@
"line": 3,
"column": 3
}
}
},
"range": [
0,
35
]
}
]
}
],
"sourceType": "module",
"range": [
0,
121
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 10,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * this is anonymous class.\n ",
"range": [
0,
35
],
"start": 0,
"end": 35,
"loc": {
"start": {
"line": 1,
@@ -209,15 +210,17 @@
"line": 3,
"column": 3
}
}
},
"range": [
0,
35
]
},
{
"type": "CommentBlock",
"value": "*\n * this is method1.\n ",
"range": [
63,
98
],
"start": 63,
"end": 98,
"loc": {
"start": {
"line": 5,
@@ -227,7 +230,11 @@
"line": 7,
"column": 7
}
}
},
"range": [
63,
98
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "a",
"range": [
9,
10
],
"start": 9,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,54 +55,31 @@
"line": 1,
"column": 10
}
}
},
"name": "a"
},
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 13,
"end": 60,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "foo",
"range": [
36,
39
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 7
}
}
},
"arguments": [],
"range": [
36,
41
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 9
}
}
},
"range": [
36,
42
],
"start": 36,
"end": 42,
"loc": {
"start": {
"line": 3,
@@ -79,14 +90,46 @@
"column": 10
}
},
"expression": {
"type": "CallExpression",
"start": 36,
"end": 41,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 9
}
},
"callee": {
"type": "Identifier",
"start": 36,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 7
}
},
"name": "foo",
"leadingComments": null
},
"arguments": [],
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -96,17 +139,19 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"range": [
47,
58
],
"start": 47,
"end": 58,
"loc": {
"start": {
"line": 4,
@@ -116,68 +161,25 @@
"line": 4,
"column": 15
}
}
},
"range": [
47,
58
]
}
]
}
],
"range": [
13,
60
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
60
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
60
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -187,15 +189,17 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
},
{
"type": "CommentBlock",
"value": " after ",
"range": [
47,
58
],
"start": 47,
"end": 58,
"loc": {
"start": {
"line": 4,
@@ -205,7 +209,11 @@
"line": 4,
"column": 15
}
}
},
"range": [
47,
58
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "a",
"range": [
9,
10
],
"start": 9,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,18 +55,31 @@
"line": 1,
"column": 10
}
}
},
"name": "a"
},
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 13,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "DebuggerStatement",
"range": [
36,
45
],
"start": 36,
"end": 45,
"loc": {
"start": {
"line": 3,
@@ -47,10 +94,8 @@
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -60,17 +105,19 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"start": 50,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -80,68 +127,25 @@
"line": 4,
"column": 15
}
}
},
"range": [
50,
61
]
}
]
}
],
"range": [
13,
63
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -151,15 +155,17 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
},
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"start": 50,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -169,7 +175,11 @@
"line": 4,
"column": 15
}
}
},
"range": [
50,
61
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "a",
"range": [
9,
10
],
"start": 9,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,19 +55,31 @@
"line": 1,
"column": 10
}
}
},
"name": "a"
},
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 13,
"end": 61,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"argument": null,
"range": [
36,
43
],
"start": 36,
"end": 43,
"loc": {
"start": {
"line": 3,
@@ -44,14 +90,13 @@
"column": 11
}
},
"argument": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -61,17 +106,19 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"range": [
48,
59
],
"start": 48,
"end": 59,
"loc": {
"start": {
"line": 4,
@@ -81,68 +128,25 @@
"line": 4,
"column": 15
}
}
},
"range": [
48,
59
]
}
]
}
],
"range": [
13,
61
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
61
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
61
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -152,15 +156,17 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
},
{
"type": "CommentBlock",
"value": " after ",
"range": [
48,
59
],
"start": 48,
"end": 59,
"loc": {
"start": {
"line": 4,
@@ -170,7 +176,11 @@
"line": 4,
"column": 15
}
}
},
"range": [
48,
59
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "a",
"range": [
9,
10
],
"start": 9,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,37 +55,31 @@
"line": 1,
"column": 10
}
}
},
"name": "a"
},
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 13,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "ThrowStatement",
"argument": {
"type": "Literal",
"value": 55,
"raw": "55",
"range": [
42,
44
],
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 12
}
}
},
"range": [
36,
45
],
"start": 36,
"end": 45,
"loc": {
"start": {
"line": 3,
@@ -62,14 +90,31 @@
"column": 13
}
},
"argument": {
"type": "Literal",
"start": 42,
"end": 44,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 12
}
},
"value": 55,
"rawValue": 55,
"raw": "55",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -79,17 +124,19 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"start": 50,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -99,68 +146,25 @@
"line": 4,
"column": 15
}
}
},
"range": [
50,
61
]
}
]
}
],
"range": [
13,
63
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"start": 19,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -170,15 +174,17 @@
"line": 2,
"column": 16
}
}
},
"range": [
19,
31
]
},
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"start": 50,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -188,7 +194,11 @@
"line": 4,
"column": 15
}
}
},
"range": [
50,
61
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 68,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 68
}
},
"program": {
"type": "Program",
"start": 0,
"end": 68,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 68
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 68,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 68
}
},
"id": {
"type": "Identifier",
"name": "f",
"range": [
9,
10
],
"start": 9,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,55 +55,31 @@
"line": 1,
"column": 10
}
}
},
"name": "f"
},
"generator": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 13,
"end": 68,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 68
}
},
"body": [
{
"type": "WhileStatement",
"test": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
37,
41
],
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 41
}
}
},
"body": {
"type": "BlockStatement",
"body": [],
"range": [
43,
46
],
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 46
}
}
},
"range": [
30,
46
],
"start": 30,
"end": 46,
"loc": {
"start": {
"line": 1,
@@ -80,14 +90,49 @@
"column": 46
}
},
"test": {
"type": "Literal",
"start": 37,
"end": 41,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 41
}
},
"value": true,
"rawValue": true,
"raw": "true",
"leadingComments": null
},
"body": {
"type": "BlockStatement",
"start": 43,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 43
},
"end": {
"line": 1,
"column": 46
}
},
"body": [],
"leadingComments": null,
"trailingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " infinite ",
"range": [
15,
29
],
"start": 15,
"end": 29,
"loc": {
"start": {
"line": 1,
@@ -97,17 +142,19 @@
"line": 1,
"column": 29
}
}
},
"range": [
15,
29
]
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"range": [
47,
56
],
"start": 47,
"end": 56,
"loc": {
"start": {
"line": 1,
@@ -117,55 +164,18 @@
"line": 1,
"column": 56
}
}
},
"range": [
47,
56
]
}
]
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "each",
"range": [
61,
65
],
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 65
}
}
},
"init": null,
"range": [
61,
65
],
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 65
}
}
}
],
"kind": "var",
"range": [
57,
66
],
"start": 57,
"end": 66,
"loc": {
"start": {
"line": 1,
@@ -176,14 +186,49 @@
"column": 66
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 61,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 65
}
},
"id": {
"type": "Identifier",
"start": 61,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 61
},
"end": {
"line": 1,
"column": 65
}
},
"name": "each",
"leadingComments": null
},
"init": null,
"leadingComments": null
}
],
"kind": "var",
"leadingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"range": [
47,
56
],
"start": 47,
"end": 56,
"loc": {
"start": {
"line": 1,
@@ -193,68 +238,25 @@
"line": 1,
"column": 56
}
}
},
"range": [
47,
56
]
}
]
}
],
"range": [
13,
68
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 68
}
}
},
"generator": false,
"expression": false,
"range": [
0,
68
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 68
}
]
}
}
],
"sourceType": "script",
"range": [
0,
68
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 68
}
}
]
},
"comments": [
{
"type": "CommentBlock",
"value": " infinite ",
"range": [
15,
29
],
"start": 15,
"end": 29,
"loc": {
"start": {
"line": 1,
@@ -264,15 +266,17 @@
"line": 1,
"column": 29
}
}
},
"range": [
15,
29
]
},
{
"type": "CommentBlock",
"value": " bar ",
"range": [
47,
56
],
"start": 47,
"end": 56,
"loc": {
"start": {
"line": 1,
@@ -282,7 +286,11 @@
"line": 1,
"column": 56
}
}
},
"range": [
47,
56
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 141,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 141,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 141,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "bar",
"range": [
9,
12
],
"start": 9,
"end": 12,
"loc": {
"start": {
"line": 1,
@@ -21,16 +55,16 @@
"line": 1,
"column": 12
}
}
},
"name": "bar"
},
"generator": false,
"expression": false,
"params": [
{
"type": "Identifier",
"name": "foo",
"range": [
13,
16
],
"start": 13,
"end": 16,
"loc": {
"start": {
"line": 1,
@@ -40,21 +74,43 @@
"line": 1,
"column": 16
}
}
},
"name": "foo"
}
],
"body": {
"type": "BlockStatement",
"start": 18,
"end": 141,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 9,
"column": 1
}
},
"body": [
{
"type": "SwitchStatement",
"start": 24,
"end": 139,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
},
"discriminant": {
"type": "Identifier",
"name": "foo",
"range": [
31,
34
],
"start": 31,
"end": 34,
"loc": {
"start": {
"line": 2,
@@ -64,35 +120,14 @@
"line": 2,
"column": 14
}
}
},
"name": "foo"
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
66,
67
],
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 14
}
}
},
"consequent": [],
"range": [
61,
68
],
"start": 61,
"end": 68,
"loc": {
"start": {
"line": 4,
@@ -103,14 +138,32 @@
"column": 15
}
},
"consequent": [],
"test": {
"type": "Literal",
"start": 66,
"end": 67,
"loc": {
"start": {
"line": 4,
"column": 13
},
"end": {
"line": 4,
"column": 14
}
},
"value": 1,
"rawValue": 1,
"raw": "1",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"range": [
46,
52
],
"start": 46,
"end": 52,
"loc": {
"start": {
"line": 3,
@@ -120,17 +173,19 @@
"line": 3,
"column": 14
}
}
},
"range": [
46,
52
]
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " falls through",
"range": [
81,
97
],
"start": 81,
"end": 97,
"loc": {
"start": {
"line": 5,
@@ -140,90 +195,18 @@
"line": 5,
"column": 28
}
}
},
"range": [
81,
97
]
}
]
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
111,
112
],
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 14
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "doIt",
"range": [
126,
130
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 16
}
}
},
"arguments": [],
"range": [
126,
132
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 18
}
}
},
"range": [
126,
133
],
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 19
}
}
}
],
"range": [
106,
133
],
"start": 106,
"end": 133,
"loc": {
"start": {
"line": 6,
@@ -234,14 +217,80 @@
"column": 19
}
},
"consequent": [
{
"type": "ExpressionStatement",
"start": 126,
"end": 133,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 19
}
},
"expression": {
"type": "CallExpression",
"start": 126,
"end": 132,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 18
}
},
"callee": {
"type": "Identifier",
"start": 126,
"end": 130,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 7,
"column": 16
}
},
"name": "doIt"
},
"arguments": []
}
}
],
"test": {
"type": "Literal",
"start": 111,
"end": 112,
"loc": {
"start": {
"line": 6,
"column": 13
},
"end": {
"line": 6,
"column": 14
}
},
"value": 2,
"rawValue": 2,
"raw": "2",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " falls through",
"range": [
81,
97
],
"start": 81,
"end": 97,
"loc": {
"start": {
"line": 5,
@@ -251,84 +300,27 @@
"line": 5,
"column": 28
}
}
},
"range": [
81,
97
]
}
]
}
],
"range": [
24,
139
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
}
]
}
],
"range": [
18,
141
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 9,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
141
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
141
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentLine",
"value": " foo",
"range": [
46,
52
],
"start": 46,
"end": 52,
"loc": {
"start": {
"line": 3,
@@ -338,15 +330,17 @@
"line": 3,
"column": 14
}
}
},
"range": [
46,
52
]
},
{
"type": "CommentLine",
"value": " falls through",
"range": [
81,
97
],
"start": 81,
"end": 97,
"loc": {
"start": {
"line": 5,
@@ -356,7 +350,11 @@
"line": 5,
"column": 28
}
}
},
"range": [
81,
97
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 91,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 91,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "SwitchStatement",
"start": 0,
"end": 91,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
},
"discriminant": {
"type": "Identifier",
"name": "foo",
"range": [
7,
10
],
"start": 7,
"end": 10,
"loc": {
"start": {
"line": 1,
@@ -21,35 +55,14 @@
"line": 1,
"column": 10
}
}
},
"name": "foo"
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
34,
35
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 10
}
}
},
"consequent": [],
"range": [
29,
36
],
"start": 29,
"end": 36,
"loc": {
"start": {
"line": 3,
@@ -60,14 +73,32 @@
"column": 11
}
},
"consequent": [],
"test": {
"type": "Literal",
"start": 34,
"end": 35,
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 10
}
},
"value": 1,
"rawValue": 1,
"raw": "1",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"range": [
18,
24
],
"start": 18,
"end": 24,
"loc": {
"start": {
"line": 2,
@@ -77,17 +108,19 @@
"line": 2,
"column": 10
}
}
},
"range": [
18,
24
]
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " falls through",
"range": [
45,
61
],
"start": 45,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -97,90 +130,18 @@
"line": 4,
"column": 24
}
}
},
"range": [
45,
61
]
}
]
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
71,
72
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 10
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "doIt",
"range": [
82,
86
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
}
},
"arguments": [],
"range": [
82,
88
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 14
}
}
},
"range": [
82,
89
],
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
}
}
],
"range": [
66,
89
],
"start": 66,
"end": 89,
"loc": {
"start": {
"line": 5,
@@ -191,14 +152,80 @@
"column": 15
}
},
"consequent": [
{
"type": "ExpressionStatement",
"start": 82,
"end": 89,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 15
}
},
"expression": {
"type": "CallExpression",
"start": 82,
"end": 88,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 14
}
},
"callee": {
"type": "Identifier",
"start": 82,
"end": 86,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 6,
"column": 12
}
},
"name": "doIt"
},
"arguments": []
}
}
],
"test": {
"type": "Literal",
"start": 71,
"end": 72,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 10
}
},
"value": 2,
"rawValue": 2,
"raw": "2",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentLine",
"value": " falls through",
"range": [
45,
61
],
"start": 45,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -208,51 +235,24 @@
"line": 4,
"column": 24
}
}
},
"range": [
45,
61
]
}
]
}
],
"range": [
0,
91
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
}
]
}
],
"sourceType": "script",
"range": [
0,
91
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentLine",
"value": " foo",
"range": [
18,
24
],
"start": 18,
"end": 24,
"loc": {
"start": {
"line": 2,
@@ -262,15 +262,17 @@
"line": 2,
"column": 10
}
}
},
"range": [
18,
24
]
},
{
"type": "CommentLine",
"value": " falls through",
"range": [
45,
61
],
"start": 45,
"end": 61,
"loc": {
"start": {
"line": 4,
@@ -280,7 +282,11 @@
"line": 4,
"column": 24
}
}
},
"range": [
45,
61
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 133,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 133,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 133,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
},
"id": {
"type": "Identifier",
"name": "bar",
"range": [
9,
12
],
"start": 9,
"end": 12,
"loc": {
"start": {
"line": 1,
@@ -21,16 +55,16 @@
"line": 1,
"column": 12
}
}
},
"name": "bar"
},
"generator": false,
"expression": false,
"params": [
{
"type": "Identifier",
"name": "a",
"range": [
13,
14
],
"start": 13,
"end": 14,
"loc": {
"start": {
"line": 1,
@@ -40,21 +74,43 @@
"line": 1,
"column": 14
}
}
},
"name": "a"
}
],
"body": {
"type": "BlockStatement",
"start": 16,
"end": 133,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 9,
"column": 1
}
},
"body": [
{
"type": "SwitchStatement",
"start": 22,
"end": 131,
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
},
"discriminant": {
"type": "Identifier",
"name": "a",
"range": [
30,
31
],
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 2,
@@ -64,54 +120,14 @@
"line": 2,
"column": 13
}
}
},
"name": "a"
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 2,
"raw": "2",
"range": [
48,
49
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 14
}
}
},
"consequent": [
{
"type": "BreakStatement",
"label": null,
"range": [
63,
69
],
"loc": {
"start": {
"line": 4,
"column": 12
},
"end": {
"line": 4,
"column": 18
}
}
}
],
"range": [
43,
69
],
"start": 43,
"end": 69,
"loc": {
"start": {
"line": 3,
@@ -121,53 +137,48 @@
"line": 4,
"column": 18
}
}
},
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
83,
84
],
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 14
}
}
},
"consequent": [
{
"type": "BreakStatement",
"label": null,
"range": [
98,
104
],
"start": 63,
"end": 69,
"loc": {
"start": {
"line": 6,
"line": 4,
"column": 12
},
"end": {
"line": 6,
"line": 4,
"column": 18
}
}
},
"label": null
}
],
"range": [
78,
104
],
"test": {
"type": "Literal",
"start": 48,
"end": 49,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 14
}
},
"value": 2,
"rawValue": 2,
"raw": "2"
}
},
{
"type": "SwitchCase",
"start": 78,
"end": 104,
"loc": {
"start": {
"line": 5,
@@ -178,14 +189,50 @@
"column": 18
}
},
"consequent": [
{
"type": "BreakStatement",
"start": 98,
"end": 104,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 18
}
},
"label": null,
"leadingComments": null,
"trailingComments": null
}
],
"test": {
"type": "Literal",
"start": 83,
"end": 84,
"loc": {
"start": {
"line": 5,
"column": 13
},
"end": {
"line": 5,
"column": 14
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"trailingComments": [
{
"type": "CommentLine",
"value": "no default",
"range": [
113,
125
],
"start": 113,
"end": 125,
"loc": {
"start": {
"line": 7,
@@ -195,84 +242,27 @@
"line": 7,
"column": 20
}
}
},
"range": [
113,
125
]
}
]
}
],
"range": [
22,
131
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 8,
"column": 5
}
}
]
}
],
"range": [
16,
133
],
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 9,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
133
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
]
}
}
],
"sourceType": "script",
"range": [
0,
133
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentLine",
"value": "no default",
"range": [
113,
125
],
"start": 113,
"end": 125,
"loc": {
"start": {
"line": 7,
@@ -282,7 +272,11 @@
"line": 7,
"column": 20
}
}
},
"range": [
113,
125
]
}
]
}
}

View File

@@ -1,17 +1,51 @@
{
"type": "File",
"start": 0,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"program": {
"type": "Program",
"start": 0,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"sourceType": "script",
"body": [
{
"type": "SwitchStatement",
"start": 0,
"end": 58,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"discriminant": {
"type": "Identifier",
"name": "a",
"range": [
8,
9
],
"start": 8,
"end": 9,
"loc": {
"start": {
"line": 1,
@@ -21,54 +55,14 @@
"line": 1,
"column": 9
}
}
},
"name": "a"
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 1,
"raw": "1",
"range": [
22,
23
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
}
},
"consequent": [
{
"type": "BreakStatement",
"label": null,
"range": [
33,
39
],
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 14
}
}
}
],
"range": [
17,
39
],
"start": 17,
"end": 39,
"loc": {
"start": {
"line": 2,
@@ -79,14 +73,50 @@
"column": 14
}
},
"consequent": [
{
"type": "BreakStatement",
"start": 33,
"end": 39,
"loc": {
"start": {
"line": 3,
"column": 8
},
"end": {
"line": 3,
"column": 14
}
},
"label": null,
"leadingComments": null,
"trailingComments": null
}
],
"test": {
"type": "Literal",
"start": 22,
"end": 23,
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 2,
"column": 10
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
},
"trailingComments": [
{
"type": "CommentLine",
"value": "no default",
"range": [
44,
56
],
"start": 44,
"end": 56,
"loc": {
"start": {
"line": 4,
@@ -96,51 +126,24 @@
"line": 4,
"column": 16
}
}
},
"range": [
44,
56
]
}
]
}
],
"range": [
0,
58
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
}
],
"sourceType": "script",
"range": [
0,
58
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
]
},
"comments": [
{
"type": "CommentLine",
"value": "no default",
"range": [
44,
56
],
"start": 44,
"end": 56,
"loc": {
"start": {
"line": 4,
@@ -150,7 +153,11 @@
"line": 4,
"column": 16
}
}
},
"range": [
44,
56
]
}
]
}
}