• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  "type": "Program",
3  "statements": [
4    {
5      "type": "IfStatement",
6      "test": {
7        "type": "NumberLiteral",
8        "value": 1,
9        "loc": {
10          "start": {
11            "line": 17,
12            "column": 5,
13            "program": "test-if.ts"
14          },
15          "end": {
16            "line": 17,
17            "column": 6,
18            "program": "test-if.ts"
19          }
20        }
21      },
22      "consequent": {
23        "type": "TSEnumDeclaration",
24        "id": {
25          "type": "Identifier",
26          "name": "A",
27          "decorators": [],
28          "loc": {
29            "start": {
30              "line": 18,
31              "column": 16,
32              "program": "test-if.ts"
33            },
34            "end": {
35              "line": 18,
36              "column": 17,
37              "program": "test-if.ts"
38            }
39          }
40        },
41        "members": [],
42        "const": true,
43        "declare": false,
44        "loc": {
45          "start": {
46            "line": 18,
47            "column": 11,
48            "program": "test-if.ts"
49          },
50          "end": {
51            "line": 18,
52            "column": 21,
53            "program": "test-if.ts"
54          }
55        }
56      },
57      "alternate": {
58        "type": "IfStatement",
59        "test": {
60          "type": "NumberLiteral",
61          "value": 2,
62          "loc": {
63            "start": {
64              "line": 19,
65              "column": 10,
66              "program": "test-if.ts"
67            },
68            "end": {
69              "line": 19,
70              "column": 11,
71              "program": "test-if.ts"
72            }
73          }
74        },
75        "consequent": {
76          "type": "TSEnumDeclaration",
77          "id": {
78            "type": "Identifier",
79            "name": "B",
80            "decorators": [],
81            "loc": {
82              "start": {
83                "line": 20,
84                "column": 16,
85                "program": "test-if.ts"
86              },
87              "end": {
88                "line": 20,
89                "column": 17,
90                "program": "test-if.ts"
91              }
92            }
93          },
94          "members": [],
95          "const": true,
96          "declare": false,
97          "loc": {
98            "start": {
99              "line": 20,
100              "column": 11,
101              "program": "test-if.ts"
102            },
103            "end": {
104              "line": 20,
105              "column": 21,
106              "program": "test-if.ts"
107            }
108          }
109        },
110        "alternate": {
111          "type": "TSEnumDeclaration",
112          "id": {
113            "type": "Identifier",
114            "name": "C",
115            "decorators": [],
116            "loc": {
117              "start": {
118                "line": 22,
119                "column": 16,
120                "program": "test-if.ts"
121              },
122              "end": {
123                "line": 22,
124                "column": 17,
125                "program": "test-if.ts"
126              }
127            }
128          },
129          "members": [],
130          "const": true,
131          "declare": false,
132          "loc": {
133            "start": {
134              "line": 22,
135              "column": 11,
136              "program": "test-if.ts"
137            },
138            "end": {
139              "line": 22,
140              "column": 21,
141              "program": "test-if.ts"
142            }
143          }
144        },
145        "loc": {
146          "start": {
147            "line": 19,
148            "column": 6,
149            "program": "test-if.ts"
150          },
151          "end": {
152            "line": 22,
153            "column": 21,
154            "program": "test-if.ts"
155          }
156        }
157      },
158      "loc": {
159        "start": {
160          "line": 17,
161          "column": 1,
162          "program": "test-if.ts"
163        },
164        "end": {
165          "line": 22,
166          "column": 21,
167          "program": "test-if.ts"
168        }
169      }
170    }
171  ],
172  "loc": {
173    "start": {
174      "line": 1,
175      "column": 1,
176      "program": "test-if.ts"
177    },
178    "end": {
179      "line": 23,
180      "column": 1,
181      "program": "test-if.ts"
182    }
183  }
184}
185