{ "type": "Program", "statements": [ { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 17, "column": 10 }, "end": { "line": 17, "column": 16 } } }, "loc": { "start": { "line": 17, "column": 1 }, "end": { "line": 17, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 18, "column": 6 }, "end": { "line": 18, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 18, "column": 10 }, "end": { "line": 18, "column": 16 } } }, "loc": { "start": { "line": 18, "column": 1 }, "end": { "line": 18, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 19, "column": 6 }, "end": { "line": 19, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 19, "column": 10 }, "end": { "line": 19, "column": 16 } } }, "loc": { "start": { "line": 19, "column": 1 }, "end": { "line": 19, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 20, "column": 10 }, "end": { "line": 20, "column": 16 } } }, "loc": { "start": { "line": 20, "column": 1 }, "end": { "line": 20, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 21, "column": 6 }, "end": { "line": 21, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 21, "column": 10 }, "end": { "line": 21, "column": 16 } } }, "loc": { "start": { "line": 21, "column": 1 }, "end": { "line": 21, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "F", "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 22, "column": 7 } } }, "typeAnnotation": { "type": "TSStringKeyword", "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 16 } } }, "loc": { "start": { "line": 22, "column": 1 }, "end": { "line": 22, "column": 17 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Type1", "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 11 } } }, "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } } }, "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 16 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 24, "column": 21 }, "end": { "line": 24, "column": 22 } } }, "loc": { "start": { "line": 24, "column": 21 }, "end": { "line": 24, "column": 22 } } } ], "loc": { "start": { "line": 24, "column": 19 }, "end": { "line": 24, "column": 22 } } } ], "loc": { "start": { "line": 24, "column": 15 }, "end": { "line": 24, "column": 22 } } }, "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 23 } } }, { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 24, "column": 29 }, "end": { "line": 24, "column": 30 } } }, "loc": { "start": { "line": 24, "column": 29 }, "end": { "line": 24, "column": 30 } } } ], "loc": { "start": { "line": 24, "column": 27 }, "end": { "line": 24, "column": 30 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 34 } } }, "loc": { "start": { "line": 24, "column": 33 }, "end": { "line": 24, "column": 34 } } } ], "loc": { "start": { "line": 24, "column": 27 }, "end": { "line": 24, "column": 34 } } }, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 35 } } } ], "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 35 } } }, "loc": { "start": { "line": 24, "column": 1 }, "end": { "line": 24, "column": 36 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Type2", "loc": { "start": { "line": 25, "column": 6 }, "end": { "line": 25, "column": 11 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 15 } } }, "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 15 } } }, { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 25, "column": 22 } } }, "loc": { "start": { "line": 25, "column": 21 }, "end": { "line": 25, "column": 22 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 25, "column": 25 }, "end": { "line": 25, "column": 26 } } }, "loc": { "start": { "line": 25, "column": 25 }, "end": { "line": 25, "column": 26 } } } ], "loc": { "start": { "line": 25, "column": 19 }, "end": { "line": 25, "column": 26 } } }, "loc": { "start": { "line": 25, "column": 18 }, "end": { "line": 25, "column": 27 } } } ], "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 27 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 25, "column": 30 }, "end": { "line": 25, "column": 31 } } }, "loc": { "start": { "line": 25, "column": 30 }, "end": { "line": 25, "column": 31 } } }, { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 25, "column": 35 }, "end": { "line": 25, "column": 36 } } }, "loc": { "start": { "line": 25, "column": 35 }, "end": { "line": 25, "column": 36 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 25, "column": 39 }, "end": { "line": 25, "column": 40 } } }, "loc": { "start": { "line": 25, "column": 39 }, "end": { "line": 25, "column": 40 } } } ], "loc": { "start": { "line": 25, "column": 35 }, "end": { "line": 25, "column": 40 } } }, "loc": { "start": { "line": 25, "column": 34 }, "end": { "line": 25, "column": 41 } } } ], "loc": { "start": { "line": 25, "column": 30 }, "end": { "line": 25, "column": 41 } } } ], "loc": { "start": { "line": 25, "column": 14 }, "end": { "line": 25, "column": 41 } } }, "loc": { "start": { "line": 25, "column": 1 }, "end": { "line": 26, "column": 5 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Type3", "loc": { "start": { "line": 26, "column": 6 }, "end": { "line": 26, "column": 11 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 15 } } }, "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 15 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 26, "column": 18 }, "end": { "line": 26, "column": 19 } } }, "loc": { "start": { "line": 26, "column": 18 }, "end": { "line": 26, "column": 19 } } } ], "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 19 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 23 } } }, "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 23 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 26, "column": 26 }, "end": { "line": 26, "column": 27 } } }, "loc": { "start": { "line": 26, "column": 26 }, "end": { "line": 26, "column": 27 } } } ], "loc": { "start": { "line": 26, "column": 22 }, "end": { "line": 26, "column": 27 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 26, "column": 30 }, "end": { "line": 26, "column": 31 } } }, "loc": { "start": { "line": 26, "column": 30 }, "end": { "line": 26, "column": 31 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 26, "column": 34 }, "end": { "line": 26, "column": 35 } } }, "loc": { "start": { "line": 26, "column": 34 }, "end": { "line": 26, "column": 35 } } } ], "loc": { "start": { "line": 26, "column": 30 }, "end": { "line": 26, "column": 35 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 26, "column": 38 }, "end": { "line": 26, "column": 39 } } }, "loc": { "start": { "line": 26, "column": 38 }, "end": { "line": 26, "column": 39 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 26, "column": 42 }, "end": { "line": 26, "column": 43 } } }, "loc": { "start": { "line": 26, "column": 42 }, "end": { "line": 26, "column": 43 } } } ], "loc": { "start": { "line": 26, "column": 38 }, "end": { "line": 26, "column": 43 } } } ], "loc": { "start": { "line": 26, "column": 14 }, "end": { "line": 26, "column": 43 } } }, "loc": { "start": { "line": 26, "column": 1 }, "end": { "line": 26, "column": 44 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Type4", "loc": { "start": { "line": 27, "column": 6 }, "end": { "line": 27, "column": 11 } } }, "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 15 } } }, "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 15 } } }, { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 20 } } }, "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 20 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 24 } } }, "loc": { "start": { "line": 27, "column": 23 }, "end": { "line": 27, "column": 24 } } } ], "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 24 } } }, "loc": { "start": { "line": 27, "column": 18 }, "end": { "line": 27, "column": 25 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 27, "column": 28 }, "end": { "line": 27, "column": 29 } } }, "loc": { "start": { "line": 27, "column": 28 }, "end": { "line": 27, "column": 29 } } } ], "loc": { "start": { "line": 27, "column": 14 }, "end": { "line": 27, "column": 29 } } }, "loc": { "start": { "line": 27, "column": 1 }, "end": { "line": 27, "column": 30 } } }, { "type": "TSTypeAliasDeclaration", "id": { "type": "Identifier", "name": "Type5", "loc": { "start": { "line": 28, "column": 6 }, "end": { "line": 28, "column": 11 } } }, "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSIntersectionType", "types": [ { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "A", "loc": { "start": { "line": 28, "column": 15 }, "end": { "line": 28, "column": 16 } } }, "loc": { "start": { "line": 28, "column": 15 }, "end": { "line": 28, "column": 16 } } }, { "type": "TSIntersectionType", "types": [ { "type": "TSParenthesizedType", "typeAnnotation": { "type": "TSIntersectionType", "types": [ { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "B", "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 21 } } }, "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 21 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "C", "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 28, "column": 25 } } }, "loc": { "start": { "line": 28, "column": 24 }, "end": { "line": 28, "column": 25 } } } ], "loc": { "start": { "line": 28, "column": 20 }, "end": { "line": 28, "column": 25 } } }, "loc": { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 26 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "D", "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 30 } } }, "loc": { "start": { "line": 28, "column": 29 }, "end": { "line": 28, "column": 30 } } } ], "loc": { "start": { "line": 28, "column": 19 }, "end": { "line": 28, "column": 30 } } } ], "loc": { "start": { "line": 28, "column": 15 }, "end": { "line": 28, "column": 30 } } }, "loc": { "start": { "line": 28, "column": 14 }, "end": { "line": 28, "column": 31 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "E", "loc": { "start": { "line": 28, "column": 34 }, "end": { "line": 28, "column": 35 } } }, "loc": { "start": { "line": 28, "column": 34 }, "end": { "line": 28, "column": 35 } } } ], "loc": { "start": { "line": 28, "column": 14 }, "end": { "line": 28, "column": 35 } } }, { "type": "TSTypeReference", "typeName": { "type": "Identifier", "name": "F", "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 39 } } }, "loc": { "start": { "line": 28, "column": 38 }, "end": { "line": 28, "column": 39 } } } ], "loc": { "start": { "line": 28, "column": 14 }, "end": { "line": 28, "column": 39 } } }, "loc": { "start": { "line": 28, "column": 1 }, "end": { "line": 28, "column": 40 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "a", "typeAnnotation": { "type": "TSUnionType", "types": [ { "type": "TSIntersectionType", "types": [ { "type": "TSStringKeyword", "loc": { "start": { "line": 30, "column": 12 }, "end": { "line": 30, "column": 18 } } } ], "loc": { "start": { "line": 30, "column": 10 }, "end": { "line": 30, "column": 18 } } } ], "loc": { "start": { "line": 30, "column": 8 }, "end": { "line": 30, "column": 18 } } }, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 6 } } }, "init": null, "loc": { "start": { "line": 30, "column": 5 }, "end": { "line": 30, "column": 6 } } } ], "kind": "var", "loc": { "start": { "line": 30, "column": 1 }, "end": { "line": 30, "column": 19 } } } ], "loc": { "start": { "line": 1, "column": 1 }, "end": { "line": 30, "column": 19 } } }