diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.1.normal.js b/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.1.normal.js index 11ee00792de0..95d6ab854811 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.1.normal.js @@ -7,8 +7,7 @@ //! 2 | } //! `---- //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | function f(yield = yield) { //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.2.minified.js b/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.2.minified.js index 11ee00792de0..95d6ab854811 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration3_es6.2.minified.js @@ -7,8 +7,7 @@ //! 2 | } //! `---- //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | function f(yield = yield) { //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.1.normal.js b/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.1.normal.js index 4fa64335c1d6..b4ee540cb18d 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.1.normal.js @@ -1,7 +1,6 @@ //// [FunctionDeclaration8_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | var v = { [yield]: foo } //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.2.minified.js b/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.2.minified.js index 4fa64335c1d6..b4ee540cb18d 100644 --- a/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/FunctionDeclaration8_es6.2.minified.js @@ -1,7 +1,6 @@ //// [FunctionDeclaration8_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | var v = { [yield]: foo } //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldExpression1_es6.1.normal.js b/crates/swc/tests/tsc-references/YieldExpression1_es6.1.normal.js index bfc8bf66e79d..f39bdf81f187 100644 --- a/crates/swc/tests/tsc-references/YieldExpression1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/YieldExpression1_es6.1.normal.js @@ -1,7 +1,6 @@ //// [YieldExpression1_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | yield; //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldExpression1_es6.2.minified.js b/crates/swc/tests/tsc-references/YieldExpression1_es6.2.minified.js index bfc8bf66e79d..f39bdf81f187 100644 --- a/crates/swc/tests/tsc-references/YieldExpression1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/YieldExpression1_es6.2.minified.js @@ -1,7 +1,6 @@ //// [YieldExpression1_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | yield; //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldExpression8_es6.1.normal.js b/crates/swc/tests/tsc-references/YieldExpression8_es6.1.normal.js index 53c1e0bfcd2a..0beb1bf3c92a 100644 --- a/crates/swc/tests/tsc-references/YieldExpression8_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/YieldExpression8_es6.1.normal.js @@ -1,7 +1,6 @@ //// [YieldExpression8_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | yield(foo); //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldExpression8_es6.2.minified.js b/crates/swc/tests/tsc-references/YieldExpression8_es6.2.minified.js index 53c1e0bfcd2a..0beb1bf3c92a 100644 --- a/crates/swc/tests/tsc-references/YieldExpression8_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/YieldExpression8_es6.2.minified.js @@ -1,7 +1,6 @@ //// [YieldExpression8_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | yield(foo); //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldStarExpression1_es6.1.normal.js b/crates/swc/tests/tsc-references/YieldStarExpression1_es6.1.normal.js index 57ed74ce9754..e14f7d85cf17 100644 --- a/crates/swc/tests/tsc-references/YieldStarExpression1_es6.1.normal.js +++ b/crates/swc/tests/tsc-references/YieldStarExpression1_es6.1.normal.js @@ -1,7 +1,6 @@ //// [YieldStarExpression1_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | yield * []; //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/YieldStarExpression1_es6.2.minified.js b/crates/swc/tests/tsc-references/YieldStarExpression1_es6.2.minified.js index 57ed74ce9754..e14f7d85cf17 100644 --- a/crates/swc/tests/tsc-references/YieldStarExpression1_es6.2.minified.js +++ b/crates/swc/tests/tsc-references/YieldStarExpression1_es6.2.minified.js @@ -1,7 +1,6 @@ //// [YieldStarExpression1_es6.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,---- //! 1 | yield * []; //! : ^^^^^ diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.1.normal.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.1.normal.js index 5a84d514f819..ed9fa18e3f69 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.1.normal.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.1.normal.js @@ -10,8 +10,7 @@ //! 5 | I // This should be the identifier 'I' //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | //! 2 | var interface: number, I: string; diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.2.minified.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.2.minified.js index 5a84d514f819..ed9fa18e3f69 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.2.minified.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface01.2.minified.js @@ -10,8 +10,7 @@ //! 5 | I // This should be the identifier 'I' //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | //! 2 | var interface: number, I: string; diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.1.normal.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.1.normal.js index bab29f990eac..f056ef847e65 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.1.normal.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.1.normal.js @@ -10,8 +10,7 @@ //! 5 | {} // This should be a block body //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | //! 2 | function f(interface: number, I: string) { diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.2.minified.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.2.minified.js index bab29f990eac..f056ef847e65 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.2.minified.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface02.2.minified.js @@ -10,8 +10,7 @@ //! 5 | {} // This should be a block body //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | //! 2 | function f(interface: number, I: string) { diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.1.normal.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.1.normal.js index 7c723f5ff708..18abb18af1ac 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.1.normal.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.1.normal.js @@ -10,8 +10,7 @@ //! 5 | interface // This should be the identifier 'interface' //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | var interface: number, I: string; //! 3 | diff --git a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.2.minified.js b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.2.minified.js index 7c723f5ff708..18abb18af1ac 100644 --- a/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.2.minified.js +++ b/crates/swc/tests/tsc-references/asiPreventsParsingAsInterface03.2.minified.js @@ -10,8 +10,7 @@ //! 5 | interface // This should be the identifier 'interface' //! `---- //! -//! x Unexpected token `interface`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | var interface: number, I: string; //! 3 | diff --git a/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.1.normal.js b/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.1.normal.js index 26b086b8e6df..5aec0e84e9f7 100644 --- a/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.1.normal.js +++ b/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.1.normal.js @@ -12,8 +12,7 @@ //! 8 | var BOOLEAN2 = delete ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | var ANY; //! 3 | @@ -37,8 +36,7 @@ //! 8 | var BOOLEAN2 = delete ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[5:1] //! 5 | var BOOLEAN1 = ANY delete ; //expect error //! 6 | diff --git a/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.2.minified.js b/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.2.minified.js index 26b086b8e6df..5aec0e84e9f7 100644 --- a/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.2.minified.js +++ b/crates/swc/tests/tsc-references/deleteOperatorInvalidOperations.2.minified.js @@ -12,8 +12,7 @@ //! 8 | var BOOLEAN2 = delete ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | var ANY; //! 3 | @@ -37,8 +36,7 @@ //! 8 | var BOOLEAN2 = delete ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[5:1] //! 5 | var BOOLEAN1 = ANY delete ; //expect error //! 6 | diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck32.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck32.1.normal.js index bf4fedf7d489..9d2308391374 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck32.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck32.1.normal.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck32.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | var s: string; //! 2 | var f: () => number = () => yield s; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck32.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck32.2.minified.js index bf4fedf7d489..9d2308391374 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck32.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck32.2.minified.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck32.ts] //! -//! x Unexpected token `yield`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | var s: string; //! 2 | var f: () => number = () => yield s; diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck39.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck39.1.normal.js index 97e791bb351b..988448380a8c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck39.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck39.1.normal.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck39.ts] //! -//! x Unexpected token `@`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | return y => { }; //! 3 | } diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck39.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck39.2.minified.js index 97e791bb351b..988448380a8c 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck39.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck39.2.minified.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck39.ts] //! -//! x Unexpected token `@`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[2:1] //! 2 | return y => { }; //! 3 | } diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck61.1.normal.js b/crates/swc/tests/tsc-references/generatorTypeCheck61.1.normal.js index 70f6b070473c..48b317755ed9 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck61.1.normal.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck61.1.normal.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck61.ts] //! -//! x Unexpected token `@`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | function * g() { //! 2 | @(yield 0) diff --git a/crates/swc/tests/tsc-references/generatorTypeCheck61.2.minified.js b/crates/swc/tests/tsc-references/generatorTypeCheck61.2.minified.js index 70f6b070473c..48b317755ed9 100644 --- a/crates/swc/tests/tsc-references/generatorTypeCheck61.2.minified.js +++ b/crates/swc/tests/tsc-references/generatorTypeCheck61.2.minified.js @@ -1,7 +1,6 @@ //// [generatorTypeCheck61.ts] //! -//! x Unexpected token `@`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | function * g() { //! 2 | @(yield 0) diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.1.normal.js b/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.1.normal.js index 59baccea01e3..11cdd10f258e 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.1.normal.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.1.normal.js @@ -1,7 +1,6 @@ //// [logicalNotOperatorInvalidOperations.ts] //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[8:1] //! 8 | var BOOLEAN2 = !b + b; //! 9 | diff --git a/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.2.minified.js b/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.2.minified.js index 59baccea01e3..11cdd10f258e 100644 --- a/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.2.minified.js +++ b/crates/swc/tests/tsc-references/logicalNotOperatorInvalidOperations.2.minified.js @@ -1,7 +1,6 @@ //// [logicalNotOperatorInvalidOperations.ts] //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[8:1] //! 8 | var BOOLEAN2 = !b + b; //! 9 | diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName37.1.normal.js b/crates/swc/tests/tsc-references/parserComputedPropertyName37.1.normal.js index fdbe00467f15..8d6ccfe7bfed 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName37.1.normal.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName37.1.normal.js @@ -1,7 +1,6 @@ //// [parserComputedPropertyName37.ts] //! -//! x Unexpected token `public`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | var v = { //! 2 | [public]: 0 diff --git a/crates/swc/tests/tsc-references/parserComputedPropertyName37.2.minified.js b/crates/swc/tests/tsc-references/parserComputedPropertyName37.2.minified.js index fdbe00467f15..8d6ccfe7bfed 100644 --- a/crates/swc/tests/tsc-references/parserComputedPropertyName37.2.minified.js +++ b/crates/swc/tests/tsc-references/parserComputedPropertyName37.2.minified.js @@ -1,7 +1,6 @@ //// [parserComputedPropertyName37.ts] //! -//! x Unexpected token `public`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | var v = { //! 2 | [public]: 0 diff --git a/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.1.normal.js b/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.1.normal.js index 4066c326ddf1..e830a2f142c7 100644 --- a/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.1.normal.js +++ b/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.1.normal.js @@ -1,7 +1,6 @@ //// [parserInterfaceDeclaration3.ts] //! -//! x Unexpected token `public`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | public interface I { //! : ^^^^^^ diff --git a/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.2.minified.js b/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.2.minified.js index 4066c326ddf1..e830a2f142c7 100644 --- a/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.2.minified.js +++ b/crates/swc/tests/tsc-references/parserInterfaceDeclaration3.2.minified.js @@ -1,7 +1,6 @@ //// [parserInterfaceDeclaration3.ts] //! -//! x Unexpected token `public`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, -//! | ` for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | public interface I { //! : ^^^^^^ diff --git a/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.1.normal.js b/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.1.normal.js index db647439cf3f..77d248b27118 100644 --- a/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.1.normal.js +++ b/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.1.normal.js @@ -10,8 +10,7 @@ //! 6 | private[key] = value; //! `---- //! -//! x Unexpected token `private`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[3:1] //! 3 | "set": function (key, value) { //! 4 | diff --git a/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.2.minified.js b/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.2.minified.js index db647439cf3f..77d248b27118 100644 --- a/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.2.minified.js +++ b/crates/swc/tests/tsc-references/parserStatementIsNotAMemberVariableDeclaration1.2.minified.js @@ -10,8 +10,7 @@ //! 6 | private[key] = value; //! `---- //! -//! x Unexpected token `private`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, -//! | regexp, ` for template literal, (, or an identifier +//! x Expression expected //! ,-[3:1] //! 3 | "set": function (key, value) { //! 4 | diff --git a/crates/swc/tests/tsc-references/tsxFragmentErrors.1.normal.js b/crates/swc/tests/tsc-references/tsxFragmentErrors.1.normal.js index 338c24430df5..4d33b8c79292 100644 --- a/crates/swc/tests/tsc-references/tsxFragmentErrors.1.normal.js +++ b/crates/swc/tests/tsc-references/tsxFragmentErrors.1.normal.js @@ -11,8 +11,7 @@ //! 12 | <>eof // Error //! `---- //! -//! x Unexpected token `>`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[9:1] //! 9 | //! 10 | <>hi // Error diff --git a/crates/swc/tests/tsc-references/tsxFragmentErrors.2.minified.js b/crates/swc/tests/tsc-references/tsxFragmentErrors.2.minified.js index 338c24430df5..4d33b8c79292 100644 --- a/crates/swc/tests/tsc-references/tsxFragmentErrors.2.minified.js +++ b/crates/swc/tests/tsc-references/tsxFragmentErrors.2.minified.js @@ -11,8 +11,7 @@ //! 12 | <>eof // Error //! `---- //! -//! x Unexpected token `>`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[9:1] //! 9 | //! 10 | <>hi // Error diff --git a/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.1.normal.js b/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.1.normal.js index f4f681424881..af522d960d4c 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.1.normal.js +++ b/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.1.normal.js @@ -12,8 +12,7 @@ //! 7 | var ANY1 = typeof ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | // Unary operator typeof //! 2 | @@ -25,8 +24,7 @@ //! 7 | var ANY1 = typeof ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[4:1] //! 4 | var ANY = ANY typeof ; //expect error //! 5 | diff --git a/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.2.minified.js b/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.2.minified.js index f4f681424881..af522d960d4c 100644 --- a/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.2.minified.js +++ b/crates/swc/tests/tsc-references/typeofOperatorInvalidOperations.2.minified.js @@ -12,8 +12,7 @@ //! 7 | var ANY1 = typeof ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | // Unary operator typeof //! 2 | @@ -25,8 +24,7 @@ //! 7 | var ANY1 = typeof ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[4:1] //! 4 | var ANY = ANY typeof ; //expect error //! 5 | diff --git a/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.1.normal.js b/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.1.normal.js index af1090aa0dc8..0a7bb8608a9f 100644 --- a/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.1.normal.js +++ b/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.1.normal.js @@ -12,8 +12,7 @@ //! 7 | var ANY1 = void ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | // Unary operator void //! 2 | @@ -25,8 +24,7 @@ //! 7 | var ANY1 = void ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[4:1] //! 4 | var ANY = ANY void ; //expect error //! 5 | diff --git a/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.2.minified.js b/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.2.minified.js index af1090aa0dc8..0a7bb8608a9f 100644 --- a/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.2.minified.js +++ b/crates/swc/tests/tsc-references/voidOperatorInvalidOperations.2.minified.js @@ -12,8 +12,7 @@ //! 7 | var ANY1 = void ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[1:1] //! 1 | // Unary operator void //! 2 | @@ -25,8 +24,7 @@ //! 7 | var ANY1 = void ; //! `---- //! -//! x Unexpected token `;`. Expected this, import, async, function, [ for array literal, { for object literal, @ for decorator, function, class, null, true, false, number, bigint, string, regexp, ` -//! | for template literal, (, or an identifier +//! x Expression expected //! ,-[4:1] //! 4 | var ANY = ANY void ; //expect error //! 5 |