| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":96}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":96,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":15,"index":96}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "VariableDeclaration", |
| 12 |
"start":0,"end":83,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":83}}, |
| 13 |
"declarations": [ |
| 14 |
{ |
| 15 |
"type": "VariableDeclarator", |
| 16 |
"start":4,"end":82,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":5,"column":1,"index":82}}, |
| 17 |
"id": { |
| 18 |
"type": "Identifier", |
| 19 |
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"obj"}, |
| 20 |
"name": "obj" |
| 21 |
}, |
| 22 |
"init": { |
| 23 |
"type": "ObjectExpression", |
| 24 |
"start":10,"end":82,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":82}}, |
| 25 |
"properties": [ |
| 26 |
{ |
| 27 |
"type": "ObjectProperty", |
| 28 |
"start":14,"end":20,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":8,"index":20}}, |
| 29 |
"method": false, |
| 30 |
"key": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":14,"end":15,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":2,"column":3,"index":15},"identifierName":"a"}, |
| 33 |
"name": "a" |
| 34 |
}, |
| 35 |
"computed": false, |
| 36 |
"shorthand": false, |
| 37 |
"value": { |
| 38 |
"type": "StringLiteral", |
| 39 |
"start":17,"end":20,"loc":{"start":{"line":2,"column":5,"index":17},"end":{"line":2,"column":8,"index":20}}, |
| 40 |
"extra": { |
| 41 |
"rawValue": "1", |
| 42 |
"raw": "'1'" |
| 43 |
}, |
| 44 |
"value": "1" |
| 45 |
} |
| 46 |
}, |
| 47 |
{ |
| 48 |
"type": "ObjectProperty", |
| 49 |
"start":37,"end":43,"loc":{"start":{"line":3,"column":2,"index":37},"end":{"line":3,"column":8,"index":43}}, |
| 50 |
"method": false, |
| 51 |
"key": { |
| 52 |
"type": "Identifier", |
| 53 |
"start":37,"end":38,"loc":{"start":{"line":3,"column":2,"index":37},"end":{"line":3,"column":3,"index":38},"identifierName":"b"}, |
| 54 |
"name": "b" |
| 55 |
}, |
| 56 |
"computed": false, |
| 57 |
"shorthand": false, |
| 58 |
"value": { |
| 59 |
"type": "StringLiteral", |
| 60 |
"start":40,"end":43,"loc":{"start":{"line":3,"column":5,"index":40},"end":{"line":3,"column":8,"index":43}}, |
| 61 |
"extra": { |
| 62 |
"rawValue": "2", |
| 63 |
"raw": "'2'" |
| 64 |
}, |
| 65 |
"value": "2" |
| 66 |
}, |
| 67 |
"leadingComments": [ |
| 68 |
{ |
| 69 |
"type": "CommentLine", |
| 70 |
"value": " comment 1", |
| 71 |
"start":22,"end":34,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":22,"index":34}} |
| 72 |
} |
| 73 |
] |
| 74 |
}, |
| 75 |
{ |
| 76 |
"type": "ObjectProperty", |
| 77 |
"start":60,"end":66,"loc":{"start":{"line":4,"column":2,"index":60},"end":{"line":4,"column":8,"index":66}}, |
| 78 |
"method": false, |
| 79 |
"key": { |
| 80 |
"type": "Identifier", |
| 81 |
"start":60,"end":61,"loc":{"start":{"line":4,"column":2,"index":60},"end":{"line":4,"column":3,"index":61},"identifierName":"c"}, |
| 82 |
"name": "c" |
| 83 |
}, |
| 84 |
"computed": false, |
| 85 |
"shorthand": false, |
| 86 |
"value": { |
| 87 |
"type": "StringLiteral", |
| 88 |
"start":63,"end":66,"loc":{"start":{"line":4,"column":5,"index":63},"end":{"line":4,"column":8,"index":66}}, |
| 89 |
"extra": { |
| 90 |
"rawValue": "3", |
| 91 |
"raw": "'3'" |
| 92 |
}, |
| 93 |
"value": "3" |
| 94 |
}, |
| 95 |
"trailingComments": [ |
| 96 |
{ |
| 97 |
"type": "CommentLine", |
| 98 |
"value": " comment 3", |
| 99 |
"start":68,"end":80,"loc":{"start":{"line":4,"column":10,"index":68},"end":{"line":4,"column":22,"index":80}} |
| 100 |
} |
| 101 |
], |
| 102 |
"leadingComments": [ |
| 103 |
{ |
| 104 |
"type": "CommentLine", |
| 105 |
"value": " comment 2", |
| 106 |
"start":45,"end":57,"loc":{"start":{"line":3,"column":10,"index":45},"end":{"line":3,"column":22,"index":57}} |
| 107 |
} |
| 108 |
] |
| 109 |
} |
| 110 |
], |
| 111 |
"extra": { |
| 112 |
"trailingComma": 66 |
| 113 |
} |
| 114 |
} |
| 115 |
} |
| 116 |
], |
| 117 |
"kind": "var", |
| 118 |
"trailingComments": [ |
| 119 |
{ |
| 120 |
"type": "CommentLine", |
| 121 |
"value": " comment 4", |
| 122 |
"start":84,"end":96,"loc":{"start":{"line":5,"column":3,"index":84},"end":{"line":5,"column":15,"index":96}} |
| 123 |
} |
| 124 |
] |
| 125 |
} |
| 126 |
], |
| 127 |
"directives": [] |
| 128 |
}, |
| 129 |
"comments": [ |
| 130 |
{ |
| 131 |
"type": "CommentLine", |
| 132 |
"value": " comment 1", |
| 133 |
"start":22,"end":34,"loc":{"start":{"line":2,"column":10,"index":22},"end":{"line":2,"column":22,"index":34}} |
| 134 |
}, |
| 135 |
{ |
| 136 |
"type": "CommentLine", |
| 137 |
"value": " comment 2", |
| 138 |
"start":45,"end":57,"loc":{"start":{"line":3,"column":10,"index":45},"end":{"line":3,"column":22,"index":57}} |
| 139 |
}, |
| 140 |
{ |
| 141 |
"type": "CommentLine", |
| 142 |
"value": " comment 3", |
| 143 |
"start":68,"end":80,"loc":{"start":{"line":4,"column":10,"index":68},"end":{"line":4,"column":22,"index":80}} |
| 144 |
}, |
| 145 |
{ |
| 146 |
"type": "CommentLine", |
| 147 |
"value": " comment 4", |
| 148 |
"start":84,"end":96,"loc":{"start":{"line":5,"column":3,"index":84},"end":{"line":5,"column":15,"index":96}} |
| 149 |
} |
| 150 |
] |
| 151 |
} |