mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
152 lines
6.1 KiB
JSON
152 lines
6.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":96}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":96}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start":0,"end":83,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":83}},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start":4,"end":82,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":5,"column":1,"index":82}},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"obj"},
|
|
"name": "obj"
|
|
},
|
|
"init": {
|
|
"type": "ObjectExpression",
|
|
"start":10,"end":82,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":82}},
|
|
"properties": [
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":14,"end":20,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":8,"index":20}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":14,"end":15,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":3,"index":15},"identifierName":"a"},
|
|
"name": "a"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":17,"end":20,"loc":{"start":{"line":2,"column":5,"index":17},"end":{"line":2,"column":8,"index":20}},
|
|
"extra": {
|
|
"rawValue": "1",
|
|
"raw": "'1'"
|
|
},
|
|
"value": "1"
|
|
}
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":37,"end":43,"loc":{"start":{"line":3,"column":2,"index":37},"end":{"line":3,"column":8,"index":43}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":37,"end":38,"loc":{"start":{"line":3,"column":2,"index":37},"end":{"line":3,"column":3,"index":38},"identifierName":"b"},
|
|
"name": "b"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":40,"end":43,"loc":{"start":{"line":3,"column":5,"index":40},"end":{"line":3,"column":8,"index":43}},
|
|
"extra": {
|
|
"rawValue": "2",
|
|
"raw": "'2'"
|
|
},
|
|
"value": "2"
|
|
},
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 1",
|
|
"start":22,"end":34,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":22,"index":34}}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ObjectProperty",
|
|
"start":60,"end":66,"loc":{"start":{"line":4,"column":2,"index":60},"end":{"line":4,"column":8,"index":66}},
|
|
"method": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"start":60,"end":61,"loc":{"start":{"line":4,"column":2,"index":60},"end":{"line":4,"column":3,"index":61},"identifierName":"c"},
|
|
"name": "c"
|
|
},
|
|
"computed": false,
|
|
"shorthand": false,
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":63,"end":66,"loc":{"start":{"line":4,"column":5,"index":63},"end":{"line":4,"column":8,"index":66}},
|
|
"extra": {
|
|
"rawValue": "3",
|
|
"raw": "'3'"
|
|
},
|
|
"value": "3"
|
|
},
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 3",
|
|
"start":68,"end":80,"loc":{"start":{"line":4,"column":10,"index":68},"end":{"line":4,"column":22,"index":80}}
|
|
}
|
|
],
|
|
"leadingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 2",
|
|
"start":45,"end":57,"loc":{"start":{"line":3,"column":10,"index":45},"end":{"line":3,"column":22,"index":57}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"extra": {
|
|
"trailingComma": 66
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "var",
|
|
"trailingComments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 4",
|
|
"start":84,"end":96,"loc":{"start":{"line":5,"column":3,"index":84},"end":{"line":5,"column":15,"index":96}}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
},
|
|
"comments": [
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 1",
|
|
"start":22,"end":34,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":22,"index":34}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 2",
|
|
"start":45,"end":57,"loc":{"start":{"line":3,"column":10,"index":45},"end":{"line":3,"column":22,"index":57}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 3",
|
|
"start":68,"end":80,"loc":{"start":{"line":4,"column":10,"index":68},"end":{"line":4,"column":22,"index":80}}
|
|
},
|
|
{
|
|
"type": "CommentLine",
|
|
"value": " comment 4",
|
|
"start":84,"end":96,"loc":{"start":{"line":5,"column":3,"index":84},"end":{"line":5,"column":15,"index":96}}
|
|
}
|
|
]
|
|
}
|