Debian Codegraph @

packages/babel-parser/test/fixtures/flow/explicit-inexact-object/explicit_inexact_object_invalid3/output.json

raw
1 {
2 "type": "File",
3 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":32,"index":40}},
4 "errors": [
5 "SyntaxError: Explicit inexact syntax must appear at the end of an inexact object. (2:21)"
6 ],
7 "program": {
8 "type": "Program",
9 "start":0,"end":40,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":2,"column":32,"index":40}},
10 "sourceType": "module",
11 "interpreter": null,
12 "body": [
13 {
14 "type": "TypeAlias",
15 "start":8,"end":40,"loc":{"start":{"line":2,"column":0,"index":8},"end":{"line":2,"column":32,"index":40}},
16 "id": {
17 "type": "Identifier",
18 "start":13,"end":14,"loc":{"start":{"line":2,"column":5,"index":13},"end":{"line":2,"column":6,"index":14},"identifierName":"V"},
19 "name": "V"
20 },
21 "typeParameters": null,
22 "right": {
23 "type": "ObjectTypeAnnotation",
24 "start":17,"end":39,"loc":{"start":{"line":2,"column":9,"index":17},"end":{"line":2,"column":31,"index":39}},
25 "callProperties": [],
26 "properties": [
27 {
28 "type": "ObjectTypeProperty",
29 "start":18,"end":27,"loc":{"start":{"line":2,"column":10,"index":18},"end":{"line":2,"column":19,"index":27}},
30 "key": {
31 "type": "Identifier",
32 "start":18,"end":19,"loc":{"start":{"line":2,"column":10,"index":18},"end":{"line":2,"column":11,"index":19},"identifierName":"x"},
33 "name": "x"
34 },
35 "static": false,
36 "proto": false,
37 "kind": "init",
38 "method": false,
39 "value": {
40 "type": "NumberTypeAnnotation",
41 "start":21,"end":27,"loc":{"start":{"line":2,"column":13,"index":21},"end":{"line":2,"column":19,"index":27}}
42 },
43 "variance": null,
44 "optional": false
45 },
46 {
47 "type": "ObjectTypeSpreadProperty",
48 "start":34,"end":38,"loc":{"start":{"line":2,"column":26,"index":34},"end":{"line":2,"column":30,"index":38}},
49 "argument": {
50 "type": "GenericTypeAnnotation",
51 "start":37,"end":38,"loc":{"start":{"line":2,"column":29,"index":37},"end":{"line":2,"column":30,"index":38}},
52 "typeParameters": null,
53 "id": {
54 "type": "Identifier",
55 "start":37,"end":38,"loc":{"start":{"line":2,"column":29,"index":37},"end":{"line":2,"column":30,"index":38},"identifierName":"X"},
56 "name": "X"
57 }
58 }
59 }
60 ],
61 "indexers": [],
62 "internalSlots": [],
63 "exact": false,
64 "inexact": true
65 },
66 "leadingComments": [
67 {
68 "type": "CommentLine",
69 "value": "@flow",
70 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
71 }
72 ]
73 }
74 ],
75 "directives": []
76 },
77 "comments": [
78 {
79 "type": "CommentLine",
80 "value": "@flow",
81 "start":0,"end":7,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":7,"index":7}}
82 }
83 ]
84 }