diff --git a/es2panda/parser/statementParser.cpp b/es2panda/parser/statementParser.cpp index bee0d92d6ddf4cd7de8364a447cbe61835d3c1a6..b91c02a0bad0349bea13007511dbc31d6902106c 100644 --- a/es2panda/parser/statementParser.cpp +++ b/es2panda/parser/statementParser.cpp @@ -715,6 +715,7 @@ ir::TSTypeAliasDeclaration *ParserImpl::ParseTsTypeAliasDeclaration(bool isDecla auto *typeAliasDecl = AllocNode(id, typeParamDecl, typeAnnotation, isDeclare); typeAliasDecl->SetRange({typeStart, lexer_->GetToken().End()}); decl->BindNode(typeAliasDecl); + ConsumeSemicolon(typeAliasDecl); return typeAliasDecl; } diff --git a/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration-expected.txt b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration-expected.txt new file mode 100644 index 0000000000000000000000000000000000000000..d749a6c66700e5c90e68e4490226b285f7f09465 --- /dev/null +++ b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration-expected.txt @@ -0,0 +1,96 @@ +{ + "type": "Program", + "statements": [ + { + "type": "TSTypeAliasDeclaration", + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + "typeAnnotation": { + "type": "TSNumberKeyword", + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": "TSTypeAliasDeclaration", + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + "typeAnnotation": { + "type": "TSStringKeyword", + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + "declare": true, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 25 + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1 + }, + "end": { + "line": 18, + "column": 25 + } + } +} diff --git a/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration.d.ts b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..983ef932b37e9d982a4d29275c17305a3f932e44 --- /dev/null +++ b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration.d.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +type A = number +declare type B = string; \ No newline at end of file diff --git a/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1-expected.txt b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1-expected.txt new file mode 100644 index 0000000000000000000000000000000000000000..492336425515545efe6b078aebeca8a01394f1ad --- /dev/null +++ b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1-expected.txt @@ -0,0 +1 @@ +SyntaxError: Statements are not allowed in ambient contexts. [test-ts-type-alias-declaration1.d.ts:18:26] diff --git a/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1.d.ts b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1.d.ts new file mode 100644 index 0000000000000000000000000000000000000000..5447d9fa1aae8ce57de4412ed0de426eb703199e --- /dev/null +++ b/es2panda/test/parser/ts/cases/declaration/test-ts-type-alias-declaration1.d.ts @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +type A = number +declare type B = string;; \ No newline at end of file diff --git a/es2panda/test/parser/ts/test-export-type-expected.txt b/es2panda/test/parser/ts/test-export-type-expected.txt index 3028aac6d4de8e6b2071de29a6389163737abc02..a98e53fa1fe7769f912391da56df61c7e1820a96 100644 --- a/es2panda/test/parser/ts/test-export-type-expected.txt +++ b/es2panda/test/parser/ts/test-export-type-expected.txt @@ -56,19 +56,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 23 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -109,19 +96,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 16 - }, - "end": { - "line": 18, - "column": 17 - } - } - }, { "type": "ExportNamedDeclaration", "declaration": null, diff --git a/es2panda/test/parser/ts/test-intersection-expected.txt b/es2panda/test/parser/ts/test-intersection-expected.txt index b54ec92e7a70768321a532dfd6b4649fae59547b..48c78d11296ace879b3a513a93466988c0b20e25 100644 --- a/es2panda/test/parser/ts/test-intersection-expected.txt +++ b/es2panda/test/parser/ts/test-intersection-expected.txt @@ -41,19 +41,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 16 - }, - "end": { - "line": 17, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -94,19 +81,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 16 - }, - "end": { - "line": 18, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -147,19 +121,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 19, - "column": 16 - }, - "end": { - "line": 19, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -200,19 +161,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 20, - "column": 16 - }, - "end": { - "line": 20, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -253,19 +201,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -306,19 +241,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 22, - "column": 16 - }, - "end": { - "line": 22, - "column": 17 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -555,19 +477,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 24, - "column": 35 - }, - "end": { - "line": 24, - "column": 36 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -1176,19 +1085,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 26, - "column": 43 - }, - "end": { - "line": 26, - "column": 44 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -1367,19 +1263,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 30 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -1670,19 +1553,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 28, - "column": 39 - }, - "end": { - "line": 28, - "column": 40 - } - } - }, { "type": "VariableDeclaration", "declarations": [ diff --git a/es2panda/test/parser/ts/test-keyword-declare-expected.txt b/es2panda/test/parser/ts/test-keyword-declare-expected.txt index 4e2c49ba6a639ebf615554511cbdfc95f04df8ac..ca36f639e2a0b64eb4eeb009e320203606c3f6c0 100644 --- a/es2panda/test/parser/ts/test-keyword-declare-expected.txt +++ b/es2panda/test/parser/ts/test-keyword-declare-expected.txt @@ -407,19 +407,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 27, - "column": 29 - }, - "end": { - "line": 27, - "column": 30 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -489,19 +476,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 28, - "column": 37 - }, - "end": { - "line": 28, - "column": 38 - } - } - }, { "type": "FunctionDeclaration", "function": { diff --git a/es2panda/test/parser/ts/test-keyword-identify6-expected.txt b/es2panda/test/parser/ts/test-keyword-identify6-expected.txt index e1cb1cd00d2633c11a0d8624c511ed4b26546b51..35147d0c279e5b56a7714b31ed03971592b00e85 100644 --- a/es2panda/test/parser/ts/test-keyword-identify6-expected.txt +++ b/es2panda/test/parser/ts/test-keyword-identify6-expected.txt @@ -236,19 +236,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 21, - "column": 16 - }, - "end": { - "line": 21, - "column": 17 - } - } - }, { "type": "ExpressionStatement", "expression": { diff --git a/es2panda/test/parser/ts/test-ts-conditional-type-expected.txt b/es2panda/test/parser/ts/test-ts-conditional-type-expected.txt index 9c8700cb0f09dbbe548e6810db4590870919907b..78b3b9e3c46fc748de3c534b121b42dd288862e9 100644 --- a/es2panda/test/parser/ts/test-ts-conditional-type-expected.txt +++ b/es2panda/test/parser/ts/test-ts-conditional-type-expected.txt @@ -499,19 +499,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 200 - }, - "end": { - "line": 18, - "column": 201 - } - } - }, { "type": "VariableDeclaration", "declarations": [ @@ -1710,19 +1697,6 @@ "column": 9 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 31, - "column": 8 - }, - "end": { - "line": 31, - "column": 9 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test-ts-mapped-type-expected.txt b/es2panda/test/parser/ts/test-ts-mapped-type-expected.txt index 98d3821f0350c702057a26b53abd201ec2aeee13..988ddcf65197c9b6c400b5f2f0c9f7a39cdc5118 100644 --- a/es2panda/test/parser/ts/test-ts-mapped-type-expected.txt +++ b/es2panda/test/parser/ts/test-ts-mapped-type-expected.txt @@ -166,19 +166,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 62 - }, - "end": { - "line": 17, - "column": 63 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -344,19 +331,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 62 - }, - "end": { - "line": 18, - "column": 63 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -522,19 +496,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 19, - "column": 60 - }, - "end": { - "line": 19, - "column": 61 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -698,19 +659,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 20, - "column": 50 - }, - "end": { - "line": 20, - "column": 51 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -874,19 +822,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 21, - "column": 49 - }, - "end": { - "line": 21, - "column": 50 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -1037,19 +972,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 22, - "column": 41 - }, - "end": { - "line": 22, - "column": 42 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -1199,19 +1121,6 @@ "column": 41 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 23, - "column": 40 - }, - "end": { - "line": 23, - "column": 41 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test-ts-type-alias-declaration-expected.txt b/es2panda/test/parser/ts/test-ts-type-alias-declaration-expected.txt new file mode 100644 index 0000000000000000000000000000000000000000..906377f47cc09dc243cf9e89b039e362fa726131 --- /dev/null +++ b/es2panda/test/parser/ts/test-ts-type-alias-declaration-expected.txt @@ -0,0 +1,150 @@ +{ + "type": "Program", + "statements": [ + { + "type": "TSTypeAliasDeclaration", + "id": { + "type": "Identifier", + "name": "A", + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + "typeAnnotation": { + "type": "TSNumberKeyword", + "loc": { + "start": { + "line": 17, + "column": 10 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + "loc": { + "start": { + "line": 17, + "column": 1 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": "TSTypeAliasDeclaration", + "id": { + "type": "Identifier", + "name": "B", + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + "typeAnnotation": { + "type": "TSStringKeyword", + "loc": { + "start": { + "line": 18, + "column": 18 + }, + "end": { + "line": 18, + "column": 24 + } + } + }, + "declare": true, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": "TSTypeAliasDeclaration", + "id": { + "type": "Identifier", + "name": "C", + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 15 + } + } + }, + "typeAnnotation": { + "type": "TSStringKeyword", + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 24 + } + } + }, + "declare": true, + "loc": { + "start": { + "line": 19, + "column": 9 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": "EmptyStatement", + "loc": { + "start": { + "line": 19, + "column": 25 + }, + "end": { + "line": 19, + "column": 26 + } + } + } + ], + "loc": { + "start": { + "line": 1, + "column": 1 + }, + "end": { + "line": 19, + "column": 26 + } + } +} diff --git a/es2panda/test/parser/ts/test-ts-type-alias-declaration.ts b/es2panda/test/parser/ts/test-ts-type-alias-declaration.ts new file mode 100644 index 0000000000000000000000000000000000000000..2477448b6b7d5dbe538be401ecdc273cb319e8d7 --- /dev/null +++ b/es2panda/test/parser/ts/test-ts-type-alias-declaration.ts @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +type A = number +declare type B = string; +declare type C = string;; \ No newline at end of file diff --git a/es2panda/test/parser/ts/test-ts-type-predicate-expected.txt b/es2panda/test/parser/ts/test-ts-type-predicate-expected.txt index 227136251b670c8c7b298271b0d1a2e71ee39eb2..cbdf350db9c06f5f4d6cbd2a4563119f9cf2ffad 100644 --- a/es2panda/test/parser/ts/test-ts-type-predicate-expected.txt +++ b/es2panda/test/parser/ts/test-ts-type-predicate-expected.txt @@ -4091,19 +4091,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 64, - "column": 36 - }, - "end": { - "line": 64, - "column": 37 - } - } - }, { "type": "FunctionDeclaration", "function": { diff --git a/es2panda/test/parser/ts/test-tuple-type6-expected.txt b/es2panda/test/parser/ts/test-tuple-type6-expected.txt index 2aabb2bb329b9479afda12ccc3ef9bf6c0ff11fc..bb95e522b65c8ca9d6a1935c8b02b8a68e92f828 100644 --- a/es2panda/test/parser/ts/test-tuple-type6-expected.txt +++ b/es2panda/test/parser/ts/test-tuple-type6-expected.txt @@ -177,19 +177,6 @@ "column": 75 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 74 - }, - "end": { - "line": 17, - "column": 75 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test-type-alias-expected.txt b/es2panda/test/parser/ts/test-type-alias-expected.txt index a0caa692e02b18030c10c16b6d9eb5c70e27dff0..feb584db18590187eaac79a5e693724444fd45e4 100644 --- a/es2panda/test/parser/ts/test-type-alias-expected.txt +++ b/es2panda/test/parser/ts/test-type-alias-expected.txt @@ -69,19 +69,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 27 - }, - "end": { - "line": 17, - "column": 28 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -246,19 +233,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 50 - }, - "end": { - "line": 18, - "column": 51 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -394,19 +368,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 19, - "column": 34 - }, - "end": { - "line": 19, - "column": 35 - } - } - }, { "type": "VariableDeclaration", "declarations": [ diff --git a/es2panda/test/parser/ts/test-type-template-literal1-expected.txt b/es2panda/test/parser/ts/test-type-template-literal1-expected.txt index f397c533bd4a72724bcb465642f42fc03c5f26e5..6892189ab0f7eb7ac142143f98483fe1f24be0d1 100644 --- a/es2panda/test/parser/ts/test-type-template-literal1-expected.txt +++ b/es2panda/test/parser/ts/test-type-template-literal1-expected.txt @@ -55,19 +55,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 23 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -172,19 +159,6 @@ "column": 37 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 36 - }, - "end": { - "line": 18, - "column": 37 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test-type-template-literal2-expected.txt b/es2panda/test/parser/ts/test-type-template-literal2-expected.txt index 2396614cd16f956021e8da9ebdf429af22325411..ed5e75b29c762f6a9c738e283598f1a4a814683e 100644 --- a/es2panda/test/parser/ts/test-type-template-literal2-expected.txt +++ b/es2panda/test/parser/ts/test-type-template-literal2-expected.txt @@ -97,19 +97,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 23 - }, - "end": { - "line": 17, - "column": 24 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -206,19 +193,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 23 - }, - "end": { - "line": 18, - "column": 24 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -315,19 +289,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 19, - "column": 17 - }, - "end": { - "line": 19, - "column": 18 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -518,19 +479,6 @@ "column": 39 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 20, - "column": 38 - }, - "end": { - "line": 20, - "column": 39 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test-type-template-literal3-expected.txt b/es2panda/test/parser/ts/test-type-template-literal3-expected.txt index 0b54b489de7366f4a1c2bb1d6888a284ad622a1b..6b7d1c40b13bee793c5fe4d9497bc8c0fd960d7d 100644 --- a/es2panda/test/parser/ts/test-type-template-literal3-expected.txt +++ b/es2panda/test/parser/ts/test-type-template-literal3-expected.txt @@ -203,19 +203,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 16, - "column": 69 - }, - "end": { - "line": 16, - "column": 70 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -418,19 +405,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 69 - }, - "end": { - "line": 17, - "column": 70 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -527,19 +501,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 18, - "column": 33 - }, - "end": { - "line": 18, - "column": 34 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -635,19 +596,6 @@ "column": 34 } } - }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 19, - "column": 33 - }, - "end": { - "line": 19, - "column": 34 - } - } } ], "loc": { diff --git a/es2panda/test/parser/ts/test_generic-expected.txt b/es2panda/test/parser/ts/test_generic-expected.txt index 93c420015069514530364382e228ffd0afa65465..679b55c28c01607be19069eb1211f722ed499246 100644 --- a/es2panda/test/parser/ts/test_generic-expected.txt +++ b/es2panda/test/parser/ts/test_generic-expected.txt @@ -1395,19 +1395,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 27, - "column": 162 - }, - "end": { - "line": 27, - "column": 163 - } - } - }, { "type": "TSInterfaceDeclaration", "body": { @@ -6047,19 +6034,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 68, - "column": 57 - }, - "end": { - "line": 68, - "column": 58 - } - } - }, { "type": "TSTypeAliasDeclaration", "id": { @@ -6380,19 +6354,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 69, - "column": 61 - }, - "end": { - "line": 69, - "column": 62 - } - } - }, { "type": "ExpressionStatement", "expression": { diff --git a/es2panda/test/parser/ts/type_checker/typeAliasUsedAsValue-expected.txt b/es2panda/test/parser/ts/type_checker/typeAliasUsedAsValue-expected.txt index cad24d6196d0c8eb289429abbed45ef551c2783d..1ce11c47c360cf37c2a3ac82f2dd0cb1a2bc48b3 100644 --- a/es2panda/test/parser/ts/type_checker/typeAliasUsedAsValue-expected.txt +++ b/es2panda/test/parser/ts/type_checker/typeAliasUsedAsValue-expected.txt @@ -211,19 +211,6 @@ } } }, - { - "type": "EmptyStatement", - "loc": { - "start": { - "line": 17, - "column": 71 - }, - "end": { - "line": 17, - "column": 72 - } - } - }, { "type": "VariableDeclaration", "declarations": [