Regenerate parser fixtures (#13882)

This commit is contained in:
Nicolò Ribaudo
2021-10-24 18:12:10 +02:00
committed by GitHub
parent e45d86c333
commit 62b2c5ebb9
858 changed files with 5521 additions and 10570 deletions

View File

@@ -40,18 +40,6 @@
"raw": "\"Two\""
},
"value": "Two",
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":31,"end":37,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":15}}
},
{
"type": "CommentLine",
"value": " Two",
"start":41,"end":47,"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":9}}
}
],
"trailingComments": [
{
"type": "CommentLine",
@@ -63,6 +51,18 @@
"value": " Four",
"start":67,"end":74,"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":9}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":31,"end":37,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":15}}
},
{
"type": "CommentLine",
"value": " Two",
"start":41,"end":47,"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":9}}
}
]
}
]
@@ -107,18 +107,6 @@
"raw": "\"Two\""
},
"value": "Two",
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":116,"end":122,"loc":{"start":{"line":9,"column":9},"end":{"line":9,"column":15}}
},
{
"type": "CommentLine",
"value": " Two",
"start":126,"end":132,"loc":{"start":{"line":10,"column":3},"end":{"line":10,"column":9}}
}
],
"trailingComments": [
{
"type": "CommentLine",
@@ -130,6 +118,18 @@
"value": " Four",
"start":153,"end":160,"loc":{"start":{"line":12,"column":2},"end":{"line":12,"column":9}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":116,"end":122,"loc":{"start":{"line":9,"column":9},"end":{"line":9,"column":15}}
},
{
"type": "CommentLine",
"value": " Two",
"start":126,"end":132,"loc":{"start":{"line":10,"column":3},"end":{"line":10,"column":9}}
}
]
}
]

View File

@@ -22,13 +22,6 @@
"type": "Identifier",
"start":22,"end":23,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":3},"identifierName":"x"},
"name": "x",
"leadingComments": [
{
"type": "CommentBlock",
"value": " One ",
"start":10,"end":19,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":11}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
@@ -40,6 +33,13 @@
"value": " Three ",
"start":39,"end":50,"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":13}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " One ",
"start":10,"end":19,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":11}}
}
]
}
],

View File

@@ -13,13 +13,6 @@
"expression": {
"type": "ArrowFunctionExpression",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"innerComments": [
{
"type": "CommentBlock",
"value": "1",
"start":1,"end":6,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":6}}
}
],
"id": null,
"generator": false,
"async": false,
@@ -28,7 +21,14 @@
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"x"},
"name": "x"
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": "1",
"start":1,"end":6,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":6}}
}
]
}
},
{
@@ -37,13 +37,6 @@
"expression": {
"type": "ArrowFunctionExpression",
"start":13,"end":50,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":37}},
"innerComments": [
{
"type": "CommentBlock",
"value": "4",
"start":33,"end":38,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":25}}
}
],
"id": null,
"generator": false,
"async": false,
@@ -51,13 +44,7 @@
{
"type": "Identifier",
"start":19,"end":20,"loc":{"start":{"line":3,"column":6},"end":{"line":3,"column":7},"identifierName":"x"},
"leadingComments": [
{
"type": "CommentBlock",
"value": "1",
"start":14,"end":19,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":6}}
}
],
"name": "x",
"trailingComments": [
{
"type": "CommentBlock",
@@ -70,22 +57,35 @@
"start":26,"end":31,"loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":18}}
}
],
"name": "x"
"leadingComments": [
{
"type": "CommentBlock",
"value": "1",
"start":14,"end":19,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":6}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":48,"end":50,"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":37}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": "5",
"start":42,"end":47,"loc":{"start":{"line":3,"column":29},"end":{"line":3,"column":34}}
}
],
"body": [],
"directives": []
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": "4",
"start":33,"end":38,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":25}}
}
]
}
}
],

View File

@@ -10,23 +10,18 @@
{
"type": "ExpressionStatement",
"start":8,"end":43,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":43}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":45,"end":52,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":7}}
}
],
"expression": {
"type": "ArrowFunctionExpression",
"start":8,"end":42,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":42}},
"id": null,
"generator": false,
"async": true,
"params": [],
"body": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"x"},
"name": "x"
},
"innerComments": [
{
"type": "CommentBlock",
@@ -43,31 +38,66 @@
"value": " 4 ",
"start":32,"end":39,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":39}}
}
],
"id": null,
"generator": false,
"async": true,
"params": [],
"body": {
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"x"},
"name": "x"
}
}
},
{
"type": "ExpressionStatement",
"start":53,"end":106,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":61}},
"leadingComments": [
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":45,"end":52,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":7}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
},
{
"type": "ExpressionStatement",
"start":53,"end":106,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":61}},
"expression": {
"type": "ArrowFunctionExpression",
"start":53,"end":106,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":61}},
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "Identifier",
"start":75,"end":76,"loc":{"start":{"line":3,"column":30},"end":{"line":3,"column":31},"identifierName":"x"},
"name": "x",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":76,"end":83,"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":38}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":68,"end":75,"loc":{"start":{"line":3,"column":23},"end":{"line":3,"column":30}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":104,"end":106,"loc":{"start":{"line":3,"column":59},"end":{"line":3,"column":61}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":96,"end":103,"loc":{"start":{"line":3,"column":51},"end":{"line":3,"column":58}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
@@ -79,45 +109,15 @@
"value": " 5 ",
"start":85,"end":92,"loc":{"start":{"line":3,"column":40},"end":{"line":3,"column":47}}
}
],
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "Identifier",
"start":75,"end":76,"loc":{"start":{"line":3,"column":30},"end":{"line":3,"column":31},"identifierName":"x"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":68,"end":75,"loc":{"start":{"line":3,"column":23},"end":{"line":3,"column":30}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":76,"end":83,"loc":{"start":{"line":3,"column":31},"end":{"line":3,"column":38}}
}
],
"name": "x"
}
],
"body": {
"type": "BlockStatement",
"start":104,"end":106,"loc":{"start":{"line":3,"column":59},"end":{"line":3,"column":61}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":96,"end":103,"loc":{"start":{"line":3,"column":51},"end":{"line":3,"column":58}}
}
],
"body": [],
"directives": []
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":45,"end":52,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":7}}
}
}
]
}
],
"directives": []

View File

@@ -10,37 +10,37 @@
{
"type": "ExpressionStatement",
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":24,"end":31,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":31}}
}
],
"expression": {
"type": "CallExpression",
"start":0,"end":23,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":23}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
],
"callee": {
"type": "Identifier",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5},"identifierName":"async"},
"name": "async",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":6,"end":13,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":13}}
}
],
"name": "async"
]
},
"arguments": []
}
"arguments": [],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":24,"end":31,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":31}}
}
]
}
],
"directives": []

View File

@@ -10,41 +10,15 @@
{
"type": "ExpressionStatement",
"start":7,"end":37,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":37}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":37,"end":44,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":44}}
}
],
"expression": {
"type": "DoExpression",
"start":7,"end":37,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":37}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":12,"end":19,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":19}}
}
],
"async": true,
"body": {
"type": "BlockStatement",
"start":28,"end":37,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":37}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":21,"end":28,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":28}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -52,10 +26,36 @@
"start":29,"end":36,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":36}}
}
],
"body": [],
"directives": []
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":21,"end":28,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":28}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":12,"end":19,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":19}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":37,"end":44,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":44}}
}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
}
],
"directives": []

View File

@@ -10,20 +10,6 @@
{
"type": "FunctionDeclaration",
"start":7,"end":35,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":35}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":12,"end":19,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":19}}
}
],
"id": {
"type": "Identifier",
"start":28,"end":29,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":29},"identifierName":"f"},
@@ -37,7 +23,21 @@
"start":33,"end":35,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":35}},
"body": [],
"directives": []
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":12,"end":19,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":19}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
}
],
"directives": []
@@ -54,4 +54,4 @@
"start":12,"end":19,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":19}}
}
]
}
}

View File

@@ -13,26 +13,26 @@
"expression": {
"type": "CallExpression",
"start":0,"end":21,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":21}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}}
}
],
"callee": {
"type": "Identifier",
"start":0,"end":3,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":3},"identifierName":"foo"},
"name": "foo",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":4,"end":11,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":11}}
}
],
"name": "foo"
]
},
"arguments": []
"arguments": [],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}}
}
]
}
}
],
@@ -50,4 +50,4 @@
"start":13,"end":20,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":20}}
}
]
}
}

View File

@@ -13,10 +13,6 @@
"expression": {
"type": "ClassExpression",
"start":1,"end":97,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":97}},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"id": null,
"superClass": null,
"body": {
@@ -26,36 +22,11 @@
{
"type": "ClassMethod",
"start":17,"end":95,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":95}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":21,"end":28,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":28}}
},
{
"type": "CommentBlock",
"value": " 5 ",
"start":48,"end":55,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":55}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":31,"end":38,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":38}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -63,7 +34,13 @@
"start":39,"end":46,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":46}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":31,"end":38,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":38}}
}
]
},
"computed": true,
"kind": "set",
@@ -74,13 +51,7 @@
{
"type": "Identifier",
"start":65,"end":66,"loc":{"start":{"line":1,"column":65},"end":{"line":1,"column":66},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":57,"end":64,"loc":{"start":{"line":1,"column":57},"end":{"line":1,"column":64}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -93,24 +64,53 @@
"start":76,"end":83,"loc":{"start":{"line":1,"column":76},"end":{"line":1,"column":83}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":57,"end":64,"loc":{"start":{"line":1,"column":57},"end":{"line":1,"column":64}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":93,"end":95,"loc":{"start":{"line":1,"column":93},"end":{"line":1,"column":95}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":85,"end":92,"loc":{"start":{"line":1,"column":85},"end":{"line":1,"column":92}}
}
],
"body": [],
"directives": []
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":21,"end":28,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":28}}
},
{
"type": "CommentBlock",
"value": " 5 ",
"start":48,"end":55,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":55}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16}}
}
]
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
},
@@ -120,10 +120,6 @@
"expression": {
"type": "ClassExpression",
"start":101,"end":178,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":78}},
"extra": {
"parenthesized": true,
"parenStart": 100
},
"id": null,
"superClass": null,
"body": {
@@ -133,13 +129,45 @@
{
"type": "ClassMethod",
"start":117,"end":176,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":76}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":109,"end":116,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":16}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":138,"end":139,"loc":{"start":{"line":2,"column":38},"end":{"line":2,"column":39},"identifierName":"f"},
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":139,"end":146,"loc":{"start":{"line":2,"column":39},"end":{"line":2,"column":46}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":131,"end":138,"loc":{"start":{"line":2,"column":31},"end":{"line":2,"column":38}}
}
]
},
"computed": true,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":174,"end":176,"loc":{"start":{"line":2,"column":74},"end":{"line":2,"column":76}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":166,"end":173,"loc":{"start":{"line":2,"column":66},"end":{"line":2,"column":73}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
@@ -157,47 +185,19 @@
"start":157,"end":164,"loc":{"start":{"line":2,"column":57},"end":{"line":2,"column":64}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":138,"end":139,"loc":{"start":{"line":2,"column":38},"end":{"line":2,"column":39},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":131,"end":138,"loc":{"start":{"line":2,"column":31},"end":{"line":2,"column":38}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":139,"end":146,"loc":{"start":{"line":2,"column":39},"end":{"line":2,"column":46}}
}
],
"name": "f"
},
"computed": true,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":174,"end":176,"loc":{"start":{"line":2,"column":74},"end":{"line":2,"column":76}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":166,"end":173,"loc":{"start":{"line":2,"column":66},"end":{"line":2,"column":73}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":109,"end":116,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":16}}
}
]
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 100
}
}
},
@@ -207,10 +207,6 @@
"expression": {
"type": "ClassExpression",
"start":182,"end":213,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":32}},
"extra": {
"parenthesized": true,
"parenStart": 181
},
"id": null,
"superClass": null,
"body": {
@@ -220,13 +216,6 @@
{
"type": "ClassMethod",
"start":190,"end":211,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":30}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":194,"end":201,"loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":20}}
}
],
"static": false,
"key": {
"type": "Identifier",
@@ -244,9 +233,20 @@
"start":209,"end":211,"loc":{"start":{"line":3,"column":28},"end":{"line":3,"column":30}},
"body": [],
"directives": []
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":194,"end":201,"loc":{"start":{"line":3,"column":13},"end":{"line":3,"column":20}}
}
]
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 181
}
}
}

View File

@@ -23,31 +23,11 @@
{
"type": "ClassMethod",
"start":18,"end":91,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":91}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":10,"end":17,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":17}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":24,"end":31,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":31}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":42,"end":43,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":43},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":34,"end":41,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":41}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -55,7 +35,13 @@
"start":44,"end":51,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":51}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":34,"end":41,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":41}}
}
]
},
"computed": false,
"kind": "method",
@@ -66,13 +52,7 @@
{
"type": "Identifier",
"start":61,"end":62,"loc":{"start":{"line":1,"column":61},"end":{"line":1,"column":62},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":53,"end":60,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":60}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -85,22 +65,42 @@
"start":72,"end":79,"loc":{"start":{"line":1,"column":72},"end":{"line":1,"column":79}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":53,"end":60,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":60}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":89,"end":91,"loc":{"start":{"line":1,"column":89},"end":{"line":1,"column":91}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":81,"end":88,"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":88}}
}
],
"body": [],
"directives": []
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":24,"end":31,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":31}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":10,"end":17,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":17}}
}
]
}
]
}
@@ -111,10 +111,6 @@
"expression": {
"type": "ClassExpression",
"start":95,"end":127,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":33}},
"extra": {
"parenthesized": true,
"parenStart": 94
},
"id": null,
"superClass": null,
"body": {
@@ -124,13 +120,6 @@
{
"type": "ClassMethod",
"start":103,"end":125,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":31}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":109,"end":116,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":22}}
}
],
"static": false,
"key": {
"type": "Identifier",
@@ -148,9 +137,20 @@
"start":123,"end":125,"loc":{"start":{"line":2,"column":29},"end":{"line":2,"column":31}},
"body": [],
"directives": []
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":109,"end":116,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":22}}
}
]
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 94
}
}
}

View File

@@ -13,47 +13,61 @@
"expression": {
"type": "ClassExpression",
"start":1,"end":99,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":99}},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":100,"end":108,"loc":{"start":{"line":1,"column":100},"end":{"line":1,"column":108}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start":15,"end":99,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":99}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14}}
}
],
"body": [
{
"type": "ClassMethod",
"start":25,"end":89,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":89}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":90,"end":97,"loc":{"start":{"line":1,"column":90},"end":{"line":1,"column":97}}
}
],
"static": true,
"kind": "method",
"key": {
"type": "Identifier",
"start":50,"end":51,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":51},"identifierName":"f"},
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":52,"end":59,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":59}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":42,"end":49,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":49}}
}
]
},
"computed": false,
"id": null,
"generator": true,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":78,"end":89,"loc":{"start":{"line":1,"column":78},"end":{"line":1,"column":89}},
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":80,"end":87,"loc":{"start":{"line":1,"column":80},"end":{"line":1,"column":87}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":70,"end":77,"loc":{"start":{"line":1,"column":70},"end":{"line":1,"column":77}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
@@ -66,55 +80,41 @@
"start":61,"end":68,"loc":{"start":{"line":1,"column":61},"end":{"line":1,"column":68}}
}
],
"static": true,
"kind": "method",
"key": {
"type": "Identifier",
"start":50,"end":51,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":51},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":42,"end":49,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":49}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":52,"end":59,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":59}}
}
],
"name": "f"
},
"computed": false,
"id": null,
"generator": true,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":78,"end":89,"loc":{"start":{"line":1,"column":78},"end":{"line":1,"column":89}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":70,"end":77,"loc":{"start":{"line":1,"column":70},"end":{"line":1,"column":77}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":80,"end":87,"loc":{"start":{"line":1,"column":80},"end":{"line":1,"column":87}}
}
],
"body": [],
"directives": []
}
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":90,"end":97,"loc":{"start":{"line":1,"column":90},"end":{"line":1,"column":97}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
]
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14}}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":100,"end":108,"loc":{"start":{"line":1,"column":100},"end":{"line":1,"column":108}}
}
]
}
}
],

View File

@@ -13,66 +13,27 @@
"expression": {
"type": "ClassExpression",
"start":9,"end":102,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":102}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 11 ",
"start":103,"end":111,"loc":{"start":{"line":1,"column":103},"end":{"line":1,"column":111}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start":23,"end":102,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":102}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
],
"body": [
{
"type": "ClassMethod",
"start":33,"end":91,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":91}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":92,"end":100,"loc":{"start":{"line":1,"column":92},"end":{"line":1,"column":100}}
}
],
"static": false,
"key": {
"type": "Identifier",
"start":33,"end":34,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":34},"identifierName":"f"},
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":35,"end":42,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":42}}
}
],
"name": "f"
]
},
"computed": false,
"kind": "method",
@@ -83,13 +44,7 @@
{
"type": "Identifier",
"start":52,"end":53,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":53},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":44,"end":51,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":51}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -102,19 +57,20 @@
"start":63,"end":70,"loc":{"start":{"line":1,"column":63},"end":{"line":1,"column":70}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":44,"end":51,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":51}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":80,"end":91,"loc":{"start":{"line":1,"column":80},"end":{"line":1,"column":91}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":72,"end":79,"loc":{"start":{"line":1,"column":72},"end":{"line":1,"column":79}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -122,12 +78,56 @@
"start":82,"end":89,"loc":{"start":{"line":1,"column":82},"end":{"line":1,"column":89}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":72,"end":79,"loc":{"start":{"line":1,"column":72},"end":{"line":1,"column":79}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":92,"end":100,"loc":{"start":{"line":1,"column":92},"end":{"line":1,"column":100}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
]
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 11 ",
"start":103,"end":111,"loc":{"start":{"line":1,"column":103},"end":{"line":1,"column":111}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
]
}
},
{
@@ -136,63 +136,31 @@
"expression": {
"type": "ClassExpression",
"start":115,"end":208,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":94}},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":209,"end":217,"loc":{"start":{"line":2,"column":95},"end":{"line":2,"column":103}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 114
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start":129,"end":208,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":94}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":121,"end":128,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":14}}
}
],
"body": [
{
"type": "ClassPrivateMethod",
"start":139,"end":198,"loc":{"start":{"line":2,"column":25},"end":{"line":2,"column":84}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":131,"end":138,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":24}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":199,"end":206,"loc":{"start":{"line":2,"column":85},"end":{"line":2,"column":92}}
}
],
"static": false,
"key": {
"type": "PrivateName",
"start":139,"end":141,"loc":{"start":{"line":2,"column":25},"end":{"line":2,"column":27}},
"id": {
"type": "Identifier",
"start":140,"end":141,"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":27},"identifierName":"f"},
"name": "f"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":142,"end":149,"loc":{"start":{"line":2,"column":28},"end":{"line":2,"column":35}}
}
],
"id": {
"type": "Identifier",
"start":140,"end":141,"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":27},"identifierName":"f"},
"name": "f"
}
]
},
"kind": "method",
"id": null,
@@ -202,13 +170,7 @@
{
"type": "Identifier",
"start":159,"end":160,"loc":{"start":{"line":2,"column":45},"end":{"line":2,"column":46},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":151,"end":158,"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":44}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -221,19 +183,20 @@
"start":170,"end":177,"loc":{"start":{"line":2,"column":56},"end":{"line":2,"column":63}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":151,"end":158,"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":44}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":187,"end":198,"loc":{"start":{"line":2,"column":73},"end":{"line":2,"column":84}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":179,"end":186,"loc":{"start":{"line":2,"column":65},"end":{"line":2,"column":72}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -241,12 +204,49 @@
"start":189,"end":196,"loc":{"start":{"line":2,"column":75},"end":{"line":2,"column":82}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":179,"end":186,"loc":{"start":{"line":2,"column":65},"end":{"line":2,"column":72}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":199,"end":206,"loc":{"start":{"line":2,"column":85},"end":{"line":2,"column":92}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":131,"end":138,"loc":{"start":{"line":2,"column":17},"end":{"line":2,"column":24}}
}
]
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":121,"end":128,"loc":{"start":{"line":2,"column":7},"end":{"line":2,"column":14}}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 114
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":209,"end":217,"loc":{"start":{"line":2,"column":95},"end":{"line":2,"column":103}}
}
]
}
}
],

View File

@@ -13,70 +13,31 @@
"expression": {
"type": "ClassExpression",
"start":9,"end":103,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":103}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 11 ",
"start":104,"end":112,"loc":{"start":{"line":1,"column":104},"end":{"line":1,"column":112}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start":23,"end":103,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":103}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
],
"body": [
{
"type": "ClassPrivateMethod",
"start":33,"end":92,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":92}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":93,"end":101,"loc":{"start":{"line":1,"column":93},"end":{"line":1,"column":101}}
}
],
"static": false,
"key": {
"type": "PrivateName",
"start":33,"end":35,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":35}},
"id": {
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"f"},
"name": "f"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":36,"end":43,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":43}}
}
],
"id": {
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"f"},
"name": "f"
}
]
},
"kind": "method",
"id": null,
@@ -86,13 +47,7 @@
{
"type": "Identifier",
"start":53,"end":54,"loc":{"start":{"line":1,"column":53},"end":{"line":1,"column":54},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":45,"end":52,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":52}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -105,19 +60,20 @@
"start":64,"end":71,"loc":{"start":{"line":1,"column":64},"end":{"line":1,"column":71}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":45,"end":52,"loc":{"start":{"line":1,"column":45},"end":{"line":1,"column":52}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":81,"end":92,"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":92}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":73,"end":80,"loc":{"start":{"line":1,"column":73},"end":{"line":1,"column":80}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -125,12 +81,56 @@
"start":83,"end":90,"loc":{"start":{"line":1,"column":83},"end":{"line":1,"column":90}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":73,"end":80,"loc":{"start":{"line":1,"column":73},"end":{"line":1,"column":80}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":93,"end":101,"loc":{"start":{"line":1,"column":93},"end":{"line":1,"column":101}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
]
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 11 ",
"start":104,"end":112,"loc":{"start":{"line":1,"column":104},"end":{"line":1,"column":112}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
]
}
}
],

View File

@@ -13,47 +13,16 @@
"expression": {
"type": "ClassExpression",
"start":1,"end":59,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":59}},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":60,"end":67,"loc":{"start":{"line":1,"column":60},"end":{"line":1,"column":67}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"id": null,
"superClass": null,
"body": {
"type": "ClassBody",
"start":15,"end":59,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":59}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14}}
}
],
"body": [
{
"type": "StaticBlock",
"start":25,"end":49,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":49}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":50,"end":57,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":57}}
}
],
"body": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -66,10 +35,41 @@
"start":41,"end":48,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":48}}
}
],
"body": []
"trailingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":50,"end":57,"loc":{"start":{"line":1,"column":50},"end":{"line":1,"column":57}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
]
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14}}
}
]
}
},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":60,"end":67,"loc":{"start":{"line":1,"column":60},"end":{"line":1,"column":67}}
}
]
}
}
],

View File

@@ -23,19 +23,19 @@
"value": 1
}
},
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " Two ",
"start":13,"end":22,"loc":{"start":{"line":4,"column":0},"end":{"line":4,"column":9}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " One",
"start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}
}
]
},
{

View File

@@ -11,13 +11,22 @@
{
"type": "Directive",
"start":7,"end":27,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":27}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"value": {
"type": "DirectiveLiteral",
"start":7,"end":19,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":19}},
"extra": {
"rawValue": "use strict",
"raw": "\"use strict\""
},
"value": "use strict",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":19,"end":26,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":26}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
@@ -25,22 +34,13 @@
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}}
}
],
"value": {
"type": "DirectiveLiteral",
"start":7,"end":19,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":19}},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":19,"end":26,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":26}}
}
],
"extra": {
"rawValue": "use strict",
"raw": "\"use strict\""
},
"value": "use strict"
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
}
]
},

View File

@@ -10,30 +10,10 @@
{
"type": "FunctionDeclaration",
"start":8,"end":83,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":83}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":84,"end":91,"loc":{"start":{"line":1,"column":84},"end":{"line":1,"column":91}}
}
],
"id": {
"type": "Identifier",
"start":25,"end":26,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":26},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -41,7 +21,13 @@
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
]
},
"generator": false,
"async": false,
@@ -49,13 +35,7 @@
{
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":36,"end":43,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":43}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -68,19 +48,20 @@
"start":55,"end":62,"loc":{"start":{"line":1,"column":55},"end":{"line":1,"column":62}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":36,"end":43,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":43}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":72,"end":83,"loc":{"start":{"line":1,"column":72},"end":{"line":1,"column":83}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":64,"end":71,"loc":{"start":{"line":1,"column":64},"end":{"line":1,"column":71}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -88,51 +69,39 @@
"start":74,"end":81,"loc":{"start":{"line":1,"column":74},"end":{"line":1,"column":81}}
}
],
"body": [],
"directives": []
}
},
{
"type": "ExpressionStatement",
"start":92,"end":186,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":94}},
"leadingComments": [
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":64,"end":71,"loc":{"start":{"line":1,"column":64},"end":{"line":1,"column":71}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":84,"end":91,"loc":{"start":{"line":1,"column":84},"end":{"line":1,"column":91}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
},
{
"type": "ExpressionStatement",
"start":92,"end":186,"loc":{"start":{"line":2,"column":0},"end":{"line":2,"column":94}},
"expression": {
"type": "FunctionExpression",
"start":101,"end":176,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":84}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":93,"end":100,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":8}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":177,"end":184,"loc":{"start":{"line":2,"column":85},"end":{"line":2,"column":92}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 92
},
"id": {
"type": "Identifier",
"start":118,"end":119,"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":27},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":110,"end":117,"loc":{"start":{"line":2,"column":18},"end":{"line":2,"column":25}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -140,7 +109,13 @@
"start":120,"end":127,"loc":{"start":{"line":2,"column":28},"end":{"line":2,"column":35}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":110,"end":117,"loc":{"start":{"line":2,"column":18},"end":{"line":2,"column":25}}
}
]
},
"generator": false,
"async": false,
@@ -148,13 +123,7 @@
{
"type": "Identifier",
"start":137,"end":138,"loc":{"start":{"line":2,"column":45},"end":{"line":2,"column":46},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":129,"end":136,"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":44}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -167,19 +136,20 @@
"start":148,"end":155,"loc":{"start":{"line":2,"column":56},"end":{"line":2,"column":63}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":129,"end":136,"loc":{"start":{"line":2,"column":37},"end":{"line":2,"column":44}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":165,"end":176,"loc":{"start":{"line":2,"column":73},"end":{"line":2,"column":84}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":157,"end":164,"loc":{"start":{"line":2,"column":65},"end":{"line":2,"column":72}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -187,10 +157,40 @@
"start":167,"end":174,"loc":{"start":{"line":2,"column":75},"end":{"line":2,"column":82}}
}
],
"body": [],
"directives": []
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":157,"end":164,"loc":{"start":{"line":2,"column":65},"end":{"line":2,"column":72}}
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 92
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":177,"end":184,"loc":{"start":{"line":2,"column":85},"end":{"line":2,"column":92}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":93,"end":100,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":8}}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":84,"end":91,"loc":{"start":{"line":1,"column":84},"end":{"line":1,"column":91}}
}
}
]
}
],
"directives": []

View File

@@ -13,44 +13,15 @@
"expression": {
"type": "ObjectExpression",
"start":1,"end":91,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":91}},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"properties": [
{
"type": "ObjectMethod",
"start":11,"end":89,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":89}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":3,"end":10,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":10}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
},
{
"type": "CommentBlock",
"value": " 5 ",
"start":42,"end":49,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":49}}
}
],
"method": false,
"key": {
"type": "Identifier",
"start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -58,7 +29,13 @@
"start":33,"end":40,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":40}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":25,"end":32,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":32}}
}
]
},
"computed": true,
"kind": "set",
@@ -69,13 +46,7 @@
{
"type": "Identifier",
"start":59,"end":60,"loc":{"start":{"line":1,"column":59},"end":{"line":1,"column":60},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":51,"end":58,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":58}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -88,24 +59,53 @@
"start":70,"end":77,"loc":{"start":{"line":1,"column":70},"end":{"line":1,"column":77}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":51,"end":58,"loc":{"start":{"line":1,"column":51},"end":{"line":1,"column":58}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":87,"end":89,"loc":{"start":{"line":1,"column":87},"end":{"line":1,"column":89}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":79,"end":86,"loc":{"start":{"line":1,"column":79},"end":{"line":1,"column":86}}
}
],
"body": [],
"directives": []
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":15,"end":22,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":22}}
},
{
"type": "CommentBlock",
"value": " 5 ",
"start":42,"end":49,"loc":{"start":{"line":1,"column":42},"end":{"line":1,"column":49}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":3,"end":10,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":10}}
}
]
}
]
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
},
{
@@ -114,21 +114,49 @@
"expression": {
"type": "ObjectExpression",
"start":95,"end":166,"loc":{"start":{"line":2,"column":1},"end":{"line":2,"column":72}},
"extra": {
"parenthesized": true,
"parenStart": 94
},
"properties": [
{
"type": "ObjectMethod",
"start":105,"end":164,"loc":{"start":{"line":2,"column":11},"end":{"line":2,"column":70}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":97,"end":104,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":10}}
}
],
"method": false,
"key": {
"type": "Identifier",
"start":126,"end":127,"loc":{"start":{"line":2,"column":32},"end":{"line":2,"column":33},"identifierName":"f"},
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":127,"end":134,"loc":{"start":{"line":2,"column":33},"end":{"line":2,"column":40}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":119,"end":126,"loc":{"start":{"line":2,"column":25},"end":{"line":2,"column":32}}
}
]
},
"computed": true,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":162,"end":164,"loc":{"start":{"line":2,"column":68},"end":{"line":2,"column":70}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":154,"end":161,"loc":{"start":{"line":2,"column":60},"end":{"line":2,"column":67}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
@@ -146,47 +174,19 @@
"start":145,"end":152,"loc":{"start":{"line":2,"column":51},"end":{"line":2,"column":58}}
}
],
"method": false,
"key": {
"type": "Identifier",
"start":126,"end":127,"loc":{"start":{"line":2,"column":32},"end":{"line":2,"column":33},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":119,"end":126,"loc":{"start":{"line":2,"column":25},"end":{"line":2,"column":32}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":127,"end":134,"loc":{"start":{"line":2,"column":33},"end":{"line":2,"column":40}}
}
],
"name": "f"
},
"computed": true,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":162,"end":164,"loc":{"start":{"line":2,"column":68},"end":{"line":2,"column":70}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":154,"end":161,"loc":{"start":{"line":2,"column":60},"end":{"line":2,"column":67}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":97,"end":104,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":10}}
}
]
}
]
],
"extra": {
"parenthesized": true,
"parenStart": 94
}
}
},
{
@@ -195,21 +195,10 @@
"expression": {
"type": "ObjectExpression",
"start":170,"end":195,"loc":{"start":{"line":3,"column":1},"end":{"line":3,"column":26}},
"extra": {
"parenthesized": true,
"parenStart": 169
},
"properties": [
{
"type": "ObjectMethod",
"start":172,"end":193,"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":24}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":176,"end":183,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":14}}
}
],
"method": false,
"key": {
"type": "Identifier",
@@ -227,9 +216,20 @@
"start":191,"end":193,"loc":{"start":{"line":3,"column":22},"end":{"line":3,"column":24}},
"body": [],
"directives": []
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":176,"end":183,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":14}}
}
]
}
]
],
"extra": {
"parenthesized": true,
"parenStart": 169
}
}
}
],

View File

@@ -34,13 +34,9 @@
"start":22,"end":23,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":3},"identifierName":"x"},
"name": "x"
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " One ",
"start":10,"end":19,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":11}}
}
],
"extra": {
"shorthand": true
},
"trailingComments": [
{
"type": "CommentBlock",
@@ -53,9 +49,13 @@
"start":39,"end":50,"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":13}}
}
],
"extra": {
"shorthand": true
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " One ",
"start":10,"end":19,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":11}}
}
]
}
],
"extra": {

View File

@@ -16,39 +16,15 @@
"callee": {
"type": "ObjectExpression",
"start":1,"end":86,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":86}},
"extra": {
"parenthesized": true,
"parenStart": 0
},
"properties": [
{
"type": "ObjectMethod",
"start":11,"end":84,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":84}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":3,"end":10,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":10}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
],
"method": true,
"key": {
"type": "Identifier",
"start":35,"end":36,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":36},"identifierName":"f"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}}
}
],
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
@@ -56,7 +32,13 @@
"start":37,"end":44,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":44}}
}
],
"name": "f"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":27,"end":34,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":34}}
}
]
},
"computed": false,
"kind": "method",
@@ -67,13 +49,7 @@
{
"type": "Identifier",
"start":54,"end":55,"loc":{"start":{"line":1,"column":54},"end":{"line":1,"column":55},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":46,"end":53,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":53}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -86,24 +62,48 @@
"start":65,"end":72,"loc":{"start":{"line":1,"column":65},"end":{"line":1,"column":72}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":46,"end":53,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":53}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":82,"end":84,"loc":{"start":{"line":1,"column":82},"end":{"line":1,"column":84}},
"body": [],
"directives": [],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 8 ",
"start":74,"end":81,"loc":{"start":{"line":1,"column":74},"end":{"line":1,"column":81}}
}
],
"body": [],
"directives": []
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":17,"end":24,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":24}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":3,"end":10,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":10}}
}
]
}
]
],
"extra": {
"parenthesized": true,
"parenStart": 0
}
},
"arguments": [
{
@@ -113,13 +113,6 @@
{
"type": "ObjectMethod",
"start":91,"end":113,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":25}},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":97,"end":104,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":16}}
}
],
"method": true,
"key": {
"type": "Identifier",
@@ -137,7 +130,14 @@
"start":111,"end":113,"loc":{"start":{"line":2,"column":23},"end":{"line":2,"column":25}},
"body": [],
"directives": []
}
},
"innerComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":97,"end":104,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":16}}
}
]
}
]
}

View File

@@ -13,54 +13,22 @@
"expression": {
"type": "ObjectExpression",
"start":9,"end":87,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":87}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":88,"end":96,"loc":{"start":{"line":1,"column":88},"end":{"line":1,"column":96}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"properties": [
{
"type": "ObjectMethod",
"start":19,"end":77,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":77}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":11,"end":18,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":18}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":78,"end":85,"loc":{"start":{"line":1,"column":78},"end":{"line":1,"column":85}}
}
],
"method": true,
"key": {
"type": "Identifier",
"start":19,"end":20,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":20},"identifierName":"f"},
"name": "f",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 3 ",
"start":21,"end":28,"loc":{"start":{"line":1,"column":21},"end":{"line":1,"column":28}}
}
],
"name": "f"
]
},
"computed": false,
"kind": "method",
@@ -71,13 +39,7 @@
{
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"a"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":30,"end":37,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":37}}
}
],
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
@@ -90,19 +52,20 @@
"start":49,"end":56,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":56}}
}
],
"name": "a"
"leadingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":30,"end":37,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":37}}
}
]
}
],
"body": {
"type": "BlockStatement",
"start":66,"end":77,"loc":{"start":{"line":1,"column":66},"end":{"line":1,"column":77}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":58,"end":65,"loc":{"start":{"line":1,"column":58},"end":{"line":1,"column":65}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -110,9 +73,46 @@
"start":68,"end":75,"loc":{"start":{"line":1,"column":68},"end":{"line":1,"column":75}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": " 7 ",
"start":58,"end":65,"loc":{"start":{"line":1,"column":58},"end":{"line":1,"column":65}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":78,"end":85,"loc":{"start":{"line":1,"column":78},"end":{"line":1,"column":85}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":11,"end":18,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":18}}
}
]
}
],
"extra": {
"parenthesized": true,
"parenStart": 0
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 10 ",
"start":88,"end":96,"loc":{"start":{"line":1,"column":88},"end":{"line":1,"column":96}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":1,"end":8,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":8}}
}
]
}

View File

@@ -92,19 +92,19 @@
},
"value": "3"
},
"leadingComments": [
{
"type": "CommentLine",
"value": " comment 2",
"start":45,"end":57,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":22}}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " comment 3",
"start":68,"end":80,"loc":{"start":{"line":4,"column":10},"end":{"line":4,"column":22}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " comment 2",
"start":45,"end":57,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":22}}
}
]
}
],

View File

@@ -10,35 +10,46 @@
{
"type": "ExpressionStatement",
"start":8,"end":76,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":76}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":77,"end":84,"loc":{"start":{"line":1,"column":77},"end":{"line":1,"column":84}}
}
],
"expression": {
"type": "SequenceExpression",
"start":27,"end":47,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":47}},
"leadingComments": [
"expressions": [
{
"type": "CommentBlock",
"value": " 2 ",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16}}
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28},"identifierName":"a"},
"name": "a",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":29,"end":36,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":36}}
}
]
},
{
"type": "CommentBlock",
"value": " 3 ",
"start":19,"end":26,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":26}}
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47},"identifierName":"b"},
"name": "b",
"trailingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":48,"end":55,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":55}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":38,"end":45,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":45}}
}
]
}
],
"extra": {
"parenthesized": true,
"parenStart": 8
},
"trailingComments": [
{
"type": "CommentBlock",
@@ -51,44 +62,33 @@
"start":68,"end":75,"loc":{"start":{"line":1,"column":68},"end":{"line":1,"column":75}}
}
],
"extra": {
"parenthesized": true,
"parenStart": 8
},
"expressions": [
"leadingComments": [
{
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28},"identifierName":"a"},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 4 ",
"start":29,"end":36,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":36}}
}
],
"name": "a"
"type": "CommentBlock",
"value": " 2 ",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16}}
},
{
"type": "Identifier",
"start":46,"end":47,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":47},"identifierName":"b"},
"leadingComments": [
{
"type": "CommentBlock",
"value": " 5 ",
"start":38,"end":45,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":45}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " 6 ",
"start":48,"end":55,"loc":{"start":{"line":1,"column":48},"end":{"line":1,"column":55}}
}
],
"name": "b"
"type": "CommentBlock",
"value": " 3 ",
"start":19,"end":26,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":26}}
}
]
}
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " 9 ",
"start":77,"end":84,"loc":{"start":{"line":1,"column":77},"end":{"line":1,"column":84}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " 1 ",
"start":0,"end":7,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}}
}
]
}
],
"directives": []
@@ -140,4 +140,4 @@
"start":77,"end":84,"loc":{"start":{"line":1,"column":77},"end":{"line":1,"column":84}}
}
]
}
}

View File

@@ -35,19 +35,19 @@
},
"arguments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"start":47,"end":58,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":15}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
]
}
],

View File

@@ -25,19 +25,19 @@
{
"type": "DebuggerStatement",
"start":36,"end":45,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":13}},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"start":50,"end":61,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":15}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
]
}
],

View File

@@ -26,19 +26,19 @@
"type": "ReturnStatement",
"start":36,"end":43,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":11}},
"argument": null,
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"start":48,"end":59,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":15}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
]
}
],

View File

@@ -34,19 +34,19 @@
},
"value": 55
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"start":50,"end":61,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":15}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"start":19,"end":31,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":16}}
}
]
}
],

View File

@@ -36,19 +36,19 @@
"body": [],
"directives": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " infinite ",
"start":15,"end":29,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":29}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " bar ",
"start":47,"end":56,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":56}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": " infinite ",
"start":15,"end":29,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":29}}
}
]
},
{

View File

@@ -10,21 +10,183 @@
{
"type": "LabeledStatement",
"start":7,"end":233,"loc":{"start":{"line":1,"column":7},"end":{"line":6,"column":3}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "-1",
"start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}
}
],
"body": {
"type": "SwitchStatement",
"start":25,"end":233,"loc":{"start":{"line":1,"column":25},"end":{"line":6,"column":3}},
"leadingComments": [
"discriminant": {
"type": "BooleanLiteral",
"start":46,"end":51,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":51}},
"value": false,
"trailingComments": [
{
"type": "CommentBlock",
"value": "4",
"start":52,"end":57,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":57}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":40,"end":45,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":45}}
}
]
},
"cases": [
{
"type": "CommentBlock",
"value": "1",
"start":19,"end":24,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":24}}
"type": "SwitchCase",
"start":78,"end":138,"loc":{"start":{"line":2,"column":10},"end":{"line":3,"column":29}},
"consequent": [
{
"type": "BreakStatement",
"start":113,"end":138,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":29}},
"label": {
"type": "Identifier",
"start":126,"end":129,"loc":{"start":{"line":3,"column":17},"end":{"line":3,"column":20},"identifierName":"foo"},
"name": "foo",
"trailingComments": [
{
"type": "CommentBlock",
"value": "11",
"start":130,"end":136,"loc":{"start":{"line":3,"column":21},"end":{"line":3,"column":27}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "10",
"start":119,"end":125,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":16}}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "9",
"start":103,"end":108,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":40}}
}
]
}
],
"test": {
"type": "BooleanLiteral",
"start":89,"end":94,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":26}},
"value": false,
"trailingComments": [
{
"type": "CommentBlock",
"value": "8",
"start":95,"end":100,"loc":{"start":{"line":2,"column":27},"end":{"line":2,"column":32}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "7",
"start":83,"end":88,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":20}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "12",
"start":143,"end":149,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "6",
"start":72,"end":77,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":9}}
}
]
},
{
"type": "SwitchCase",
"start":150,"end":166,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":27}},
"consequent": [],
"test": null,
"innerComments": [
{
"type": "CommentBlock",
"value": "13",
"start":158,"end":164,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":25}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":167,"end":173,"loc":{"start":{"line":4,"column":28},"end":{"line":4,"column":34}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "12",
"start":143,"end":149,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}}
}
]
},
{
"type": "SwitchCase",
"start":178,"end":222,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":48}},
"consequent": [
{
"type": "BlockStatement",
"start":212,"end":222,"loc":{"start":{"line":5,"column":38},"end":{"line":5,"column":48}},
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
"value": "18",
"start":214,"end":220,"loc":{"start":{"line":5,"column":40},"end":{"line":5,"column":46}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "17",
"start":205,"end":211,"loc":{"start":{"line":5,"column":31},"end":{"line":5,"column":37}}
}
]
}
],
"test": {
"type": "BooleanLiteral",
"start":190,"end":195,"loc":{"start":{"line":5,"column":16},"end":{"line":5,"column":21}},
"value": false,
"trailingComments": [
{
"type": "CommentBlock",
"value": "16",
"start":196,"end":202,"loc":{"start":{"line":5,"column":22},"end":{"line":5,"column":28}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "15",
"start":183,"end":189,"loc":{"start":{"line":5,"column":9},"end":{"line":5,"column":15}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "19",
"start":223,"end":229,"loc":{"start":{"line":5,"column":49},"end":{"line":5,"column":55}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":167,"end":173,"loc":{"start":{"line":4,"column":28},"end":{"line":4,"column":34}}
}
]
}
],
"innerComments": [
@@ -39,195 +201,33 @@
"start":60,"end":65,"loc":{"start":{"line":1,"column":60},"end":{"line":1,"column":65}}
}
],
"discriminant": {
"type": "BooleanLiteral",
"start":46,"end":51,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":51}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":40,"end":45,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":45}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "4",
"start":52,"end":57,"loc":{"start":{"line":1,"column":52},"end":{"line":1,"column":57}}
}
],
"value": false
},
"cases": [
"leadingComments": [
{
"type": "SwitchCase",
"start":78,"end":138,"loc":{"start":{"line":2,"column":10},"end":{"line":3,"column":29}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "6",
"start":72,"end":77,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":9}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "12",
"start":143,"end":149,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}}
}
],
"consequent": [
{
"type": "BreakStatement",
"start":113,"end":138,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":29}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "9",
"start":103,"end":108,"loc":{"start":{"line":2,"column":35},"end":{"line":2,"column":40}}
}
],
"label": {
"type": "Identifier",
"start":126,"end":129,"loc":{"start":{"line":3,"column":17},"end":{"line":3,"column":20},"identifierName":"foo"},
"leadingComments": [
{
"type": "CommentBlock",
"value": "10",
"start":119,"end":125,"loc":{"start":{"line":3,"column":10},"end":{"line":3,"column":16}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "11",
"start":130,"end":136,"loc":{"start":{"line":3,"column":21},"end":{"line":3,"column":27}}
}
],
"name": "foo"
}
}
],
"test": {
"type": "BooleanLiteral",
"start":89,"end":94,"loc":{"start":{"line":2,"column":21},"end":{"line":2,"column":26}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "7",
"start":83,"end":88,"loc":{"start":{"line":2,"column":15},"end":{"line":2,"column":20}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "8",
"start":95,"end":100,"loc":{"start":{"line":2,"column":27},"end":{"line":2,"column":32}}
}
],
"value": false
}
},
{
"type": "SwitchCase",
"start":150,"end":166,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":27}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "12",
"start":143,"end":149,"loc":{"start":{"line":4,"column":4},"end":{"line":4,"column":10}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":167,"end":173,"loc":{"start":{"line":4,"column":28},"end":{"line":4,"column":34}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": "13",
"start":158,"end":164,"loc":{"start":{"line":4,"column":19},"end":{"line":4,"column":25}}
}
],
"consequent": [],
"test": null
},
{
"type": "SwitchCase",
"start":178,"end":222,"loc":{"start":{"line":5,"column":4},"end":{"line":5,"column":48}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":167,"end":173,"loc":{"start":{"line":4,"column":28},"end":{"line":4,"column":34}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "19",
"start":223,"end":229,"loc":{"start":{"line":5,"column":49},"end":{"line":5,"column":55}}
}
],
"consequent": [
{
"type": "BlockStatement",
"start":212,"end":222,"loc":{"start":{"line":5,"column":38},"end":{"line":5,"column":48}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "17",
"start":205,"end":211,"loc":{"start":{"line":5,"column":31},"end":{"line":5,"column":37}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": "18",
"start":214,"end":220,"loc":{"start":{"line":5,"column":40},"end":{"line":5,"column":46}}
}
],
"body": [],
"directives": []
}
],
"test": {
"type": "BooleanLiteral",
"start":190,"end":195,"loc":{"start":{"line":5,"column":16},"end":{"line":5,"column":21}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "15",
"start":183,"end":189,"loc":{"start":{"line":5,"column":9},"end":{"line":5,"column":15}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "16",
"start":196,"end":202,"loc":{"start":{"line":5,"column":22},"end":{"line":5,"column":28}}
}
],
"value": false
}
"type": "CommentBlock",
"value": "1",
"start":19,"end":24,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":24}}
}
]
},
"label": {
"type": "Identifier",
"start":7,"end":10,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":10},"identifierName":"foo"},
"name": "foo",
"trailingComments": [
{
"type": "CommentBlock",
"value": "0",
"start":11,"end":16,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":16}}
}
],
"name": "foo"
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "-1",
"start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6}}
}
]
}
],
"directives": []
@@ -339,4 +339,4 @@
"start":223,"end":229,"loc":{"start":{"line":5,"column":49},"end":{"line":5,"column":55}}
}
]
}
}

View File

@@ -50,19 +50,19 @@
},
"value": 1
},
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"start":46,"end":52,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":14}}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " falls through",
"start":81,"end":97,"loc":{"start":{"line":5,"column":12},"end":{"line":5,"column":28}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"start":46,"end":52,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":14}}
}
]
},
{

View File

@@ -29,19 +29,19 @@
},
"value": 1
},
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"start":18,"end":24,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":10}}
}
],
"trailingComments": [
{
"type": "CommentLine",
"value": " falls through",
"start":45,"end":61,"loc":{"start":{"line":4,"column":8},"end":{"line":4,"column":24}}
}
],
"leadingComments": [
{
"type": "CommentLine",
"value": " foo",
"start":18,"end":24,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":10}}
}
]
},
{

View File

@@ -34,12 +34,12 @@
"start":27,"end":34,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":11},"identifierName":"console"},
"name": "console"
},
"computed": false,
"property": {
"type": "Identifier",
"start":35,"end":38,"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":15},"identifierName":"log"},
"name": "log"
},
"computed": false
}
},
"arguments": [
{

View File

@@ -34,12 +34,12 @@
"start":26,"end":33,"loc":{"start":{"line":3,"column":4},"end":{"line":3,"column":11},"identifierName":"console"},
"name": "console"
},
"computed": false,
"property": {
"type": "Identifier",
"start":34,"end":37,"loc":{"start":{"line":3,"column":12},"end":{"line":3,"column":15},"identifierName":"log"},
"name": "log"
},
"computed": false
}
},
"arguments": [
{

View File

@@ -10,13 +10,12 @@
{
"type": "SwitchStatement",
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
"trailingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":26,"end":31,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":31}}
}
],
"discriminant": {
"type": "Identifier",
"start":8,"end":9,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":9},"identifierName":"c"},
"name": "c"
},
"cases": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -29,12 +28,13 @@
"start":18,"end":23,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":23}}
}
],
"discriminant": {
"type": "Identifier",
"start":8,"end":9,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":9},"identifierName":"c"},
"name": "c"
},
"cases": []
"trailingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":26,"end":31,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":31}}
}
]
}
],
"directives": []

View File

@@ -22,12 +22,12 @@
"start":0,"end":6,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":6},"identifierName":"module"},
"name": "module"
},
"computed": false,
"property": {
"type": "Identifier",
"start":7,"end":14,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":14},"identifierName":"exports"},
"name": "exports"
},
"computed": false
}
},
"right": {
"type": "FunctionExpression",
@@ -78,12 +78,12 @@
"start":86,"end":90,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":20},"identifierName":"node"},
"name": "node"
},
"computed": false,
"property": {
"type": "Identifier",
"start":91,"end":95,"loc":{"start":{"line":4,"column":21},"end":{"line":4,"column":25},"identifierName":"type"},
"name": "type"
},
"computed": false
}
},
"cases": [
{
@@ -113,13 +113,14 @@
"start":172,"end":176,"loc":{"start":{"line":6,"column":34},"end":{"line":6,"column":38},"identifierName":"node"},
"name": "node"
},
"computed": false,
"property": {
"type": "Identifier",
"start":177,"end":188,"loc":{"start":{"line":6,"column":39},"end":{"line":6,"column":50},"identifierName":"expressions"},
"name": "expressions"
},
"computed": false
}
},
"computed": true,
"property": {
"type": "BinaryExpression",
"start":189,"end":216,"loc":{"start":{"line":6,"column":51},"end":{"line":6,"column":78}},
@@ -134,19 +135,19 @@
"start":189,"end":193,"loc":{"start":{"line":6,"column":51},"end":{"line":6,"column":55},"identifierName":"node"},
"name": "node"
},
"computed": false,
"property": {
"type": "Identifier",
"start":194,"end":205,"loc":{"start":{"line":6,"column":56},"end":{"line":6,"column":67},"identifierName":"expressions"},
"name": "expressions"
},
"computed": false
}
},
"computed": false,
"property": {
"type": "Identifier",
"start":206,"end":212,"loc":{"start":{"line":6,"column":68},"end":{"line":6,"column":74},"identifierName":"length"},
"name": "length"
},
"computed": false
}
},
"operator": "-",
"right": {
@@ -158,8 +159,7 @@
},
"value": 1
}
},
"computed": true
}
}
]
}

View File

@@ -10,65 +10,21 @@
{
"type": "TryStatement",
"start":6,"end":146,"loc":{"start":{"line":1,"column":6},"end":{"line":4,"column":34}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "1",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "16",
"start":147,"end":153,"loc":{"start":{"line":4,"column":35},"end":{"line":4,"column":41}}
}
],
"block": {
"type": "BlockStatement",
"start":16,"end":58,"loc":{"start":{"line":1,"column":16},"end":{"line":3,"column":6}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "2",
"start":10,"end":15,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":15}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "7",
"start":59,"end":64,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":12}}
}
],
"body": [
{
"type": "ThrowStatement",
"start":28,"end":51,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":33}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":22,"end":27,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":9}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "6",
"start":52,"end":57,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":5}}
}
],
"argument": {
"type": "StringLiteral",
"start":40,"end":44,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":26}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "4",
"start":34,"end":39,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":21}}
}
],
"extra": {
"rawValue": "no",
"raw": "\"no\""
},
"value": "no",
"trailingComments": [
{
"type": "CommentBlock",
@@ -76,26 +32,95 @@
"start":45,"end":50,"loc":{"start":{"line":2,"column":27},"end":{"line":2,"column":32}}
}
],
"extra": {
"rawValue": "no",
"raw": "\"no\""
},
"value": "no"
}
"leadingComments": [
{
"type": "CommentBlock",
"value": "4",
"start":34,"end":39,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":21}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "6",
"start":52,"end":57,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":5}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "3",
"start":22,"end":27,"loc":{"start":{"line":2,"column":4},"end":{"line":2,"column":9}}
}
]
}
],
"directives": []
},
"handler": {
"type": "CatchClause",
"start":65,"end":113,"loc":{"start":{"line":3,"column":13},"end":{"line":4,"column":1}},
"leadingComments": [
"directives": [],
"trailingComments": [
{
"type": "CommentBlock",
"value": "7",
"start":59,"end":64,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":12}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "2",
"start":10,"end":15,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":15}}
}
]
},
"handler": {
"type": "CatchClause",
"start":65,"end":113,"loc":{"start":{"line":3,"column":13},"end":{"line":4,"column":1}},
"param": {
"type": "Identifier",
"start":85,"end":86,"loc":{"start":{"line":3,"column":33},"end":{"line":3,"column":34},"identifierName":"e"},
"name": "e",
"trailingComments": [
{
"type": "CommentBlock",
"value": "10",
"start":87,"end":93,"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":41}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "9",
"start":79,"end":84,"loc":{"start":{"line":3,"column":27},"end":{"line":3,"column":32}}
}
]
},
"body": {
"type": "BlockStatement",
"start":103,"end":113,"loc":{"start":{"line":3,"column":51},"end":{"line":4,"column":1}},
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
"value": "12",
"start":105,"end":111,"loc":{"start":{"line":3,"column":53},"end":{"line":3,"column":59}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "11",
"start":96,"end":102,"loc":{"start":{"line":3,"column":44},"end":{"line":3,"column":50}}
}
]
},
"innerComments": [
{
"type": "CommentBlock",
"value": "8",
"start":71,"end":76,"loc":{"start":{"line":3,"column":19},"end":{"line":3,"column":24}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
@@ -103,63 +128,19 @@
"start":114,"end":120,"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":8}}
}
],
"innerComments": [
"leadingComments": [
{
"type": "CommentBlock",
"value": "8",
"start":71,"end":76,"loc":{"start":{"line":3,"column":19},"end":{"line":3,"column":24}}
"value": "7",
"start":59,"end":64,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":12}}
}
],
"param": {
"type": "Identifier",
"start":85,"end":86,"loc":{"start":{"line":3,"column":33},"end":{"line":3,"column":34},"identifierName":"e"},
"leadingComments": [
{
"type": "CommentBlock",
"value": "9",
"start":79,"end":84,"loc":{"start":{"line":3,"column":27},"end":{"line":3,"column":32}}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "10",
"start":87,"end":93,"loc":{"start":{"line":3,"column":35},"end":{"line":3,"column":41}}
}
],
"name": "e"
},
"body": {
"type": "BlockStatement",
"start":103,"end":113,"loc":{"start":{"line":3,"column":51},"end":{"line":4,"column":1}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "11",
"start":96,"end":102,"loc":{"start":{"line":3,"column":44},"end":{"line":3,"column":50}}
}
],
"innerComments": [
{
"type": "CommentBlock",
"value": "12",
"start":105,"end":111,"loc":{"start":{"line":3,"column":53},"end":{"line":3,"column":59}}
}
],
"body": [],
"directives": []
}
]
},
"finalizer": {
"type": "BlockStatement",
"start":136,"end":146,"loc":{"start":{"line":4,"column":24},"end":{"line":4,"column":34}},
"leadingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":129,"end":135,"loc":{"start":{"line":4,"column":17},"end":{"line":4,"column":23}}
}
],
"body": [],
"directives": [],
"innerComments": [
{
"type": "CommentBlock",
@@ -167,9 +148,28 @@
"start":138,"end":144,"loc":{"start":{"line":4,"column":26},"end":{"line":4,"column":32}}
}
],
"body": [],
"directives": []
}
"leadingComments": [
{
"type": "CommentBlock",
"value": "14",
"start":129,"end":135,"loc":{"start":{"line":4,"column":17},"end":{"line":4,"column":23}}
}
]
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "16",
"start":147,"end":153,"loc":{"start":{"line":4,"column":35},"end":{"line":4,"column":41}}
}
],
"leadingComments": [
{
"type": "CommentBlock",
"value": "1",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}}
}
]
}
],
"directives": []