forked from babel/babel
/
output.json
72 lines (72 loc) 路 2.87 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"type": "File",
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":37}},
"errors": [
"SyntaxError: Export 'foo' is not defined. (3:11)"
],
"program": {
"type": "Program",
"start":0,"end":37,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":4,"column":1,"index":37}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":8,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":8,"index":8}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7}},
"id": {
"type": "Identifier",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"foo"},
"name": "foo"
},
"init": null
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start":9,"end":37,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":4,"column":1,"index":37}},
"expression": {
"type": "ModuleExpression",
"start":9,"end":37,"loc":{"start":{"line":2,"column":0,"index":9},"end":{"line":4,"column":1,"index":37}},
"body": {
"type": "Program",
"start":17,"end":36,"loc":{"start":{"line":2,"column":8,"index":17},"end":{"line":4,"column":0,"index":36}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExportNamedDeclaration",
"start":20,"end":35,"loc":{"start":{"line":3,"column":2,"index":20},"end":{"line":3,"column":17,"index":35}},
"specifiers": [
{
"type": "ExportSpecifier",
"start":29,"end":32,"loc":{"start":{"line":3,"column":11,"index":29},"end":{"line":3,"column":14,"index":32}},
"local": {
"type": "Identifier",
"start":29,"end":32,"loc":{"start":{"line":3,"column":11,"index":29},"end":{"line":3,"column":14,"index":32},"identifierName":"foo"},
"name": "foo"
},
"exported": {
"type": "Identifier",
"start":29,"end":32,"loc":{"start":{"line":3,"column":11,"index":29},"end":{"line":3,"column":14,"index":32},"identifierName":"foo"},
"name": "foo"
}
}
],
"source": null,
"declaration": null
}
],
"directives": []
}
}
}
],
"directives": []
}
}