Debian Codegraph @

packages/babel-parser/test/fixtures/estree/flow/string-literal-annotation/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
4 "program": {
5 "type": "Program",
6 "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
7 "sourceType": "script",
8 "interpreter": null,
9 "body": [
10 {
11 "type": "VariableDeclaration",
12 "start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
13 "declarations": [
14 {
15 "type": "VariableDeclarator",
16 "start":4,"end":15,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":15}},
17 "id": {
18 "type": "Identifier",
19 "start":4,"end":15,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":15},"identifierName":"x"},
20 "name": "x",
21 "typeAnnotation": {
22 "type": "TypeAnnotation",
23 "start":5,"end":15,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":15}},
24 "typeAnnotation": {
25 "type": "StringLiteralTypeAnnotation",
26 "start":7,"end":15,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":15}},
27 "value": "string",
28 "raw": "\"string\""
29 }
30 }
31 },
32 "init": null
33 }
34 ],
35 "kind": "var"
36 }
37 ]
38 }
39 }