| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "FunctionDeclaration", |
| 12 |
"start":0,"end":54,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":1,"index":54}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":9,"end":11,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":11,"index":11},"identifierName":"fn"}, |
| 16 |
"name": "fn" |
| 17 |
}, |
| 18 |
"generator": false, |
| 19 |
"async": false, |
| 20 |
"params": [], |
| 21 |
"body": { |
| 22 |
"type": "BlockStatement", |
| 23 |
"start":14,"end":54,"loc":{"start":{"line":1,"column":14,"index":14},"end":{"line":5,"column":1,"index":54}}, |
| 24 |
"body": [ |
| 25 |
{ |
| 26 |
"type": "ReturnStatement", |
| 27 |
"start":18,"end":24,"loc":{"start":{"line":2,"column":2,"index":18},"end":{"line":2,"column":8,"index":24}}, |
| 28 |
"argument": null |
| 29 |
}, |
| 30 |
{ |
| 31 |
"type": "FunctionDeclaration", |
| 32 |
"start":27,"end":44,"loc":{"start":{"line":3,"column":2,"index":27},"end":{"line":3,"column":19,"index":44}}, |
| 33 |
"id": { |
| 34 |
"type": "Identifier", |
| 35 |
"start":36,"end":39,"loc":{"start":{"line":3,"column":11,"index":36},"end":{"line":3,"column":14,"index":39},"identifierName":"foo"}, |
| 36 |
"name": "foo" |
| 37 |
}, |
| 38 |
"generator": false, |
| 39 |
"async": false, |
| 40 |
"params": [], |
| 41 |
"body": { |
| 42 |
"type": "BlockStatement", |
| 43 |
"start":42,"end":44,"loc":{"start":{"line":3,"column":17,"index":42},"end":{"line":3,"column":19,"index":44}}, |
| 44 |
"body": [], |
| 45 |
"directives": [] |
| 46 |
} |
| 47 |
}, |
| 48 |
{ |
| 49 |
"type": "ExpressionStatement", |
| 50 |
"start":47,"end":52,"loc":{"start":{"line":4,"column":2,"index":47},"end":{"line":4,"column":7,"index":52}}, |
| 51 |
"expression": { |
| 52 |
"type": "RegExpLiteral", |
| 53 |
"start":47,"end":52,"loc":{"start":{"line":4,"column":2,"index":47},"end":{"line":4,"column":7,"index":52}}, |
| 54 |
"extra": { |
| 55 |
"raw": "/42/i" |
| 56 |
}, |
| 57 |
"pattern": "42", |
| 58 |
"flags": "i" |
| 59 |
} |
| 60 |
} |
| 61 |
], |
| 62 |
"directives": [] |
| 63 |
} |
| 64 |
} |
| 65 |
], |
| 66 |
"directives": [] |
| 67 |
} |
| 68 |
} |