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 }, 14 "end": { 15 "line": 17, 16 "column": 6 17 } 18 } 19 }, 20 "consequent": { 21 "type": "TSEnumDeclaration", 22 "id": { 23 "type": "Identifier", 24 "name": "A", 25 "loc": { 26 "start": { 27 "line": 18, 28 "column": 16 29 }, 30 "end": { 31 "line": 18, 32 "column": 17 33 } 34 } 35 }, 36 "members": [], 37 "const": true, 38 "loc": { 39 "start": { 40 "line": 18, 41 "column": 11 42 }, 43 "end": { 44 "line": 18, 45 "column": 21 46 } 47 } 48 }, 49 "alternate": { 50 "type": "IfStatement", 51 "test": { 52 "type": "NumberLiteral", 53 "value": 2, 54 "loc": { 55 "start": { 56 "line": 19, 57 "column": 10 58 }, 59 "end": { 60 "line": 19, 61 "column": 11 62 } 63 } 64 }, 65 "consequent": { 66 "type": "TSEnumDeclaration", 67 "id": { 68 "type": "Identifier", 69 "name": "B", 70 "loc": { 71 "start": { 72 "line": 20, 73 "column": 16 74 }, 75 "end": { 76 "line": 20, 77 "column": 17 78 } 79 } 80 }, 81 "members": [], 82 "const": true, 83 "loc": { 84 "start": { 85 "line": 20, 86 "column": 11 87 }, 88 "end": { 89 "line": 20, 90 "column": 21 91 } 92 } 93 }, 94 "alternate": { 95 "type": "TSEnumDeclaration", 96 "id": { 97 "type": "Identifier", 98 "name": "C", 99 "loc": { 100 "start": { 101 "line": 22, 102 "column": 16 103 }, 104 "end": { 105 "line": 22, 106 "column": 17 107 } 108 } 109 }, 110 "members": [], 111 "const": true, 112 "loc": { 113 "start": { 114 "line": 22, 115 "column": 11 116 }, 117 "end": { 118 "line": 22, 119 "column": 21 120 } 121 } 122 }, 123 "loc": { 124 "start": { 125 "line": 19, 126 "column": 6 127 }, 128 "end": { 129 "line": 22, 130 "column": 21 131 } 132 } 133 }, 134 "loc": { 135 "start": { 136 "line": 17, 137 "column": 1 138 }, 139 "end": { 140 "line": 22, 141 "column": 21 142 } 143 } 144 } 145 ], 146 "loc": { 147 "start": { 148 "line": 1, 149 "column": 1 150 }, 151 "end": { 152 "line": 23, 153 "column": 1 154 } 155 } 156} 157