mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 13:48:55 +00:00
6519 lines
245 KiB
Text
6519 lines
245 KiB
Text
TypeScript Summary:
|
||
AST Parsed : 4325/4865 (88.90%)
|
||
Expect to Parse: "async/es2017/asyncArrowFunction/asyncArrowFunction6_es2017.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[async/es2017/asyncArrowFunction/asyncArrowFunction6_es2017.ts:3:1]
|
||
3 │
|
||
4 │ var foo = async (a = await): Promise<void> => {
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "async/es2017/asyncArrowFunction/asyncArrowFunction7_es2017.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es2017/asyncArrowFunction/asyncArrowFunction7_es2017.ts:5:1]
|
||
5 │ // 'await' here is an identifier, and not an await expression.
|
||
6 │ var foo = async (a = await): Promise<void> => {
|
||
· ─
|
||
7 │ }
|
||
╰────
|
||
Expect to Parse: "async/es2017/asyncArrowFunction/asyncArrowFunction8_es2017.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es2017/asyncArrowFunction/asyncArrowFunction8_es2017.ts:4:1]
|
||
4 │ var foo = async (): Promise<void> => {
|
||
5 │ var v = { [await]: foo }
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es2017/await_unaryExpression_es2017_3.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[async/es2017/await_unaryExpression_es2017_3.ts:3:1]
|
||
3 │ async function bar1() {
|
||
4 │ ++await 42; // Error
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es2017/functionDeclarations/asyncFunctionDeclaration6_es2017.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es2017/functionDeclarations/asyncFunctionDeclaration6_es2017.ts:2:1]
|
||
2 │ // @noEmitHelpers: true
|
||
3 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "async/es2017/functionDeclarations/asyncFunctionDeclaration7_es2017.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es2017/functionDeclarations/asyncFunctionDeclaration7_es2017.ts:4:1]
|
||
4 │ // 'await' here is an identifier, and not a yield expression.
|
||
5 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es2017/functionDeclarations/asyncFunctionDeclaration9_es2017.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es2017/functionDeclarations/asyncFunctionDeclaration9_es2017.ts:3:1]
|
||
3 │ async function foo(): Promise<void> {
|
||
4 │ var v = { [await]: foo }
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[async/es5/asyncArrowFunction/asyncArrowFunction6_es5.ts:4:1]
|
||
4 │
|
||
5 │ var foo = async (a = await): Promise<void> => {
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es5/asyncArrowFunction/asyncArrowFunction7_es5.ts:6:1]
|
||
6 │ // 'await' here is an identifier, and not an await expression.
|
||
7 │ var foo = async (a = await): Promise<void> => {
|
||
· ─
|
||
8 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es5/asyncArrowFunction/asyncArrowFunction8_es5.ts:5:1]
|
||
5 │ var foo = async (): Promise<void> => {
|
||
6 │ var v = { [await]: foo }
|
||
· ─
|
||
7 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/asyncConstructor_es5.ts"
|
||
|
||
× Constructor can't be an async method
|
||
╭─[async/es5/asyncConstructor_es5.ts:4:1]
|
||
4 │ class C {
|
||
5 │ async constructor() {
|
||
· ─────┬─────
|
||
· ╰── Constructor can't be an async method
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/asyncGetter_es5.ts"
|
||
|
||
× Expect token
|
||
╭─[async/es5/asyncGetter_es5.ts:4:1]
|
||
4 │ class C {
|
||
5 │ async get foo() {
|
||
· ─┬─
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/asyncSetter_es5.ts"
|
||
|
||
× Expect token
|
||
╭─[async/es5/asyncSetter_es5.ts:4:1]
|
||
4 │ class C {
|
||
5 │ async set foo(value) {
|
||
· ─┬─
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es5/functionDeclarations/asyncFunctionDeclaration6_es5.ts:3:1]
|
||
3 │ // @noEmitHelpers: true
|
||
4 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es5/functionDeclarations/asyncFunctionDeclaration7_es5.ts:5:1]
|
||
5 │ // 'await' here is an identifier, and not a yield expression.
|
||
6 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
7 │ }
|
||
╰────
|
||
Expect to Parse: "async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es5/functionDeclarations/asyncFunctionDeclaration9_es5.ts:4:1]
|
||
4 │ async function foo(): Promise<void> {
|
||
5 │ var v = { [await]: foo }
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/asyncArrowFunction/asyncArrowFunction6_es6.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[async/es6/asyncArrowFunction/asyncArrowFunction6_es6.ts:3:1]
|
||
3 │
|
||
4 │ var foo = async (a = await): Promise<void> => {
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "async/es6/asyncArrowFunction/asyncArrowFunction7_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es6/asyncArrowFunction/asyncArrowFunction7_es6.ts:5:1]
|
||
5 │ // 'await' here is an identifier, and not an await expression.
|
||
6 │ var foo = async (a = await): Promise<void> => {
|
||
· ─
|
||
7 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/asyncArrowFunction/asyncArrowFunction8_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es6/asyncArrowFunction/asyncArrowFunction8_es6.ts:4:1]
|
||
4 │ var foo = async (): Promise<void> => {
|
||
5 │ var v = { [await]: foo }
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/asyncConstructor_es6.ts"
|
||
|
||
× Constructor can't be an async method
|
||
╭─[async/es6/asyncConstructor_es6.ts:3:1]
|
||
3 │ class C {
|
||
4 │ async constructor() {
|
||
· ─────┬─────
|
||
· ╰── Constructor can't be an async method
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/asyncGetter_es6.ts"
|
||
|
||
× Expect token
|
||
╭─[async/es6/asyncGetter_es6.ts:3:1]
|
||
3 │ class C {
|
||
4 │ async get foo() {
|
||
· ─┬─
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/asyncSetter_es6.ts"
|
||
|
||
× Expect token
|
||
╭─[async/es6/asyncSetter_es6.ts:3:1]
|
||
3 │ class C {
|
||
4 │ async set foo(value) {
|
||
· ─┬─
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/await_unaryExpression_es6_3.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[async/es6/await_unaryExpression_es6_3.ts:3:1]
|
||
3 │ async function bar1() {
|
||
4 │ ++await 42; // Error
|
||
· ────┬───
|
||
· ╰── Cannot assign to this expression
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/functionDeclarations/asyncFunctionDeclaration6_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es6/functionDeclarations/asyncFunctionDeclaration6_es6.ts:2:1]
|
||
2 │ // @noEmitHelpers: true
|
||
3 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/functionDeclarations/asyncFunctionDeclaration7_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es6/functionDeclarations/asyncFunctionDeclaration7_es6.ts:4:1]
|
||
4 │ // 'await' here is an identifier, and not a yield expression.
|
||
5 │ async function foo(a = await): Promise<void> {
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "async/es6/functionDeclarations/asyncFunctionDeclaration9_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[async/es6/functionDeclarations/asyncFunctionDeclaration9_es6.ts:3:1]
|
||
3 │ async function foo(): Promise<void> {
|
||
4 │ var v = { [await]: foo }
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classDeclarations/classAbstractKeyword/classAbstractCrashedOnce.ts:7:1]
|
||
7 │ this.
|
||
8 │ }
|
||
· ─
|
||
9 │ }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classDeclarations/classAbstractKeyword/classAbstractManyKeywords.ts:2:1]
|
||
2 │ export abstract class B {}
|
||
3 │ default abstract class C {}
|
||
· ───────
|
||
4 │ import abstract class D {}
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classDeclarations/classAbstractKeyword/classAbstractMixedWithModifiers.ts:15:1]
|
||
15 │ abstract async foo_f();
|
||
16 │ async abstract foo_g();
|
||
· ──┬──
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
17 │ }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classBody/classBodyWithStatements.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/classDeclarations/classBody/classBodyWithStatements.ts:1:1]
|
||
1 │ class C {
|
||
2 │ var x = 1;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/classDeclarations/classHeritageSpecification/classExtendingOptionalChain.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classDeclarations/classHeritageSpecification/classExtendingOptionalChain.ts:8:1]
|
||
8 │ // error
|
||
9 │ class C2 implements A?.B {}
|
||
· ─┬
|
||
· ╰── Expect `{` here, but found `?.`
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts:6:1]
|
||
6 │ class C4 extends Void { }
|
||
7 │ class C4a extends void {}
|
||
· ────
|
||
8 │ class C5 extends Null { }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts:2:1]
|
||
2 │
|
||
3 │ class C4a extends void {}
|
||
· ────
|
||
4 │ class C5a extends null { }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType.ts:5:1]
|
||
5 │
|
||
6 │ class C2 extends { foo: string; } { } // error
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
7 │ var x: { foo: string; }
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts:1:1]
|
||
1 │ class C2 extends { foo: string; } { } // error
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
2 │
|
||
╰────
|
||
Expect to Parse: "classes/classDeclarations/classWithPredefinedTypesAsNames2.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classDeclarations/classWithPredefinedTypesAsNames2.ts:2:1]
|
||
2 │
|
||
3 │ class void {}
|
||
· ──┬─
|
||
· ╰── Expect `{` here, but found `void`
|
||
╰────
|
||
Expect to Parse: "classes/classStaticBlock/classStaticBlock20.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/classStaticBlock/classStaticBlock20.ts:1:1]
|
||
1 │ class C {
|
||
2 │ async static {
|
||
· ┬
|
||
· ╰── Expect `(` here, but found `{`
|
||
3 │ // something
|
||
╰────
|
||
Expect to Parse: "classes/classStaticBlock/classStaticBlock22.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classStaticBlock/classStaticBlock22.ts:26:1]
|
||
26 │ await = 1; // legal
|
||
27 │ x = await; // legal (initializers have an implicit function boundary)
|
||
· ─
|
||
28 │ };
|
||
╰────
|
||
Expect to Parse: "classes/classStaticBlock/classStaticBlock26.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classStaticBlock/classStaticBlock26.ts:4:1]
|
||
4 │ static {
|
||
5 │ await; // illegal
|
||
· ─
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "classes/classStaticBlock/classStaticBlock6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/classStaticBlock/classStaticBlock6.ts:12:1]
|
||
12 │ static {
|
||
13 │ await: if (true) {
|
||
· ─
|
||
14 │
|
||
╰────
|
||
Expect to Parse: "classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts:7:1]
|
||
7 │ class Derived extends Base {
|
||
8 │ a: super();
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
9 │ b() {
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/indexMemberDeclarations/privateIndexer2.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/indexMemberDeclarations/privateIndexer2.ts:3:1]
|
||
3 │ var x = {
|
||
4 │ private [x: string]: string;
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `[`
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/accessibility/privateInstanceMemberAccessibility.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/members/accessibility/privateInstanceMemberAccessibility.ts:11:1]
|
||
11 │
|
||
12 │ a: this.foo; // error
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
13 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/members/privateNames/privateNameAndPropertySignature.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameAndPropertySignature.ts:1:1]
|
||
1 │ type A = {
|
||
2 │ #foo: string;
|
||
· ────
|
||
3 │ #bar(): string;
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameBadDeclaration.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameBadDeclaration.ts:2:1]
|
||
2 │ A.prototype = {
|
||
3 │ #x: 1, // Error
|
||
· ──
|
||
4 │ #m() {}, // Error
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameConstructorReserved.ts"
|
||
|
||
× Classes can't have an element named '#constructor'
|
||
╭─[classes/members/privateNames/privateNameConstructorReserved.ts:3:1]
|
||
3 │ class A {
|
||
4 │ #constructor() {} // Error: `#constructor` is a reserved word.
|
||
· ──────┬─────
|
||
· ╰── Classes can't have an element named '#constructor'
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameDuplicateField.ts"
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:7:1]
|
||
7 │ class A_Field_Field {
|
||
8 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
9 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
10 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:13:1]
|
||
13 │ class A_Field_Method {
|
||
14 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
15 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
16 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:19:1]
|
||
19 │ class A_Field_Getter {
|
||
20 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
21 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
22 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:25:1]
|
||
25 │ class A_Field_Setter {
|
||
26 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
27 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
28 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:31:1]
|
||
31 │ class A_Field_StaticField {
|
||
32 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
33 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
34 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:37:1]
|
||
37 │ class A_Field_StaticMethod {
|
||
38 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
39 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
40 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:43:1]
|
||
43 │ class A_Field_StaticGetter {
|
||
44 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
45 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
46 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:49:1]
|
||
49 │ class A_Field_StaticSetter {
|
||
50 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
51 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
52 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:57:1]
|
||
57 │ class A_Method_Field {
|
||
58 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
59 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
60 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:63:1]
|
||
63 │ class A_Method_Method {
|
||
64 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
65 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
66 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:69:1]
|
||
69 │ class A_Method_Getter {
|
||
70 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
71 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
72 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:75:1]
|
||
75 │ class A_Method_Setter {
|
||
76 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
77 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
78 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:81:1]
|
||
81 │ class A_Method_StaticField {
|
||
82 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
83 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
84 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:87:1]
|
||
87 │ class A_Method_StaticMethod {
|
||
88 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
89 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
90 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:93:1]
|
||
93 │ class A_Method_StaticGetter {
|
||
94 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
95 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
96 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:99:1]
|
||
99 │ class A_Method_StaticSetter {
|
||
100 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
101 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
102 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:108:1]
|
||
108 │ class A_Getter_Field {
|
||
109 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
110 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
111 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:114:1]
|
||
114 │ class A_Getter_Method {
|
||
115 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
116 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
117 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:120:1]
|
||
120 │ class A_Getter_Getter {
|
||
121 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
122 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
123 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:132:1]
|
||
132 │ class A_Getter_StaticField {
|
||
133 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
134 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
135 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:138:1]
|
||
138 │ class A_Getter_StaticMethod {
|
||
139 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
140 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
141 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:144:1]
|
||
144 │ class A_Getter_StaticGetter {
|
||
145 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
146 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
147 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:150:1]
|
||
150 │ class A_Getter_StaticSetter {
|
||
151 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
152 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
153 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:158:1]
|
||
158 │ class A_Setter_Field {
|
||
159 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
160 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
161 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:164:1]
|
||
164 │ class A_Setter_Method {
|
||
165 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
166 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
167 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:176:1]
|
||
176 │ class A_Setter_Setter {
|
||
177 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
178 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
179 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:182:1]
|
||
182 │ class A_Setter_StaticField {
|
||
183 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
184 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
185 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:188:1]
|
||
188 │ class A_Setter_StaticMethod {
|
||
189 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
190 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
191 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:194:1]
|
||
194 │ class A_Setter_StaticGetter {
|
||
195 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
196 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
197 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:200:1]
|
||
200 │ class A_Setter_StaticSetter {
|
||
201 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
202 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
203 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:208:1]
|
||
208 │ class A_StaticField_Field {
|
||
209 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
210 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
211 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:214:1]
|
||
214 │ class A_StaticField_Method {
|
||
215 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
216 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
217 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:220:1]
|
||
220 │ class A_StaticField_Getter {
|
||
221 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
222 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
223 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:226:1]
|
||
226 │ class A_StaticField_Setter {
|
||
227 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
228 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
229 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:232:1]
|
||
232 │ class A_StaticField_StaticField {
|
||
233 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
234 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
235 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:238:1]
|
||
238 │ class A_StaticField_StaticMethod {
|
||
239 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
240 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
241 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:244:1]
|
||
244 │ class A_StaticField_StaticGetter {
|
||
245 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
246 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
247 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:250:1]
|
||
250 │ class A_StaticField_StaticSetter {
|
||
251 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
252 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
253 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:258:1]
|
||
258 │ class A_StaticMethod_Field {
|
||
259 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
260 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
261 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:264:1]
|
||
264 │ class A_StaticMethod_Method {
|
||
265 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
266 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
267 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:270:1]
|
||
270 │ class A_StaticMethod_Getter {
|
||
271 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
272 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
273 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:276:1]
|
||
276 │ class A_StaticMethod_Setter {
|
||
277 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
278 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
279 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:282:1]
|
||
282 │ class A_StaticMethod_StaticField {
|
||
283 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
284 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
285 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:288:1]
|
||
288 │ class A_StaticMethod_StaticMethod {
|
||
289 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
290 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
291 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:294:1]
|
||
294 │ class A_StaticMethod_StaticGetter {
|
||
295 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
296 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
297 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:300:1]
|
||
300 │ class A_StaticMethod_StaticSetter {
|
||
301 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
302 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
303 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:309:1]
|
||
309 │ class A_StaticGetter_Field {
|
||
310 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
311 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
312 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:315:1]
|
||
315 │ class A_StaticGetter_Method {
|
||
316 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
317 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
318 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:321:1]
|
||
321 │ class A_StaticGetter_Getter {
|
||
322 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
323 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
324 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:327:1]
|
||
327 │ class A_StaticGetter_Setter {
|
||
328 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
329 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
330 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:333:1]
|
||
333 │ class A_StaticGetter_StaticField {
|
||
334 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
335 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
336 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:339:1]
|
||
339 │ class A_StaticGetter_StaticMethod {
|
||
340 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
341 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
342 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:345:1]
|
||
345 │ class A_StaticGetter_StaticGetter {
|
||
346 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
347 │ static get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
348 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:358:1]
|
||
358 │ class A_StaticSetter_Field {
|
||
359 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
360 │ #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
361 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:364:1]
|
||
364 │ class A_StaticSetter_Method {
|
||
365 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
366 │ #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
367 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:371:1]
|
||
371 │ class A_StaticSetter_Getter {
|
||
372 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
373 │ get #foo() { return ""}
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
374 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:377:1]
|
||
377 │ class A_StaticSetter_Setter {
|
||
378 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
379 │ set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
380 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:383:1]
|
||
383 │ class A_StaticSetter_StaticField {
|
||
384 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
385 │ static #foo = "foo";
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
386 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:389:1]
|
||
389 │ class A_StaticSetter_StaticMethod {
|
||
390 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
391 │ static #foo() { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
392 │ }
|
||
╰────
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNameDuplicateField.ts:401:1]
|
||
401 │ class A_StaticSetter_StaticSetter {
|
||
402 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
403 │ static set #foo(value: string) { }
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
404 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameEnum.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameEnum.ts:2:1]
|
||
2 │ enum E {
|
||
3 │ #x
|
||
· ──
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameHashCharName.ts"
|
||
|
||
× Invalid Character `'\r'`
|
||
╭─[classes/members/privateNames/privateNameHashCharName.ts:2:1]
|
||
2 │
|
||
3 │ #
|
||
· ▲
|
||
· ╰── Invalid Character `
|
||
`
|
||
4 │
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameInInExpression.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/members/privateNames/privateNameInInExpression.ts:28:1]
|
||
28 │
|
||
29 │ const c = (#field) in v; // Bad - privateID is not an expression on its own
|
||
· ┬
|
||
· ╰── Expect `in` here, but found `)`
|
||
30 │
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameInInExpressionTransform.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[classes/members/privateNames/privateNameInInExpressionTransform.ts:30:1]
|
||
30 │ invalidLHS(v: any) {
|
||
31 │ 'prop' in v = 10;
|
||
· ─────┬─────
|
||
· ╰── Cannot assign to this expression
|
||
32 │ #field in v = 10;
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameInObjectLiteral-1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameInObjectLiteral-1.ts:1:1]
|
||
1 │ const obj = {
|
||
2 │ #foo: 1
|
||
· ────
|
||
3 │ };
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameInObjectLiteral-2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameInObjectLiteral-2.ts:1:1]
|
||
1 │ const obj = {
|
||
2 │ #foo() {
|
||
· ────
|
||
3 │
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameInObjectLiteral-3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameInObjectLiteral-3.ts:1:1]
|
||
1 │ const obj = {
|
||
2 │ get #foo() {
|
||
· ────
|
||
3 │ return ""
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameJsBadDeclaration.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameJsBadDeclaration.ts:7:1]
|
||
7 │ A.prototype = {
|
||
8 │ #x: 1, // Error
|
||
· ──
|
||
9 │ #m() {}, // Error
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameNotAllowedOutsideClass.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNameNotAllowedOutsideClass.ts:3:1]
|
||
3 │
|
||
4 │ const #foo = 3;
|
||
· ────
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNameStaticMethodAsync.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/members/privateNames/privateNameStaticMethodAsync.ts:12:1]
|
||
12 │ }
|
||
13 │ async static *#bazBad() { yield 42; }
|
||
· ┬
|
||
· ╰── Expect `(` here, but found `*`
|
||
14 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNamesAndIndexedAccess.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNamesAndIndexedAccess.ts:10:1]
|
||
10 │ // not supported yet, could support in future:
|
||
11 │ const badForNow: C[#bar] = 3; // Error
|
||
· ────
|
||
12 │ // will never use this syntax, already taken:
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNamesIncompatibleModifiers.ts"
|
||
|
||
× Expect token
|
||
╭─[classes/members/privateNames/privateNamesIncompatibleModifiers.ts:29:1]
|
||
29 │ declare set #whatProp(value: number) // Error
|
||
30 │ async get #asyncProp() { return 1; } // Error
|
||
· ─────┬────
|
||
· ╰── Expect `(` here, but found `#identifier`
|
||
31 │ async set #asyncProp(value: number) { } // Error
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNamesNotAllowedAsParameters.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNamesNotAllowedAsParameters.ts:3:1]
|
||
3 │ class A {
|
||
4 │ setFoo(#foo: string) {}
|
||
· ────
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNamesNotAllowedInVariableDeclarations.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/members/privateNames/privateNamesNotAllowedInVariableDeclarations.ts:3:1]
|
||
3 │
|
||
4 │ const #foo = 3;
|
||
· ────
|
||
╰────
|
||
Expect to Parse: "classes/members/privateNames/privateNamesUnique-3.ts"
|
||
|
||
× Identifier `"foo"` has already been declared
|
||
╭─[classes/members/privateNames/privateNamesUnique-3.ts:3:1]
|
||
3 │ class A {
|
||
4 │ #foo = 1;
|
||
· ──┬─
|
||
· ╰── `foo` has already been declared here
|
||
5 │ static #foo = true; // error (duplicate)
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
6 │ // because static and instance private names
|
||
╰────
|
||
Expect to Parse: "classes/nestedClassDeclaration.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/nestedClassDeclaration.ts:4:1]
|
||
4 │ x: string;
|
||
5 │ class C2 {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/propertyMemberDeclarations/autoAccessor11.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/propertyMemberDeclarations/autoAccessor11.ts:13:1]
|
||
13 │
|
||
14 │ accessor accessor
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
15 │ d;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/propertyMemberDeclarations/autoAccessor4.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/propertyMemberDeclarations/autoAccessor4.ts:4:1]
|
||
4 │ class C1 {
|
||
5 │ accessor 0: any;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ accessor 1 = 1;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/propertyMemberDeclarations/autoAccessorAllowedModifiers.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/propertyMemberDeclarations/autoAccessorAllowedModifiers.ts:15:1]
|
||
15 │ accessor "k": any;
|
||
16 │ accessor 108: any;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
17 │ accessor ["m"]: any;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[classes/propertyMemberDeclarations/autoAccessorDisallowedModifiers.ts:4:1]
|
||
4 │ abstract class C1 {
|
||
5 │ accessor accessor a: any;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ readonly accessor b: any;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "classes/propertyMemberDeclarations/propertyNamedConstructor.ts"
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[classes/propertyMemberDeclarations/propertyNamedConstructor.ts:1:1]
|
||
1 │ class X1 {
|
||
2 │ "constructor" = 3; // Error
|
||
· ──────┬──────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "classes/propertyMemberDeclarations/propertyNamedPrototype.ts"
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/propertyNamedPrototype.ts:2:1]
|
||
2 │ prototype: number; // ok
|
||
3 │ static prototype: C; // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts"
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:25:1]
|
||
25 │ class StaticPrototype {
|
||
26 │ static prototype: number; // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
27 │ prototype: string; // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:30:1]
|
||
30 │ class StaticPrototypeFn {
|
||
31 │ static prototype() {} // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
32 │ prototype() {} // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:84:1]
|
||
84 │ var StaticPrototype_Anonymous = class {
|
||
85 │ static prototype: number; // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
86 │ prototype: string; // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:89:1]
|
||
89 │ var StaticPrototypeFn_Anonymous = class {
|
||
90 │ static prototype() {} // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
91 │ prototype() {} // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:151:1]
|
||
151 │ export default class StaticPrototype {
|
||
152 │ static prototype: number; // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
153 │ prototype: string; // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflicts.ts:158:1]
|
||
158 │ export default class StaticPrototypeFn {
|
||
159 │ static prototype() {} // error
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
160 │ prototype() {} // ok
|
||
╰────
|
||
Expect to Parse: "classes/propertyMemberDeclarations/staticPropertyNameConflictsInAmbientContext.ts"
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflictsInAmbientContext.ts:26:1]
|
||
26 │ declare class StaticPrototype {
|
||
27 │ static prototype: number; // ok
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
28 │ prototype: string; // ok
|
||
╰────
|
||
|
||
× Classes may not have a static property named prototype
|
||
╭─[classes/propertyMemberDeclarations/staticPropertyNameConflictsInAmbientContext.ts:31:1]
|
||
31 │ declare class StaticPrototypeFn {
|
||
32 │ static prototype: any; // ok
|
||
· ────┬────
|
||
· ╰── Classes may not have a static property named prototype
|
||
33 │ prototype(): any; // ok
|
||
╰────
|
||
Expect to Parse: "classes/staticIndexSignature/staticIndexSignature4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/staticIndexSignature/staticIndexSignature4.ts:13:1]
|
||
13 │ interface IB {
|
||
14 │ static [s: string]: number;
|
||
· ──────
|
||
15 │ static [s: number]: 42 | 233;
|
||
╰────
|
||
Expect to Parse: "classes/staticIndexSignature/staticIndexSignature5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[classes/staticIndexSignature/staticIndexSignature5.ts:8:1]
|
||
8 │ interface I {
|
||
9 │ static readonly [s: string]: number;
|
||
· ──────
|
||
10 │ static readonly [s: number]: 42 | 233
|
||
╰────
|
||
Expect to Parse: "controlFlow/assertionTypePredicates1.ts"
|
||
|
||
× Expect token
|
||
╭─[controlFlow/assertionTypePredicates1.ts:166:1]
|
||
166 │ get p1(): this is string;
|
||
167 │ set p1(x: this is string);
|
||
· ─┬
|
||
· ╰── Expect `,` here, but found `is`
|
||
168 │ get p2(): asserts this is string;
|
||
╰────
|
||
Expect to Parse: "controlFlow/definiteAssignmentAssertions.ts"
|
||
|
||
× Unexpected token
|
||
╭─[controlFlow/definiteAssignmentAssertions.ts:71:1]
|
||
71 │ function f4() {
|
||
72 │ let a!;
|
||
· ─
|
||
73 │ let b! = 1;
|
||
╰────
|
||
Expect to Parse: "controlFlow/definiteAssignmentAssertionsWithObjectShortHand.ts"
|
||
|
||
× Expect token
|
||
╭─[controlFlow/definiteAssignmentAssertionsWithObjectShortHand.ts:4:1]
|
||
4 │ const a: string | undefined = 'ff';
|
||
5 │ const foo = { a! }
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `!`
|
||
6 │
|
||
╰────
|
||
Expect to Parse: "decorators/class/accessor/decoratorOnClassAccessor3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/class/accessor/decoratorOnClassAccessor3.ts:5:1]
|
||
5 │ class C {
|
||
6 │ public @dec get accessor() { return 1; }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/class/accessor/decoratorOnClassAccessor6.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/class/accessor/decoratorOnClassAccessor6.ts:5:1]
|
||
5 │ class C {
|
||
6 │ public @dec set accessor(value: number) { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts"
|
||
|
||
× Expect token
|
||
╭─[decorators/class/constructor/parameter/decoratorOnClassConstructorParameter4.ts:5:1]
|
||
5 │ class C {
|
||
6 │ constructor(public @dec p: number) {}
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `@`
|
||
7 │ }
|
||
╰────
|
||
Expect to Parse: "decorators/class/method/decoratorOnClassMethod17.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/class/method/decoratorOnClassMethod17.ts:6:1]
|
||
6 │ class Foo {
|
||
7 │ private prop @decorator
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
8 │ foo() {
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/class/method/decoratorOnClassMethod3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/class/method/decoratorOnClassMethod3.ts:5:1]
|
||
5 │ class C {
|
||
6 │ public @dec method() {}
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/class/property/decoratorOnClassProperty3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/class/property/decoratorOnClassProperty3.ts:5:1]
|
||
5 │ class C {
|
||
6 │ public @dec prop;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/decoratorMetadata-jsdoc.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[decorators/decoratorMetadata-jsdoc.ts:8:1]
|
||
8 │ @decorator()
|
||
9 │ a?: string?;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
10 │ @decorator()
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "decorators/invalid/decoratorOnArrowFunction.ts"
|
||
|
||
× Unexpected token
|
||
╭─[decorators/invalid/decoratorOnArrowFunction.ts:2:1]
|
||
2 │
|
||
3 │ var F = @dec () => {
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "decorators/invalid/decoratorOnEnum2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[decorators/invalid/decoratorOnEnum2.ts:3:1]
|
||
3 │ enum E {
|
||
4 │ @dec A
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "decorators/invalid/decoratorOnFunctionExpression.ts"
|
||
|
||
× Unexpected token
|
||
╭─[decorators/invalid/decoratorOnFunctionExpression.ts:2:1]
|
||
2 │
|
||
3 │ var F = @dec function () {
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "dynamicImport/importCallExpressionGrammarError.ts"
|
||
|
||
× Unexpected token
|
||
╭─[dynamicImport/importCallExpressionGrammarError.ts:8:1]
|
||
8 │ var a = ["./0"];
|
||
9 │ import(...["PathModule"]);
|
||
· ───
|
||
10 │
|
||
╰────
|
||
Expect to Parse: "enums/enumErrors.ts"
|
||
|
||
× Expect token
|
||
╭─[enums/enumErrors.ts:47:1]
|
||
47 │
|
||
48 │ postSemicolon;
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
49 │ postColonValueComma: 2,
|
||
╰────
|
||
Expect to Parse: "es2018/invalidTaggedTemplateEscapeSequences.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es2018/invalidTaggedTemplateEscapeSequences.ts:9:1]
|
||
9 │ const x = tag`\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`;
|
||
10 │ const y = `\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`; // should error with NoSubstitutionTemplate
|
||
· ─────┬────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
11 │ const z = tag`\u{hello} \xtraordinary wonderful \uworld` // should work with Tagged NoSubstitutionTemplate
|
||
╰────
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es2018/invalidTaggedTemplateEscapeSequences.ts:9:1]
|
||
9 │ const x = tag`\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`;
|
||
10 │ const y = `\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`; // should error with NoSubstitutionTemplate
|
||
· ───────┬───────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
11 │ const z = tag`\u{hello} \xtraordinary wonderful \uworld` // should work with Tagged NoSubstitutionTemplate
|
||
╰────
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es2018/invalidTaggedTemplateEscapeSequences.ts:9:1]
|
||
9 │ const x = tag`\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`;
|
||
10 │ const y = `\u{hello} ${ 100 } \xtraordinary ${ 200 } wonderful ${ 300 } \uworld`; // should error with NoSubstitutionTemplate
|
||
· ────┬───
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
11 │ const z = tag`\u{hello} \xtraordinary wonderful \uworld` // should work with Tagged NoSubstitutionTemplate
|
||
╰────
|
||
Expect to Parse: "es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts"
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:1:1]
|
||
1 │ var f1 = ()
|
||
2 │ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
3 │ var f2 = (x: string, y: string) /*
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:3:1]
|
||
3 │ var f2 = (x: string, y: string) /*
|
||
4 │ */ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
5 │ var f3 = (x: string, y: number, ...rest)
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:5:1]
|
||
5 │ var f3 = (x: string, y: number, ...rest)
|
||
6 │ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
7 │ var f4 = (x: string, y: number, ...rest) /*
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:7:1]
|
||
7 │ var f4 = (x: string, y: number, ...rest) /*
|
||
8 │ */ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
9 │ var f5 = (...rest)
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:9:1]
|
||
9 │ var f5 = (...rest)
|
||
10 │ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
11 │ var f6 = (...rest) /*
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:11:1]
|
||
11 │ var f6 = (...rest) /*
|
||
12 │ */ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
13 │ var f7 = (x: string, y: number, z = 10)
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:13:1]
|
||
13 │ var f7 = (x: string, y: number, z = 10)
|
||
14 │ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
15 │ var f8 = (x: string, y: number, z = 10) /*
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:15:1]
|
||
15 │ var f8 = (x: string, y: number, z = 10) /*
|
||
16 │ */ => { }
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
17 │ var f9 = (a: number): number
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:17:1]
|
||
17 │ var f9 = (a: number): number
|
||
18 │ => a;
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
19 │ var f10 = (a: number) :
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:20:1]
|
||
20 │ number
|
||
21 │ => a
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
22 │ var f11 = (a: number): number /*
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:22:1]
|
||
22 │ var f11 = (a: number): number /*
|
||
23 │ */ => a;
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
24 │ var f12 = (a: number) :
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:25:1]
|
||
25 │ number /*
|
||
26 │ */ => a
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
27 │
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:51:1]
|
||
51 │ foo(()
|
||
52 │ => true);
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
53 │ foo(()
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:53:1]
|
||
53 │ foo(()
|
||
54 │ => { return false; });
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
55 │
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:58:1]
|
||
58 │ constructor(x: number, thing = ()
|
||
59 │ => 100) {
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
60 │ }
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:62:1]
|
||
62 │ public m = ()
|
||
63 │ => 2 * 2 * 2
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
64 │ }
|
||
╰────
|
||
|
||
× Line terminator not permitted before arrow
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:67:1]
|
||
67 │ claw = (()
|
||
68 │ => 10)()
|
||
· ─┬
|
||
· ╰── Line terminator not permitted before arrow
|
||
69 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts:71:1]
|
||
71 │ export var v = x
|
||
72 │ => new City(Enum.claw);
|
||
· ──
|
||
73 │ }
|
||
╰────
|
||
Expect to Parse: "es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteralError.ts"
|
||
|
||
× Invalid characters after number
|
||
╭─[es6/binaryAndOctalIntegerLiteral/binaryIntegerLiteralError.ts:1:1]
|
||
1 │ // error
|
||
2 │ var bin1 = 0B1102110;
|
||
· ┬
|
||
· ╰── Invalid characters after number
|
||
3 │ var bin1 = 0b11023410;
|
||
╰────
|
||
Expect to Parse: "es6/binaryAndOctalIntegerLiteral/invalidBinaryIntegerLiteralAndOctalIntegerLiteral.ts"
|
||
|
||
× Invalid Character `'2'`
|
||
╭─[es6/binaryAndOctalIntegerLiteral/invalidBinaryIntegerLiteralAndOctalIntegerLiteral.ts:1:1]
|
||
1 │ // Error
|
||
2 │ var binary = 0b21010;
|
||
· ▲
|
||
· ╰── Invalid Character `2`
|
||
3 │ var binary1 = 0B21010;
|
||
╰────
|
||
Expect to Parse: "es6/binaryAndOctalIntegerLiteral/octalIntegerLiteralError.ts"
|
||
|
||
× Invalid characters after number
|
||
╭─[es6/binaryAndOctalIntegerLiteral/octalIntegerLiteralError.ts:1:1]
|
||
1 │ // error
|
||
2 │ var oct1 = 0O13334823;
|
||
· ┬
|
||
· ╰── Invalid characters after number
|
||
3 │ var oct2 = 0o34318592;
|
||
╰────
|
||
Expect to Parse: "es6/computedProperties/computedPropertyNames49_ES5.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[es6/computedProperties/computedPropertyNames49_ES5.ts:9:1]
|
||
9 │ },
|
||
10 │ set [1 + 1]() {
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
11 │ // just throw
|
||
╰────
|
||
Expect to Parse: "es6/computedProperties/computedPropertyNames49_ES6.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[es6/computedProperties/computedPropertyNames49_ES6.ts:10:1]
|
||
10 │ },
|
||
11 │ set [1 + 1]() {
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
12 │ // just throw
|
||
╰────
|
||
Expect to Parse: "es6/computedProperties/computedPropertyNames50_ES5.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[es6/computedProperties/computedPropertyNames50_ES5.ts:11:1]
|
||
11 │ },
|
||
12 │ set [1 + 1]() {
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
13 │ // just throw
|
||
╰────
|
||
Expect to Parse: "es6/computedProperties/computedPropertyNames50_ES6.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[es6/computedProperties/computedPropertyNames50_ES6.ts:12:1]
|
||
12 │ },
|
||
13 │ set [1 + 1]() {
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
14 │ // just throw
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/declarationWithNoInitializer.ts"
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/declarationWithNoInitializer.ts:1:1]
|
||
1 │ var [a, b]; // Error, no initializer
|
||
· ───┬──
|
||
· ╰── Missing initializer in destructuring declaration
|
||
2 │ var {c, d}; // Error, no initializer
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/declarationWithNoInitializer.ts:1:1]
|
||
1 │ var [a, b]; // Error, no initializer
|
||
2 │ var {c, d}; // Error, no initializer
|
||
· ───┬──
|
||
· ╰── Missing initializer in destructuring declaration
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/destructuringObjectBindingPatternAndAssignment3.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/destructuring/destructuringObjectBindingPatternAndAssignment3.ts:1:1]
|
||
1 │ // Error
|
||
2 │ var {h?} = { h?: 1 };
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `?`
|
||
3 │ var {i}: string | number = { i: 2 };
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/destructuringParameterDeclaration2.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/destructuring/destructuringParameterDeclaration2.ts:6:1]
|
||
6 │ function a0([a, b, [[c]]]: [number, number, string[][]]) { }
|
||
7 │ a0([1, "string", [["world"]]); // Error
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `)`
|
||
8 │ a0([1, 2, [["world"]], "string"]); // Error
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/destructuringParameterDeclaration6.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/destructuring/destructuringParameterDeclaration6.ts:6:1]
|
||
6 │ // Error
|
||
7 │ function a({while}) { }
|
||
· ┬
|
||
· ╰── Expect `:` here, but found `}`
|
||
8 │ function a1({public}) { }
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts"
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:4:1]
|
||
4 │ (function () {
|
||
5 │ var {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
6 │ let {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:5:1]
|
||
5 │ var {};
|
||
6 │ let {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
7 │ const {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:6:1]
|
||
6 │ let {};
|
||
7 │ const {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
8 │
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:8:1]
|
||
8 │
|
||
9 │ var [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
10 │ let [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:9:1]
|
||
9 │ var [];
|
||
10 │ let [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
11 │ const [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5.ts:10:1]
|
||
10 │ let [];
|
||
11 │ const [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
12 │ })();
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts"
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:5:1]
|
||
5 │ (function () {
|
||
6 │ var {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
7 │ let {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:6:1]
|
||
6 │ var {};
|
||
7 │ let {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
8 │ const {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:7:1]
|
||
7 │ let {};
|
||
8 │ const {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
9 │
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:9:1]
|
||
9 │
|
||
10 │ var [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
11 │ let [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:10:1]
|
||
10 │ var [];
|
||
11 │ let [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
12 │ const [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES5iterable.ts:11:1]
|
||
11 │ let [];
|
||
12 │ const [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
13 │ })();
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts"
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:4:1]
|
||
4 │ (function () {
|
||
5 │ var {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
6 │ let {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:5:1]
|
||
5 │ var {};
|
||
6 │ let {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
7 │ const {};
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:6:1]
|
||
6 │ let {};
|
||
7 │ const {};
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
8 │
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:8:1]
|
||
8 │
|
||
9 │ var [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
10 │ let [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:9:1]
|
||
9 │ var [];
|
||
10 │ let [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
11 │ const [];
|
||
╰────
|
||
|
||
× Missing initializer in destructuring declaration
|
||
╭─[es6/destructuring/emptyVariableDeclarationBindingPatterns02_ES6.ts:10:1]
|
||
10 │ let [];
|
||
11 │ const [];
|
||
· ─┬
|
||
· ╰── Missing initializer in destructuring declaration
|
||
12 │ })();
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/objectBindingPatternKeywordIdentifiers01.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/destructuring/objectBindingPatternKeywordIdentifiers01.ts:1:1]
|
||
1 │
|
||
2 │ var { while } = { while: 1 }
|
||
· ┬
|
||
· ╰── Expect `:` here, but found `}`
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/objectBindingPatternKeywordIdentifiers02.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/destructuring/objectBindingPatternKeywordIdentifiers02.ts:1:1]
|
||
1 │
|
||
2 │ var { while: while } = { while: 1 }
|
||
· ─────
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/objectBindingPatternKeywordIdentifiers03.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/destructuring/objectBindingPatternKeywordIdentifiers03.ts:1:1]
|
||
1 │
|
||
2 │ var { "while" } = { while: 1 }
|
||
· ┬
|
||
· ╰── Expect `:` here, but found `}`
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/objectBindingPatternKeywordIdentifiers04.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/destructuring/objectBindingPatternKeywordIdentifiers04.ts:1:1]
|
||
1 │
|
||
2 │ var { "while": while } = { while: 1 }
|
||
· ─────
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/restElementWithInitializer2.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[es6/destructuring/restElementWithInitializer2.ts:2:1]
|
||
2 │ var x: number[];
|
||
3 │ [...x = a] = a; // Error, rest element cannot have initializer
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "es6/destructuring/restPropertyWithBindingPattern.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[es6/destructuring/restPropertyWithBindingPattern.ts:1:1]
|
||
1 │ ({...{}} = {});
|
||
2 │ ({...({})} = {});
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
3 │ ({...[]} = {});
|
||
╰────
|
||
Expect to Parse: "es6/for-ofStatements/for-of2.ts"
|
||
|
||
× Missing initializer in const declaration
|
||
╭─[es6/for-ofStatements/for-of2.ts:1:1]
|
||
1 │ //@target: ES6
|
||
2 │ const v;
|
||
· ┬
|
||
· ╰── const declaration need an initializer
|
||
3 │ for (v of []) { }
|
||
╰────
|
||
Expect to Parse: "es6/for-ofStatements/for-of3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/for-ofStatements/for-of3.ts:2:1]
|
||
2 │ var v: any;
|
||
3 │ for (v++ of []) { }
|
||
· ───
|
||
╰────
|
||
Expect to Parse: "es6/functionPropertyAssignments/FunctionPropertyAssignments2_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/functionPropertyAssignments/FunctionPropertyAssignments2_es6.ts:1:1]
|
||
1 │ // @target: es6
|
||
2 │ var v = { *() { } }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/functionPropertyAssignments/FunctionPropertyAssignments3_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/functionPropertyAssignments/FunctionPropertyAssignments3_es6.ts:1:1]
|
||
1 │ // @target: es6
|
||
2 │ var v = { *{ } }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/functionPropertyAssignments/FunctionPropertyAssignments4_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/functionPropertyAssignments/FunctionPropertyAssignments4_es6.ts:1:1]
|
||
1 │ // @target: es6
|
||
2 │ var v = { * }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/functionPropertyAssignments/FunctionPropertyAssignments6_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/functionPropertyAssignments/FunctionPropertyAssignments6_es6.ts:1:1]
|
||
1 │ // @target: es6
|
||
2 │ var v = { *<T>() { } }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/memberFunctionDeclarations/MemberFunctionDeclaration4_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/memberFunctionDeclarations/MemberFunctionDeclaration4_es6.ts:2:1]
|
||
2 │ class C {
|
||
3 │ *() { }
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "es6/memberFunctionDeclarations/MemberFunctionDeclaration5_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/memberFunctionDeclarations/MemberFunctionDeclaration5_es6.ts:3:1]
|
||
3 │ *
|
||
4 │ }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/memberFunctionDeclarations/MemberFunctionDeclaration6_es6.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/memberFunctionDeclarations/MemberFunctionDeclaration6_es6.ts:3:1]
|
||
3 │ *foo
|
||
4 │ }
|
||
· ┬
|
||
· ╰── Expect `(` here, but found `}`
|
||
╰────
|
||
Expect to Parse: "es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts"
|
||
|
||
× Invalid Character `'¬'`
|
||
╭─[es6/memberFunctionDeclarations/MemberFunctionDeclaration8_es6.ts:4:1]
|
||
4 │ // Make sure we don't think of *bar as the start of a generator method.
|
||
5 │ if (a) ¬ * bar;
|
||
· ┬
|
||
· ╰── Invalid Character `¬`
|
||
6 │ return bar;
|
||
╰────
|
||
Expect to Parse: "es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.ts:2:1]
|
||
2 │ var y = {
|
||
3 │ "stringLiteral",
|
||
· ─
|
||
4 │ 42,
|
||
╰────
|
||
Expect to Parse: "es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/shorthandPropertyAssignment/objectLiteralShorthandPropertiesErrorWithModule.ts:9:1]
|
||
9 │ export var y = {
|
||
10 │ m.x // error
|
||
· ─
|
||
11 │ };
|
||
╰────
|
||
Expect to Parse: "es6/templates/TemplateExpression1.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/templates/TemplateExpression1.ts:1:1]
|
||
1 │ var v = `foo ${ a
|
||
· ▲
|
||
· ╰── Expect `$}` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "es6/templates/taggedTemplatesWithTypeArguments2.ts"
|
||
|
||
× 'super' can only be used with function calls or in property accesses
|
||
╭─[es6/templates/taggedTemplatesWithTypeArguments2.ts:39:1]
|
||
39 │ constructor() {
|
||
40 │ super<number, string, T> `hello world`;
|
||
· ──┬──
|
||
· ╰── 'super' can only be used with function calls or in property accesses
|
||
41 │ }
|
||
╰────
|
||
help: replace with `super()` or `super.prop` or `super[prop]`
|
||
Expect to Parse: "es6/templates/templateStringInFunctionParameterType.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInFunctionParameterType.ts:1:1]
|
||
1 │ function f(`hello`);
|
||
· ───────
|
||
2 │ function f(x: string);
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInFunctionParameterTypeES6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInFunctionParameterTypeES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ function f(`hello`);
|
||
· ───────
|
||
3 │ function f(x: string);
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInModuleName.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[es6/templates/templateStringInModuleName.ts:1:1]
|
||
1 │ declare module `M1` {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "es6/templates/templateStringInModuleNameES6.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[es6/templates/templateStringInModuleNameES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ declare module `M1` {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "es6/templates/templateStringInObjectLiteral.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInObjectLiteral.ts:2:1]
|
||
2 │ a: `abc${ 123 }def`,
|
||
3 │ `b`: 321
|
||
· ───
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInObjectLiteralES6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInObjectLiteralES6.ts:3:1]
|
||
3 │ a: `abc${ 123 }def`,
|
||
4 │ `b`: 321
|
||
· ───
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInPropertyName1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInPropertyName1.ts:1:1]
|
||
1 │ var x = {
|
||
2 │ `a`: 321
|
||
· ───
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInPropertyName2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInPropertyName2.ts:1:1]
|
||
1 │ var x = {
|
||
2 │ `abc${ 123 }def${ 456 }ghi`: 321
|
||
· ──────
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInPropertyNameES6_1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInPropertyNameES6_1.ts:2:1]
|
||
2 │ var x = {
|
||
3 │ `a`: 321
|
||
· ───
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringInPropertyNameES6_2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/templates/templateStringInPropertyNameES6_2.ts:2:1]
|
||
2 │ var x = {
|
||
3 │ `abc${ 123 }def${ 456 }ghi`: 321
|
||
· ──────
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated1.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated1.ts:1:1]
|
||
1 │
|
||
2 │ `
|
||
· ┬
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated1_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated1_ES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ `
|
||
· ┬
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated2.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated2.ts:1:1]
|
||
1 │
|
||
2 │ `\`
|
||
· ─┬─
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated2_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated2_ES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ `\`
|
||
· ─┬─
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated3.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated3.ts:1:1]
|
||
1 │
|
||
2 │ `\\
|
||
· ─┬─
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated3_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated3_ES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ `\\
|
||
· ─┬─
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated4.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated4.ts:1:1]
|
||
1 │
|
||
2 │ `\\\`
|
||
· ──┬──
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated4_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated4_ES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ `\\\`
|
||
· ──┬──
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated5.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated5.ts:1:1]
|
||
1 │
|
||
2 │ `\\\\\`
|
||
· ───┬───
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringUnterminated5_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/templates/templateStringUnterminated5_ES6.ts:1:1]
|
||
1 │ // @target: ES6
|
||
2 │ `\\\\\`
|
||
· ───┬───
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/templates/templateStringWithEmbeddedYieldKeyword.ts"
|
||
|
||
× Expect token
|
||
╭─[es6/templates/templateStringWithEmbeddedYieldKeyword.ts:1:1]
|
||
1 │ function* gen {
|
||
· ┬
|
||
· ╰── Expect `(` here, but found `{`
|
||
2 │ // Once this is supported, yield *must* be parenthesized.
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES5.ts:4:1]
|
||
4 │ // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
|
||
5 │ var x = "\u{110000}";
|
||
· ────┬────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings07_ES6.ts:4:1]
|
||
4 │ // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
|
||
5 │ var x = "\u{110000}";
|
||
· ────┬────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{FFFFFFFF}";
|
||
· ────┬────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings12_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{FFFFFFFF}";
|
||
· ────┬────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES5.ts:3:1]
|
||
3 │ // Shouldn't work, negatives are not allowed.
|
||
4 │ var x = "\u{-DDDD}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings14_ES6.ts:3:1]
|
||
3 │ // Shouldn't work, negatives are not allowed.
|
||
4 │ var x = "\u{-DDDD}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings17_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{r}\u{n}\u{t}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings19_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{}";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings20_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{";
|
||
· ─┬─
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{67";
|
||
· ──┬──
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings21_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{67";
|
||
· ──┬──
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067";
|
||
· ────────┬────────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings22_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067";
|
||
· ────────┬────────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067
|
||
· ────────┬────────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067
|
||
· ─────────┬─────────
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067
|
||
· ────────┬────────
|
||
· ╰── Invalid escape sequence
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings24_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067
|
||
· ─────────┬─────────
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067}
|
||
· ──────────┬─────────
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts"
|
||
|
||
× Unterminated string
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInStrings25_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = "\u{00000000000067}
|
||
· ──────────┬─────────
|
||
· ╰── Unterminated string
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES5.ts:4:1]
|
||
4 │ // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
|
||
5 │ var x = `\u{110000}`;
|
||
· ─────┬────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates07_ES6.ts:4:1]
|
||
4 │ // 1. Assert: 0 ≤ cp ≤ 0x10FFFF.
|
||
5 │ var x = `\u{110000}`;
|
||
· ─────┬────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{FFFFFFFF}`;
|
||
· ──────┬─────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates12_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{FFFFFFFF}`;
|
||
· ──────┬─────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES5.ts:3:1]
|
||
3 │ // Shouldn't work, negatives are not allowed.
|
||
4 │ var x = `\u{-DDDD}`;
|
||
· ────┬────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates14_ES6.ts:3:1]
|
||
3 │ // Shouldn't work, negatives are not allowed.
|
||
4 │ var x = `\u{-DDDD}`;
|
||
· ────┬────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{r}\u{n}\u{t}`;
|
||
· ───────┬───────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates17_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{r}\u{n}\u{t}`;
|
||
· ───────┬───────
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES5.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{}`;
|
||
· ──┬─
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts"
|
||
|
||
× Bad escape sequence in untagged template literal
|
||
╭─[es6/unicodeExtendedEscapes/unicodeExtendedEscapesInTemplates19_ES6.ts:2:1]
|
||
2 │
|
||
3 │ var x = `\u{}`;
|
||
· ──┬─
|
||
· ╰── Bad escape sequence in untagged template literal
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration11_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/variableDeclarations/VariableDeclaration11_es6.ts:2:1]
|
||
2 │ "use strict";
|
||
3 │ let
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration13_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/variableDeclarations/VariableDeclaration13_es6.ts:5:1]
|
||
5 │ var let: any;
|
||
6 │ let[0] = 100;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration1_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/variableDeclarations/VariableDeclaration1_es6.ts:1:1]
|
||
1 │ // @target:es6
|
||
2 │ const
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration2_es6.ts"
|
||
|
||
× Missing initializer in const declaration
|
||
╭─[es6/variableDeclarations/VariableDeclaration2_es6.ts:1:1]
|
||
1 │ // @target:es6
|
||
2 │ const a
|
||
· ┬
|
||
· ╰── const declaration need an initializer
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration4_es6.ts"
|
||
|
||
× Missing initializer in const declaration
|
||
╭─[es6/variableDeclarations/VariableDeclaration4_es6.ts:1:1]
|
||
1 │ // @target:es6
|
||
2 │ const a: number
|
||
· ┬
|
||
· ╰── const declaration need an initializer
|
||
╰────
|
||
Expect to Parse: "es6/variableDeclarations/VariableDeclaration6_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/variableDeclarations/VariableDeclaration6_es6.ts:1:1]
|
||
1 │ // @target:es6
|
||
2 │ let
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/yieldExpressions/YieldExpression5_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/yieldExpressions/YieldExpression5_es6.ts:3:1]
|
||
3 │ yield*
|
||
4 │ }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/yieldExpressions/YieldStarExpression2_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/yieldExpressions/YieldStarExpression2_es6.ts:1:1]
|
||
1 │ // @target: es6
|
||
2 │ yield *;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "es6/yieldExpressions/YieldStarExpression3_es6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es6/yieldExpressions/YieldStarExpression3_es6.ts:2:1]
|
||
2 │ function *g() {
|
||
3 │ yield *;
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[es7/exponentiationOperator/compoundExponentiationAssignmentLHSIsValue.ts:7:1]
|
||
7 │ constructor() {
|
||
8 │ this **= value;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
9 │ }
|
||
╰────
|
||
Expect to Parse: "es7/trailingCommasInBindingPatterns.ts"
|
||
|
||
× Unexpected trailing comma after rest element
|
||
╭─[es7/trailingCommasInBindingPatterns.ts:1:1]
|
||
1 │ const [...a,] = [];
|
||
· ┬
|
||
· ╰── Unexpected trailing comma after rest element
|
||
2 │ const {...b,} = {};
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[es7/trailingCommasInBindingPatterns.ts:1:1]
|
||
1 │ const [...a,] = [];
|
||
2 │ const {...b,} = {};
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
3 │ let c, d;
|
||
╰────
|
||
|
||
× Unexpected trailing comma after rest element
|
||
╭─[es7/trailingCommasInBindingPatterns.ts:3:1]
|
||
3 │ let c, d;
|
||
4 │ ([...c,] = []);
|
||
· ▲
|
||
· ╰── Unexpected trailing comma after rest element
|
||
5 │ ({...d,} = {});
|
||
╰────
|
||
Expect to Parse: "es7/trailingCommasInFunctionParametersAndArguments.ts"
|
||
|
||
× Rest element must be last element
|
||
╭─[es7/trailingCommasInFunctionParametersAndArguments.ts:6:1]
|
||
6 │
|
||
7 │ function f2(...args,) {}
|
||
· ───┬───
|
||
· ╰── Rest element must be last element
|
||
8 │
|
||
╰────
|
||
|
||
× Rest element must be last element
|
||
╭─[es7/trailingCommasInFunctionParametersAndArguments.ts:9:1]
|
||
9 │ // Allowed for ambient declarations
|
||
10 │ declare function f25(...args,): void;
|
||
· ───┬───
|
||
· ╰── Rest element must be last element
|
||
11 │
|
||
╰────
|
||
Expect to Parse: "es7/trailingCommasInGetter.ts"
|
||
|
||
× Unexpected token
|
||
╭─[es7/trailingCommasInGetter.ts:1:1]
|
||
1 │ class X {
|
||
2 │ get x(,) { return 0; }
|
||
· ─
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.1.ts:12:1]
|
||
12 │
|
||
13 │ (@dec
|
||
· ─
|
||
14 │ class C extends Base {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.2.ts:7:1]
|
||
7 │ // class expression in extends should not get an assigned name
|
||
8 │ (@dec
|
||
· ─
|
||
9 │ class C1 extends class { } {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.3.ts:12:1]
|
||
12 │
|
||
13 │ (@dec
|
||
· ─
|
||
14 │ class C extends Base {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.4.ts:12:1]
|
||
12 │
|
||
13 │ (@dec
|
||
· ─
|
||
14 │ class C extends Base {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.5.ts:12:1]
|
||
12 │
|
||
13 │ (@dec
|
||
· ─
|
||
14 │ class C1 extends Base {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.6.ts:12:1]
|
||
12 │ // none of the following should result in caching `super`
|
||
13 │ (@dec
|
||
· ─
|
||
14 │ class C extends Base {
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/esDecorators-classExpression-commentPreservation.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/esDecorators-classExpression-commentPreservation.ts:10:1]
|
||
10 │ /*2*/
|
||
11 │ @dec
|
||
· ─
|
||
12 │ /*3*/
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.1.ts:10:1]
|
||
10 │
|
||
11 │ x = @dec class { };
|
||
· ─
|
||
12 │ x = class { @dec y: any; };
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.10.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.10.ts:9:1]
|
||
9 │
|
||
10 │ { class C { static x = @dec class {}; } }
|
||
· ─
|
||
11 │ { class C { static "x" = @dec class {}; } }
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.11.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.11.ts:8:1]
|
||
8 │
|
||
9 │ (@dec class {});
|
||
· ─
|
||
10 │ (class { @dec y: any });
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.2.ts:10:1]
|
||
10 │
|
||
11 │ ({ x: @dec class { } });
|
||
· ─
|
||
12 │ ({ x: class { @dec y: any; } });
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.3.ts:8:1]
|
||
8 │
|
||
9 │ { let x = @dec class { }; }
|
||
· ─
|
||
10 │ { let x = class { @dec y: any; }; }
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.4.ts:8:1]
|
||
8 │
|
||
9 │ { const [x = @dec class { }] = obj; }
|
||
· ─
|
||
10 │ { const [x = class { @dec y: any; }] = obj; }
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.5.ts:8:1]
|
||
8 │
|
||
9 │ ({ x = @dec class { } } = obj);
|
||
· ─
|
||
10 │ ({ x = class { @dec y: any; } } = obj);
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.6.ts:8:1]
|
||
8 │
|
||
9 │ ({ y: x = @dec class { } } = obj);
|
||
· ─
|
||
10 │ ({ y: x = class { @dec y: any; } } = obj);
|
||
╰────
|
||
Expect to Parse: "esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.7.ts:8:1]
|
||
8 │
|
||
9 │ [x = @dec class { }] = obj;
|
||
· ─
|
||
10 │ [x = class { @dec y: any; }] = obj;
|
||
╰────
|
||
Expect to Parse: "esDecorators/esDecorators-emitDecoratorMetadata.ts"
|
||
|
||
× Unexpected token
|
||
╭─[esDecorators/esDecorators-emitDecoratorMetadata.ts:30:1]
|
||
30 │
|
||
31 │ (@dec class C {
|
||
· ─
|
||
32 │ constructor(x: number) {}
|
||
╰────
|
||
Expect to Parse: "expressions/assignmentOperator/assignmentLHSIsValue.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/assignmentOperator/assignmentLHSIsValue.ts:5:1]
|
||
5 │ class C {
|
||
6 │ constructor() { this = value; }
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
7 │ foo() { this = value; }
|
||
╰────
|
||
Expect to Parse: "expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/assignmentOperator/compoundAssignmentLHSIsValue.ts:8:1]
|
||
8 │ constructor() {
|
||
9 │ this *= value;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
10 │ this += value;
|
||
╰────
|
||
Expect to Parse: "expressions/commaOperator/commaOperatorWithoutOperand.ts"
|
||
|
||
× Unexpected token
|
||
╭─[expressions/commaOperator/commaOperatorWithoutOperand.ts:16:1]
|
||
16 │ // Missing the first operand
|
||
17 │ (, ANY);
|
||
· ─
|
||
18 │ (, BOOLEAN);
|
||
╰────
|
||
Expect to Parse: "expressions/newOperator/newOperatorErrorCases.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/newOperator/newOperatorErrorCases.ts:26:1]
|
||
26 │ // Construct expression with no parentheses for construct signature with > 0 parameters
|
||
27 │ var b = new C0 32, ''; // Parse error
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
28 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/objectLiterals/objectLiteralErrors.ts"
|
||
|
||
× Unexpected token
|
||
╭─[expressions/objectLiterals/objectLiteralErrors.ts:51:1]
|
||
51 │ y = 2,
|
||
52 │ #z: 3
|
||
· ──
|
||
53 │ }
|
||
╰────
|
||
Expect to Parse: "expressions/operators/incrementAndDecrement.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/operators/incrementAndDecrement.ts:8:1]
|
||
8 │ // Assign to expression++
|
||
9 │ x++ = 4; // Error
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
10 │
|
||
╰────
|
||
Expect to Parse: "expressions/optionalChaining/elementAccessChain/elementAccessChain.3.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/optionalChaining/elementAccessChain/elementAccessChain.3.ts:4:1]
|
||
4 │
|
||
5 │ obj?.["a"]++;
|
||
· ─────┬────
|
||
· ╰── Cannot assign to this expression
|
||
6 │ obj?.a["b"]++;
|
||
╰────
|
||
Expect to Parse: "expressions/optionalChaining/propertyAccessChain/propertyAccessChain.3.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/optionalChaining/propertyAccessChain/propertyAccessChain.3.ts:4:1]
|
||
4 │
|
||
5 │ obj?.a++;
|
||
· ───┬──
|
||
· ╰── Cannot assign to this expression
|
||
6 │ obj?.a.b++;
|
||
╰────
|
||
Expect to Parse: "expressions/optionalChaining/taggedTemplateChain/taggedTemplateChain.ts"
|
||
|
||
× Tagged template expressions are not permitted in an optional chain
|
||
╭─[expressions/optionalChaining/taggedTemplateChain/taggedTemplateChain.ts:1:1]
|
||
1 │ declare let a: any;
|
||
2 │ a?.`b`;
|
||
· ─┬─
|
||
· ╰── Tagged template expressions are not permitted in an optional chain
|
||
3 │
|
||
╰────
|
||
|
||
× Tagged template expressions are not permitted in an optional chain
|
||
╭─[expressions/optionalChaining/taggedTemplateChain/taggedTemplateChain.ts:3:1]
|
||
3 │
|
||
4 │ a?.`b${1}c`;
|
||
· ────┬───
|
||
· ╰── Tagged template expressions are not permitted in an optional chain
|
||
╰────
|
||
Expect to Parse: "expressions/superCalls/errorSuperCalls.ts"
|
||
|
||
× 'super' can only be used with function calls or in property accesses
|
||
╭─[expressions/superCalls/errorSuperCalls.ts:45:1]
|
||
45 │ constructor() {
|
||
46 │ super<string>();
|
||
· ──┬──
|
||
· ╰── 'super' can only be used with function calls or in property accesses
|
||
47 │ super();
|
||
╰────
|
||
help: replace with `super()` or `super.prop` or `super[prop]`
|
||
Expect to Parse: "expressions/typeAssertions/typeAssertions.ts"
|
||
|
||
× Expect token
|
||
╭─[expressions/typeAssertions/typeAssertions.ts:43:1]
|
||
43 │ var str: string;
|
||
44 │ if(<numOrStr is string>(numOrStr === undefined)) { // Error
|
||
· ─┬
|
||
· ╰── Expect `>` here, but found `is`
|
||
45 │ str = numOrStr; // Error, no narrowing occurred
|
||
╰────
|
||
Expect to Parse: "expressions/typeGuards/typeGuardFunctionErrors.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeGuards/typeGuardFunctionErrors.ts:17:1]
|
||
17 │
|
||
18 │ function hasTypeGuardTypeInsideTypeGuardType(x): x is x is A {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
19 │ return true;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeGuards/typeGuardOfFormThisMember.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeGuards/typeGuardOfFormThisMember.ts:5:1]
|
||
5 │ export class FileSystemObject {
|
||
6 │ isFSO: this is FileSystemObject;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ get isFile(): this is File {
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeGuards/typeGuardOfFormThisMemberErrors.ts:5:1]
|
||
5 │ export class FileSystemObject {
|
||
6 │ isFSO: this is FileSystemObject;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │ get isFile(): this is File {
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeGuards/typePredicateOnVariableDeclaration01.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeGuards/typePredicateOnVariableDeclaration01.ts:2:1]
|
||
2 │
|
||
3 │ var x: this is string;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeGuards/typePredicateOnVariableDeclaration02.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeGuards/typePredicateOnVariableDeclaration02.ts:2:1]
|
||
2 │
|
||
3 │ var y: z is number;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction.ts:10:1]
|
||
10 │
|
||
11 │ const t1 = { a: 1 } satisfies I1; // Ok
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
12 │ const t2 = { a: 1, b: 1 } satisfies I1; // Error
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_contextualTyping1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_contextualTyping1.ts:5:1]
|
||
5 │ isOdd: n => n % 2 === 1
|
||
6 │ } satisfies Predicates;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_contextualTyping2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_contextualTyping2.ts:5:1]
|
||
5 │ g(s) { }
|
||
6 │ } satisfies { g(s: string): void } & Record<string, unknown>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
7 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_ensureInterfaceImpl.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_ensureInterfaceImpl.ts:10:1]
|
||
10 │ stop() { }
|
||
11 │ } satisfies Movable & Record<string, unknown>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_js.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_js.ts:4:1]
|
||
4 │
|
||
5 │ var v = undefined satisfies 1;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_optionalMemberConformance.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_optionalMemberConformance.ts:2:1]
|
||
2 │ // Undesirable behavior today with type annotation
|
||
3 │ const a = { x: 10 } satisfies Partial<Point2d>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
4 │ // Should OK
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_propNameConstraining.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_propNameConstraining.ts:6:1]
|
||
6 │ x: 8 // Should error, 'x' isn't in 'Keys'
|
||
7 │ } satisfies Partial<Record<Keys, unknown>>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
8 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_propertyNameFulfillment.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_propertyNameFulfillment.ts:6:1]
|
||
6 │ x: 8 // Should error, 'x' isn't in 'Keys'
|
||
7 │ } satisfies Record<Keys, unknown>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
8 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance1.ts:24:1]
|
||
24 │ s: "false"
|
||
25 │ } satisfies Facts;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance2.ts:24:1]
|
||
24 │ s: "false"
|
||
25 │ } satisfies Facts;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_propertyValueConformance3.ts:7:1]
|
||
7 │ blue: { r: 0, g: 0, b: 255 },
|
||
8 │ } satisfies Record<string, Color>;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/typeSatisfaction/typeSatisfaction_vacuousIntersectionOfContextualTypes.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/typeSatisfaction/typeSatisfaction_vacuousIntersectionOfContextualTypes.ts:1:1]
|
||
1 │ const a: "baz" = "foo" satisfies "foo" | "bar";
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │ const b: { xyz: "baz" } = { xyz: "foo" } satisfies { xyz: "foo" | "bar" };
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorInvalidOperations.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/unaryOperators/bitwiseNotOperator/bitwiseNotOperatorInvalidOperations.ts:4:1]
|
||
4 │ // operand before ~
|
||
5 │ var a = q~; //expect error
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/decrementOperator/decrementOperatorWithAnyOtherTypeInvalidOperations.ts:36:1]
|
||
36 │ // any type literal
|
||
37 │ var ResultIsNumber11 = --{};
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
38 │ var ResultIsNumber12 = --null;
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/decrementOperator/decrementOperatorWithEnumTypeInvalidOperations.ts:13:1]
|
||
13 │ // enum type expressions
|
||
14 │ var ResultIsNumber5 = --(ENUM["A"] + ENUM.B);
|
||
· ─────────┬────────
|
||
· ╰── Cannot assign to this expression
|
||
15 │ var ResultIsNumber6 = (ENUM.A + ENUM["B"])--;
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/decrementOperator/decrementOperatorWithNumberTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/decrementOperator/decrementOperatorWithNumberTypeInvalidOperations.ts:21:1]
|
||
21 │ // number type literal
|
||
22 │ var ResultIsNumber3 = --1;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
23 │ var ResultIsNumber4 = --{ x: 1, y: 2};
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/decrementOperator/decrementOperatorWithUnsupportedBooleanType.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/decrementOperator/decrementOperatorWithUnsupportedBooleanType.ts:21:1]
|
||
21 │ // boolean type literal
|
||
22 │ var ResultIsNumber3 = --true;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
23 │ var ResultIsNumber4 = --{ x: true, y: false };
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/decrementOperator/decrementOperatorWithUnsupportedStringType.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/decrementOperator/decrementOperatorWithUnsupportedStringType.ts:24:1]
|
||
24 │ // string type literal
|
||
25 │ var ResultIsNumber5 = --"";
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
26 │ var ResultIsNumber6 = --{ x: "", y: "" };
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/deleteOperator/deleteOperatorInvalidOperations.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/unaryOperators/deleteOperator/deleteOperatorInvalidOperations.ts:4:1]
|
||
4 │ // operand before delete operator
|
||
5 │ var BOOLEAN1 = ANY delete ; //expect error
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/incrementOperator/incrementOperatorWithAnyOtherTypeInvalidOperations.ts:36:1]
|
||
36 │ // any type literal
|
||
37 │ var ResultIsNumber11 = ++{};
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
38 │ var ResultIsNumber12 = ++null;
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/incrementOperator/incrementOperatorWithEnumTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/incrementOperator/incrementOperatorWithEnumTypeInvalidOperations.ts:13:1]
|
||
13 │ // enum type expressions
|
||
14 │ var ResultIsNumber5 = ++(ENUM[1] + ENUM[2]);
|
||
· ────────┬────────
|
||
· ╰── Cannot assign to this expression
|
||
15 │ var ResultIsNumber6 = (ENUM[1] + ENUM[2])++;
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/incrementOperator/incrementOperatorWithNumberTypeInvalidOperations.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/incrementOperator/incrementOperatorWithNumberTypeInvalidOperations.ts:21:1]
|
||
21 │ // number type literal
|
||
22 │ var ResultIsNumber3 = ++1;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
23 │ var ResultIsNumber4 = ++{ x: 1, y: 2};
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/incrementOperator/incrementOperatorWithUnsupportedBooleanType.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/incrementOperator/incrementOperatorWithUnsupportedBooleanType.ts:21:1]
|
||
21 │ // boolean type literal
|
||
22 │ var ResultIsNumber3 = ++true;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
23 │ var ResultIsNumber4 = ++{ x: true, y: false };
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/incrementOperator/incrementOperatorWithUnsupportedStringType.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[expressions/unaryOperators/incrementOperator/incrementOperatorWithUnsupportedStringType.ts:24:1]
|
||
24 │ // string type literal
|
||
25 │ var ResultIsNumber5 = ++"";
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
26 │ var ResultIsNumber6 = ++{ x: "", y: "" };
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts"
|
||
|
||
× Unexpected token
|
||
╭─[expressions/unaryOperators/logicalNotOperator/logicalNotOperatorInvalidOperations.ts:10:1]
|
||
10 │ // miss an operand
|
||
11 │ var BOOLEAN3 =!;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/negateOperator/negateOperatorInvalidOperations.ts"
|
||
|
||
× Unexpected token
|
||
╭─[expressions/unaryOperators/negateOperator/negateOperatorInvalidOperations.ts:3:1]
|
||
3 │ // operand before -
|
||
4 │ var NUMBER1 = var NUMBER-; //expect error
|
||
· ───
|
||
5 │
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/plusOperator/plusOperatorInvalidOperations.ts"
|
||
|
||
× Unexpected token
|
||
╭─[expressions/unaryOperators/plusOperator/plusOperatorInvalidOperations.ts:4:1]
|
||
4 │ // operand before +
|
||
5 │ var result1 = b+; //expect error
|
||
· ─
|
||
6 │
|
||
╰────
|
||
Expect to Parse: "expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/unaryOperators/typeofOperator/typeofOperatorInvalidOperations.ts:3:1]
|
||
3 │ // opreand before typeof
|
||
4 │ var ANY = ANY typeof ; //expect error
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[expressions/unaryOperators/voidOperator/voidOperatorInvalidOperations.ts:3:1]
|
||
3 │ // operand before void
|
||
4 │ var ANY = ANY void ; //expect error
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "externalModules/exportNonInitializedVariablesAMD.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/exportNonInitializedVariablesAMD.ts:2:1]
|
||
2 │
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "externalModules/exportNonInitializedVariablesCommonJS.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/exportNonInitializedVariablesCommonJS.ts:2:1]
|
||
2 │
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "externalModules/exportNonInitializedVariablesES6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/exportNonInitializedVariablesES6.ts:2:1]
|
||
2 │
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "externalModules/exportNonInitializedVariablesSystem.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/exportNonInitializedVariablesSystem.ts:2:1]
|
||
2 │
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "externalModules/exportNonInitializedVariablesUMD.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/exportNonInitializedVariablesUMD.ts:2:1]
|
||
2 │
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "externalModules/importNonStringLiteral.ts"
|
||
|
||
× Unexpected token
|
||
╭─[externalModules/importNonStringLiteral.ts:3:1]
|
||
3 │ var x = "filename";
|
||
4 │ import foo = require(x); // invalid
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "externalModules/topLevelAwaitErrors.1.ts"
|
||
|
||
× Expect token
|
||
╭─[externalModules/topLevelAwaitErrors.1.ts:9:1]
|
||
9 │ await (1,);
|
||
10 │ await <number, string>(1);
|
||
· ┬
|
||
· ╰── Expect `>` here, but found `,`
|
||
11 │
|
||
╰────
|
||
Expect to Parse: "externalModules/typeOnly/exportDeclaration_missingBraces.ts"
|
||
|
||
× Expect token
|
||
╭─[externalModules/typeOnly/exportDeclaration_missingBraces.ts:13:1]
|
||
13 │ namespace ns {
|
||
14 │ export type T; // Normal parse error because there is no other 'T'
|
||
· ┬
|
||
· ╰── Expect `=` here, but found `;`
|
||
15 │ }
|
||
╰────
|
||
Expect to Parse: "functions/functionOverloadErrorsSyntax.ts"
|
||
|
||
× Rest element must be last element
|
||
╭─[functions/functionOverloadErrorsSyntax.ts:8:1]
|
||
8 │ //Function overload signature with rest param followed by non-optional parameter
|
||
9 │ function fn5(x: string, ...y: any[], z: string);
|
||
· ─────┬─────
|
||
· ╰── Rest element must be last element
|
||
10 │ function fn5() { }
|
||
╰────
|
||
Expect to Parse: "importAssertion/importAssertion4.ts"
|
||
|
||
× Expect token
|
||
╭─[importAssertion/importAssertion4.ts:1:1]
|
||
1 │ import * as f from "./first" assert
|
||
· ▲
|
||
· ╰── Expect `{` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "importAssertion/importAssertion5.ts"
|
||
|
||
× Expect token
|
||
╭─[importAssertion/importAssertion5.ts:1:1]
|
||
1 │ import * as f from "./first" assert {
|
||
· ▲
|
||
· ╰── Expect `}` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts:4:1]
|
||
4 │ interface boolean { }
|
||
5 │ interface void {}
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ interface unknown {}
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "interfaces/interfacesExtendingClasses/interfaceExtendingClass2.ts"
|
||
|
||
× Expect token
|
||
╭─[interfaces/interfacesExtendingClasses/interfaceExtendingClass2.ts:16:1]
|
||
16 │ };
|
||
17 │ }
|
||
· ┬
|
||
· ╰── Expect `}` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts"
|
||
|
||
× Unexpected token
|
||
╭─[internalModules/exportDeclarations/NonInitializedExportInInternalModule.ts:2:1]
|
||
2 │ module Inner {
|
||
3 │ var;
|
||
· ─
|
||
4 │ let;
|
||
╰────
|
||
Expect to Parse: "jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts"
|
||
|
||
× Unexpected token
|
||
╭─[jsdoc/declarations/jsDeclarationsNonIdentifierInferredNames.ts:11:1]
|
||
11 │ export const ExampleFunctionalComponent = ({ "data-testid": dataTestId, [dynPropName]: dynProp }) => (
|
||
12 │ <>Hello</>
|
||
· ─
|
||
13 │ );
|
||
╰────
|
||
Expect to Parse: "jsdoc/jsdocDisallowedInTypescript.ts"
|
||
|
||
× Unexpected token
|
||
╭─[jsdoc/jsdocDisallowedInTypescript.ts:3:1]
|
||
3 │ // grammar error from checker
|
||
4 │ var ara: Array.<number> = [1,2,3];
|
||
· ─
|
||
5 │
|
||
╰────
|
||
Expect to Parse: "jsdoc/jsdocParseErrorsInTypescript.ts"
|
||
|
||
× Unexpected token
|
||
╭─[jsdoc/jsdocParseErrorsInTypescript.ts:1:1]
|
||
1 │ // parse error (blocks grammar errors from checker)
|
||
2 │ function parse1(n: number=) { }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "jsx/checkJsxNamespaceNamesQuestionableForms.tsx"
|
||
|
||
× Unexpected token
|
||
╭─[jsx/checkJsxNamespaceNamesQuestionableForms.tsx:12:1]
|
||
12 │ <a:b></a:b>;
|
||
13 │ <b:c.x></b:c.x>;
|
||
· ─
|
||
14 │ <this:b></this:b>;
|
||
╰────
|
||
Expect to Parse: "jsx/jsxAndTypeAssertion.tsx"
|
||
|
||
× Expect token
|
||
╭─[jsx/jsxAndTypeAssertion.tsx:7:1]
|
||
7 │ var x: any;
|
||
8 │ x = <any> { test: <any></any> };
|
||
· ┬
|
||
· ╰── Expect `}` here, but found `:`
|
||
9 │
|
||
╰────
|
||
Expect to Parse: "jsx/jsxAttributeInitializer.ts"
|
||
|
||
× Expect token
|
||
╭─[jsx/jsxAttributeInitializer.ts:5:1]
|
||
5 │ <div>
|
||
6 │ <div attr=<div /> />
|
||
· ──┬─
|
||
· ╰── Expect `>` here, but found `Identifier`
|
||
7 │ <div attr=<div>foo</div> />
|
||
╰────
|
||
Expect to Parse: "jsx/jsxEsprimaFbTestSuite.tsx"
|
||
|
||
× Unexpected token
|
||
╭─[jsx/jsxEsprimaFbTestSuite.tsx:40:1]
|
||
40 │
|
||
41 │ <LeftRight left=<a /> right=<b>monkeys /> gorillas</b> />;
|
||
· ─
|
||
42 │
|
||
╰────
|
||
Expect to Parse: "jsx/jsxParsingError1.tsx"
|
||
|
||
× TS18007: JSX expressions may not use the comma operator. Did you mean to write an array?
|
||
╭─[jsx/jsxParsingError1.tsx:13:1]
|
||
13 │ const class2 = "bar";
|
||
14 │ const elem = <div className={class1, class2}/>;
|
||
· ───────┬──────
|
||
· ╰── JSX expressions may not use the comma operator. Did you mean to write an array?
|
||
╰────
|
||
Expect to Parse: "jsx/jsxUnclosedParserRecovery.ts"
|
||
|
||
× Unexpected token
|
||
╭─[jsx/jsxUnclosedParserRecovery.ts:14:1]
|
||
14 │ <
|
||
15 │ </div>;
|
||
· ─
|
||
16 │ function noName() { }
|
||
╰────
|
||
Expect to Parse: "jsx/tsxAttributeInvalidNames.tsx"
|
||
|
||
× Invalid characters after number
|
||
╭─[jsx/tsxAttributeInvalidNames.tsx:11:1]
|
||
11 │ // Invalid names
|
||
12 │ <test1 32data={32} />;
|
||
· ──┬─
|
||
· ╰── Invalid characters after number
|
||
13 │ <test2 -data={32} />;
|
||
╰────
|
||
|
||
× Invalid characters after number
|
||
╭─[jsx/tsxAttributeInvalidNames.tsx:11:1]
|
||
11 │ // Invalid names
|
||
12 │ <test1 32data={32} />;
|
||
· ──┬─
|
||
· ╰── Invalid characters after number
|
||
13 │ <test2 -data={32} />;
|
||
╰────
|
||
Expect to Parse: "jsx/tsxEmitSpreadAttribute.ts"
|
||
|
||
× Expect token
|
||
╭─[jsx/tsxEmitSpreadAttribute.ts:7:1]
|
||
7 │ export function T1(a: any) {
|
||
8 │ return <div className={"T1"} { ...a }>T1</div>;
|
||
· ────┬────
|
||
· ╰── Expect `>` here, but found `Identifier`
|
||
9 │ }
|
||
╰────
|
||
Expect to Parse: "jsx/tsxErrorRecovery1.tsx"
|
||
|
||
× Unexpected token
|
||
╭─[jsx/tsxErrorRecovery1.tsx:6:1]
|
||
6 │ function foo() {
|
||
7 │ var x = <div> { </div>
|
||
· ─
|
||
8 │ }
|
||
╰────
|
||
Expect to Parse: "jsx/tsxFragmentErrors.tsx"
|
||
|
||
× Expect token
|
||
╭─[jsx/tsxFragmentErrors.tsx:11:1]
|
||
11 │
|
||
12 │ <>hi</div> // Error
|
||
· ─┬─
|
||
· ╰── Expect `>` here, but found `Identifier`
|
||
13 │
|
||
╰────
|
||
Expect to Parse: "jsx/tsxReactEmitSpreadAttribute.ts"
|
||
|
||
× Expect token
|
||
╭─[jsx/tsxReactEmitSpreadAttribute.ts:6:1]
|
||
6 │ export function T1(a: any) {
|
||
7 │ return <div className={"T1"} { ...a }>T1</div>;
|
||
· ────┬────
|
||
· ╰── Expect `>` here, but found `Identifier`
|
||
8 │ }
|
||
╰────
|
||
Expect to Parse: "jsx/tsxStatelessFunctionComponents1.tsx"
|
||
|
||
× Expect token
|
||
╭─[jsx/tsxStatelessFunctionComponents1.tsx:46:1]
|
||
46 │ let o = {
|
||
47 │ prop1: true;
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
48 │ }
|
||
╰────
|
||
Expect to Parse: "override/overrideKeywordOrder.ts"
|
||
|
||
× Expect token
|
||
╭─[override/overrideKeywordOrder.ts:14:1]
|
||
14 │ override async m1() {}
|
||
15 │ async override m2() {} // error
|
||
· ─┬
|
||
· ╰── Expect `(` here, but found `Identifier`
|
||
16 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Accessors/parserAccessors10.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/Accessors/parserAccessors10.ts:2:1]
|
||
2 │ var v = {
|
||
3 │ public get foo() { }
|
||
· ─┬─
|
||
· ╰── Expect `,` here, but found `get`
|
||
4 │ };
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Accessors/parserAccessors7.ts"
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[parser/ecmascript5/Accessors/parserAccessors7.ts:1:1]
|
||
1 │ // @target: es5
|
||
2 │ var v = { get foo(v: number) { } };
|
||
· ─────┬─────
|
||
· ╰── A 'get' accessor must not have any formal parameters.
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Accessors/parserAccessors8.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[parser/ecmascript5/Accessors/parserAccessors8.ts:1:1]
|
||
1 │ // @target: es5
|
||
2 │ var v = { set foo() { } }
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Accessors/parserAccessors9.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[parser/ecmascript5/Accessors/parserAccessors9.ts:1:1]
|
||
1 │ // @target: es5
|
||
2 │ var v = { set foo(a, b) { } }
|
||
· ───┬──
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression1.ts:1:1]
|
||
1 │ var v = (public x: string) => { };
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `Identifier`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression2.ts:1:1]
|
||
1 │ a = () => { } || a
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression3.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ArrowFunctionExpressions/parserArrowFunctionExpression3.ts:1:1]
|
||
1 │ a = (() => { } || a)
|
||
· ─┬
|
||
· ╰── Expect `,` here, but found `||`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration3.ts:1:1]
|
||
1 │ class C {
|
||
2 │ export constructor() { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration8.ts"
|
||
|
||
× Classes can't have a field named 'constructor'
|
||
╭─[parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration8.ts:2:1]
|
||
2 │ // Not a constructor
|
||
3 │ public constructor;
|
||
· ─────┬─────
|
||
· ╰── Classes can't have a field named 'constructor'
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/EnumDeclarations/parserEnum4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/EnumDeclarations/parserEnum4.ts:3:1]
|
||
3 │ export enum SignatureFlags {
|
||
4 │ ,
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/EnumDeclarations/parserEnum5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/EnumDeclarations/parserEnum5.ts:1:1]
|
||
1 │ enum E2 { a, }
|
||
2 │ enum E3 { a: 1, }
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `:`
|
||
3 │ enum E1 { a, b: 1, c, d: 2 = 3 }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/EnumDeclarations/parserEnumDeclaration4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/EnumDeclarations/parserEnumDeclaration4.ts:1:1]
|
||
1 │ enum void {
|
||
· ────
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/AccessibilityAfterStatic/parserAccessibilityAfterStatic6.ts:2:1]
|
||
2 │ {
|
||
3 │ static public
|
||
· ┬
|
||
· ╰── Expect `}` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList1.ts:2:1]
|
||
2 │ bar(
|
||
3 │ return x;
|
||
· ──────
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList2.ts:1:1]
|
||
1 │ function foo() {
|
||
2 │ bar(;
|
||
· ─
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList3.ts:2:1]
|
||
2 │ bar(a,
|
||
3 │ return;
|
||
· ──────
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList4.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList4.ts:2:1]
|
||
2 │ bar(a,b
|
||
3 │ return;
|
||
· ───┬──
|
||
· ╰── Expect `,` here, but found `return`
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList6.ts:1:1]
|
||
1 │ Foo(,
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArgumentLists/parserErrorRecovery_ArgumentList7.ts:1:1]
|
||
1 │ Foo(a,,
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression1.ts:1:1]
|
||
1 │ var v = [1, 2, 3
|
||
2 │ 4, 5, 6, 7];
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `decimal`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression2.ts:2:1]
|
||
2 │
|
||
3 │ .7042760848999023, 1.1955541372299194, 0.19600726664066315, -0.7120069861412048];
|
||
· ────────┬────────
|
||
· ╰── Expect `,` here, but found `float`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression3.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrayLiteralExpressions/parserErrorRecoveryArrayLiteralExpression3.ts:1:1]
|
||
1 │ var texCoords = [2, 2, 0.5000001192092895, 0.8749999 ; 403953552, 0.5000001192092895, 0.8749999403953552];
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction1.ts:1:1]
|
||
1 │ var v = (a: ) => {
|
||
· ─
|
||
2 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrowFunctions/ArrowFunction3.ts:1:1]
|
||
1 │ var v = (a): => {
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction1.ts:1:1]
|
||
1 │ var v = (a: ) => {
|
||
· ─
|
||
2 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/ArrowFunctions/parserX_ArrowFunction3.ts:1:1]
|
||
1 │ var v = (a): => {
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block1.ts:2:1]
|
||
2 │ 1 +
|
||
3 │ return;
|
||
· ──────
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block2.ts"
|
||
|
||
× Invalid Character `'¬'`
|
||
╭─[parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block2.ts:1:1]
|
||
1 │ function f() {
|
||
2 │ ¬
|
||
· ┬
|
||
· ╰── Invalid Character `¬`
|
||
3 │ return;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/Blocks/parserErrorRecovery_Block3.ts:3:1]
|
||
3 │
|
||
4 │ private b(): boolean {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement1.ts:4:1]
|
||
4 │ // this as a source unit element.
|
||
5 │ class D {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement2.ts:3:1]
|
||
3 │
|
||
4 │ enum E {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
5 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts"
|
||
|
||
× Invalid Character `'¬'`
|
||
╭─[parser/ecmascript5/ErrorRecovery/ClassElements/parserErrorRecovery_ClassElement3.ts:1:1]
|
||
1 │ module M {
|
||
2 │ ¬
|
||
· ┬
|
||
· ╰── Invalid Character `¬`
|
||
3 │ class C {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/Expressions/parserErrorRecovery_Expression1.ts"
|
||
|
||
× Empty parenthesized expression
|
||
╭─[parser/ecmascript5/ErrorRecovery/Expressions/parserErrorRecovery_Expression1.ts:1:1]
|
||
1 │ var v = ()({});
|
||
· ▲
|
||
· ╰── Expected an expression here
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause1.ts:1:1]
|
||
1 │ class C extends {
|
||
2 │ }
|
||
· ┬
|
||
· ╰── Expect `{` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause2.ts:1:1]
|
||
1 │ class C extends A, {
|
||
2 │ }
|
||
· ┬
|
||
· ╰── Expect `{` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause3.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause3.ts:1:1]
|
||
1 │ class C extends implements A {
|
||
· ┬
|
||
· ╰── Expect `{` here, but found `Identifier`
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause4.ts:1:1]
|
||
1 │ class C extends A implements {
|
||
· ─
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause5.ts:1:1]
|
||
1 │ class C extends A, implements B, {
|
||
· ┬
|
||
· ╰── Expect `{` here, but found `Identifier`
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause6.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ExtendsOrImplementsClauses/parserErrorRecovery_ExtendsOrImplementsClause6.ts:1:1]
|
||
1 │ interface I extends { }
|
||
· ┬
|
||
· ╰── Expect `{` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement1.ts:3:1]
|
||
3 │ if (
|
||
4 │ }
|
||
· ─
|
||
5 │ f2() {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement2.ts:3:1]
|
||
3 │ if (a
|
||
4 │ }
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `}`
|
||
5 │ f2() {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement3.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement3.ts:3:1]
|
||
3 │ if (a.b
|
||
4 │ }
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `}`
|
||
5 │ f2() {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement4.ts:3:1]
|
||
3 │ if (a.b)
|
||
4 │ }
|
||
· ─
|
||
5 │ f2() {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement5.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement5.ts:4:1]
|
||
4 │ }
|
||
5 │ f2() {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement6.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/IfStatements/parserErrorRecoveryIfStatement6.ts:4:1]
|
||
4 │ }
|
||
5 │ public f2() {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/IncompleteMemberVariables/parserErrorRecovery_IncompleteMemberVariable2.ts:11:1]
|
||
11 │
|
||
12 │ public con:C "hello";
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
13 │ // Constructor
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/LeftShifts/parserErrorRecovery_LeftShift1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/LeftShifts/parserErrorRecovery_LeftShift1.ts:1:1]
|
||
1 │ retValue = bfs.VARIABLES >> );
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement1.ts:1:1]
|
||
1 │ return foo;
|
||
2 │ }
|
||
· ─
|
||
3 │ return bar;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ModuleElements/parserErrorRecovery_ModuleElement2.ts:6:1]
|
||
6 │
|
||
7 │ )
|
||
· ─
|
||
8 │ )
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral1.ts:1:1]
|
||
1 │ var v = { a: 1 b: 2 }
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `Identifier`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral2.ts:1:1]
|
||
1 │ var v = { a
|
||
2 │ return;
|
||
· ───┬──
|
||
· ╰── Expect `,` here, but found `return`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral3.ts:1:1]
|
||
1 │ var v = { a:
|
||
2 │ return;
|
||
· ──────
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral4.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral4.ts:1:1]
|
||
1 │ var v = { a: 1
|
||
2 │ return;
|
||
· ───┬──
|
||
· ╰── Expect `,` here, but found `return`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ObjectLiterals/parserErrorRecovery_ObjectLiteral5.ts:1:1]
|
||
1 │ var v = { a: 1,
|
||
2 │ return;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList1.ts:1:1]
|
||
1 │ function f(a {
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `{`
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList2.ts:1:1]
|
||
1 │ function f(a, {
|
||
2 │ }
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList4.ts"
|
||
|
||
× Invalid Character `'¬'`
|
||
╭─[parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList4.ts:1:1]
|
||
1 │ function f(a,¬) {
|
||
· ┬
|
||
· ╰── Invalid Character `¬`
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/ParameterLists/parserErrorRecovery_ParameterList5.ts:1:1]
|
||
1 │ (a:number => { }
|
||
· ─┬
|
||
· ╰── Expect `,` here, but found `=>`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/SourceUnits/parserErrorRecovery_SourceUnit1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/SourceUnits/parserErrorRecovery_SourceUnit1.ts:2:1]
|
||
2 │ }
|
||
3 │ }
|
||
· ─
|
||
4 │ class D {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement1.ts:3:1]
|
||
3 │ 1 +
|
||
4 │ case 2:
|
||
· ────
|
||
5 │ 1 +
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts:4:1]
|
||
4 │
|
||
5 │ class D {
|
||
· ─────
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/TypeArgumentLists/TypeArgumentList1.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/ErrorRecovery/TypeArgumentLists/TypeArgumentList1.ts:1:1]
|
||
1 │ Foo<A,B,\ C>(4, 5, 6);
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/TypeArgumentLists/parserX_TypeArgumentList1.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/ErrorRecovery/TypeArgumentLists/parserX_TypeArgumentList1.ts:1:1]
|
||
1 │ Foo<A,B,\ C>(4, 5, 6);
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/VariableLists/parserErrorRecovery_VariableList1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/VariableLists/parserErrorRecovery_VariableList1.ts:1:1]
|
||
1 │ var a,
|
||
2 │ return;
|
||
· ──────
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/VariableLists/parserInvalidIdentifiersInVariableStatements1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/VariableLists/parserInvalidIdentifiersInVariableStatements1.ts:1:1]
|
||
1 │ var export;
|
||
· ──────
|
||
2 │ var foo;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserEmptyParenthesizedExpression1.ts"
|
||
|
||
× Empty parenthesized expression
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserEmptyParenthesizedExpression1.ts:1:1]
|
||
1 │ function getObj() {
|
||
2 │ ().toString();
|
||
· ▲
|
||
· ╰── Expected an expression here
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction1.ts:1:1]
|
||
1 │ function =>
|
||
· ─┬
|
||
· ╰── Expect `(` here, but found `=>`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserEqualsGreaterThanAfterFunction2.ts:1:1]
|
||
1 │ function (a => b;
|
||
· ─┬
|
||
· ╰── Expect `,` here, but found `=>`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserErrantAccessibilityModifierInModule1.ts:2:1]
|
||
2 │ var x=10; // variable local to this module body
|
||
3 │ private y=x; // property visible only in module
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
4 │ export var z=y; // property visible to any code
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction1.ts:1:1]
|
||
1 │ function f() => 4;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserErrantEqualsGreaterThanAfterFunction2.ts:1:1]
|
||
1 │ function f(p: A) => p;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserErrantSemicolonInClass1.ts:14:1]
|
||
14 │ }
|
||
15 │ public set d() {
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
16 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserFuzz1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserFuzz1.ts:1:1]
|
||
1 │ cla <ss {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │ _ static try
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserMissingLambdaOpenBrace1.ts:3:1]
|
||
3 │ return fromDoWhile(test =>
|
||
4 │ var index = 0;
|
||
· ───
|
||
5 │ return this.doWhile((item, i) => filter(item, i) ? test(item, index++) : true);
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserPublicBreak1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserPublicBreak1.ts:1:1]
|
||
1 │ public break;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserUnfinishedTypeNameBeforeKeyword1.ts:1:1]
|
||
1 │ var x: TypeModule1.
|
||
2 │ module TypeModule2 {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric1.ts:1:1]
|
||
1 │ interface IQService {
|
||
2 │ all(promises: IPromise < any > []): IPromise<
|
||
· ┬
|
||
· ╰── Expect `>` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/ErrorRecovery/parserUnterminatedGeneric2.ts:1:1]
|
||
1 │ declare module ng {
|
||
2 │ interfaceICompiledExpression {
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ (context: any, locals?: any): any;
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ExportAssignments/parserExportAssignment3.ts:1:1]
|
||
1 │ export =
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ExportAssignments/parserExportAssignment4.ts:1:1]
|
||
1 │ export = ;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parseIncompleteBinaryExpression1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Expressions/parseIncompleteBinaryExpression1.ts:1:1]
|
||
1 │ var v = || b;
|
||
· ──
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserAssignmentExpression1.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserAssignmentExpression1.ts:1:1]
|
||
1 │ (foo()) = bar;
|
||
· ──┬──
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserMemberAccessAfterPostfixExpression1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/Expressions/parserMemberAccessAfterPostfixExpression1.ts:1:1]
|
||
1 │ // @lib: es5
|
||
2 │ a--.toString()
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserPostfixPostfixExpression1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/Expressions/parserPostfixPostfixExpression1.ts:1:1]
|
||
1 │ a++ ++;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserPostfixUnaryExpression1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/Expressions/parserPostfixUnaryExpression1.ts:1:1]
|
||
1 │ foo ++ ++;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserTypeAssertionInObjectCreationExpression1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Expressions/parserTypeAssertionInObjectCreationExpression1.ts:1:1]
|
||
1 │ new <T>Foo()
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression1.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression1.ts:1:1]
|
||
1 │ ++this;
|
||
· ──┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression2.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression2.ts:1:1]
|
||
1 │ ++function(e) { }
|
||
· ───────┬───────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression3.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression3.ts:1:1]
|
||
1 │ ++[0];
|
||
· ─┬─
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression4.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression4.ts:1:1]
|
||
1 │ ++{};
|
||
· ─┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression5.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression5.ts:1:1]
|
||
1 │ ++ delete foo.bar
|
||
· ───────┬──────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Expressions/parserUnaryExpression7.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Expressions/parserUnaryExpression7.ts:1:1]
|
||
1 │ ++ new Foo();
|
||
· ────┬────
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Fuzz/parser0_004152.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Fuzz/parser0_004152.ts:1:1]
|
||
1 │ export class Game {
|
||
2 │ private position = new DisplayPosition([), 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 0], NoMove, 0);
|
||
· ─
|
||
3 │ private prevConfig: SeedCoords[][];
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity11.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity11.ts:1:1]
|
||
1 │ 1 >>= 2;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity12.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity12.ts:1:1]
|
||
1 │ 1 >> = 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity13.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity13.ts:1:1]
|
||
1 │ 1 >>/**/= 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity14.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity14.ts:1:1]
|
||
1 │ 1 >>
|
||
2 │ = 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity15.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity15.ts:1:1]
|
||
1 │ 1
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
2 │ // before
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity16.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity16.ts:1:1]
|
||
1 │ 1 >>>= 2;
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity17.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity17.ts:1:1]
|
||
1 │ 1 >>> = 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity18.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity18.ts:1:1]
|
||
1 │ 1 >>>/**/= 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity19.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity19.ts:1:1]
|
||
1 │ 1 >>>
|
||
2 │ = 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity2.ts:1:1]
|
||
1 │ 1 > > 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity20.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity20.ts:1:1]
|
||
1 │ 1
|
||
· ┬
|
||
· ╰── Cannot assign to this expression
|
||
2 │ // Before
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity3.ts:1:1]
|
||
1 │ 1 >/**/> 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity4.ts:1:1]
|
||
1 │ 1 >
|
||
2 │ > 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity7.ts:1:1]
|
||
1 │ 1 >> > 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity8.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity8.ts:1:1]
|
||
1 │ 1 >>/**/> 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity9.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Generics/parserGreaterThanTokenAmbiguity9.ts:1:1]
|
||
1 │ 1 >>
|
||
2 │ > 2;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts:1:1]
|
||
1 │ class C {
|
||
2 │ export [x: string]: string;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts:1:1]
|
||
1 │ interface I {
|
||
2 │ [...a]
|
||
· ───
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts:1:1]
|
||
1 │ interface I {
|
||
2 │ [a, b]: number
|
||
· ┬
|
||
· ╰── Expect `]` here, but found `,`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts:2:1]
|
||
2 │ [p]; // Used to be indexer, now it is a computed property
|
||
3 │ [p1: string];
|
||
· ─
|
||
4 │ [p2: string, p3: number];
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts:1:1]
|
||
1 │ interface I {
|
||
2 │ [public a]
|
||
· ┬
|
||
· ╰── Expect `]` here, but found `Identifier`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts:1:1]
|
||
1 │ interface I {
|
||
2 │ [a?]
|
||
· ─
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature6.ts:2:1]
|
||
2 │ [a:boolean]
|
||
3 │ }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature7.ts:2:1]
|
||
2 │ [a:string]
|
||
3 │ }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts:1:1]
|
||
1 │ var foo: { [index: any]; }; // expect an error here
|
||
· ─
|
||
2 │ var foo2: { [index: RegExp]; }; // expect an error here
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/IndexSignatures/parserIndexSignature9.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/IndexSignatures/parserIndexSignature9.ts:1:1]
|
||
1 │ interface I {
|
||
2 │ []: number
|
||
· ─
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration10.ts:2:1]
|
||
2 │ class C {
|
||
3 │ export get Foo() { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
4 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts"
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration12.ts:2:1]
|
||
2 │ class C {
|
||
3 │ get Foo(a: number) { }
|
||
· ─────┬─────
|
||
· ╰── A 'get' accessor must not have any formal parameters.
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration13.ts:2:1]
|
||
2 │ class C {
|
||
3 │ set Foo() { }
|
||
· ─┬
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts"
|
||
|
||
× A 'set' accessor must have exactly one parameter.
|
||
╭─[parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration14.ts:2:1]
|
||
2 │ class C {
|
||
3 │ set Foo(a: number, b: number) { }
|
||
· ───────────┬──────────
|
||
· ╰── A 'set' accessor must have exactly one parameter.
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts"
|
||
|
||
× A 'set' accessor function argument must not be a rest parameter
|
||
╭─[parser/ecmascript5/MemberAccessorDeclarations/parserMemberAccessorDeclaration18.ts:2:1]
|
||
2 │ class C {
|
||
3 │ set Foo(...a) { }
|
||
· ──┬─
|
||
· ╰── A 'set' accessor function argument must not be a rest parameter
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration4.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/MemberFunctionDeclarations/parserMemberFunctionDeclaration4.ts:1:1]
|
||
1 │ class C {
|
||
2 │ export Foo() { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/MemberVariableDeclarations/parserMemberVariableDeclaration4.ts:1:1]
|
||
1 │ class C {
|
||
2 │ export Foo;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/MissingTokens/parserMissingToken1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/MissingTokens/parserMissingToken1.ts:1:1]
|
||
1 │ a / finally
|
||
· ───────
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/MissingTokens/parserMissingToken2.ts"
|
||
|
||
× Unterminated regular expression
|
||
╭─[parser/ecmascript5/MissingTokens/parserMissingToken2.ts:1:1]
|
||
1 │ / b;
|
||
· ──┬─
|
||
· ╰── Unterminated regular expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ObjectTypes/parserObjectType5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ObjectTypes/parserObjectType5.ts:2:1]
|
||
2 │ A: B
|
||
3 │ <T>;
|
||
· ┬
|
||
· ╰── Expect `(` here, but found `;`
|
||
4 │ };
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ObjectTypes/parserObjectType6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/ObjectTypes/parserObjectType6.ts:2:1]
|
||
2 │ a: B
|
||
3 │ [];
|
||
· ─
|
||
4 │ };
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ParameterLists/parserParameterList1.ts"
|
||
|
||
× Rest element must be last element
|
||
╭─[parser/ecmascript5/ParameterLists/parserParameterList1.ts:1:1]
|
||
1 │ class C {
|
||
2 │ F(...A, B) { }
|
||
· ──┬─
|
||
· ╰── Rest element must be last element
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ParameterLists/parserParameterList5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ParameterLists/parserParameterList5.ts:1:1]
|
||
1 │ function A(): (public B) => C {
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `Identifier`
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/ParameterLists/parserParameterList6.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/ParameterLists/parserParameterList6.ts:1:1]
|
||
1 │ class C {
|
||
2 │ constructor(C: (public A) => any) {
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `Identifier`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RealWorld/parserharness.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RealWorld/parserharness.ts:1430:1]
|
||
1430 │ // Regex for parsing options in the format "@Alpha: Value of any sort"
|
||
1431 │ private optionRegex = /^[\/]{2}\s*@(\w+):\s*(\S*)/gm; // multiple matches on multiple lines
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
1432 │
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser509630.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/RegressionTests/parser509630.ts:2:1]
|
||
2 │ public examples = [ // typing here
|
||
3 │ }
|
||
· ─
|
||
4 │ class Any extends Type {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser509667.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/RegressionTests/parser509667.ts:3:1]
|
||
3 │ if (this.
|
||
4 │ }
|
||
· ─
|
||
5 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser509669.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/RegressionTests/parser509669.ts:1:1]
|
||
1 │ function foo():any {
|
||
2 │ return ():void {};
|
||
· ┬
|
||
· ╰── Expect `=>` here, but found `{`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser512084.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/RegressionTests/parser512084.ts:1:1]
|
||
1 │ class foo {
|
||
· ▲
|
||
· ╰── Expect `}` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser512097.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/RegressionTests/parser512097.ts:1:1]
|
||
1 │ var tt = { aa; }
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `;`
|
||
2 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser512325.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser512325.ts:1:1]
|
||
1 │ var tt = (a, (b, c)) => a+b+c;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser519458.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser519458.ts:1:1]
|
||
1 │ import rect = module("rect"); var bar = new rect.Rect();
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser521128.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser521128.ts:1:1]
|
||
1 │ module.module { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser566700.ts"
|
||
|
||
× Empty parenthesized expression
|
||
╭─[parser/ecmascript5/RegressionTests/parser566700.ts:1:1]
|
||
1 │ var v = ()({});
|
||
· ▲
|
||
· ╰── Expected an expression here
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser585151.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser585151.ts:1:1]
|
||
1 │ class Foo2 {
|
||
2 │ var icecream = "chocolate";
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
3 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser645086_1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser645086_1.ts:1:1]
|
||
1 │ var v = /[]/]/
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegressionTests/parser645086_2.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegressionTests/parser645086_2.ts:1:1]
|
||
1 │ var v = /[^]/]/
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity3.ts"
|
||
|
||
× Unexpected flag 'a' in regular expression literal
|
||
╭─[parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity3.ts:1:1]
|
||
1 │ if (1) /regexp/a.foo();
|
||
· ▲
|
||
· ╰── Unexpected flag a in regular expression literal
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity4.ts"
|
||
|
||
× Unterminated regular expression
|
||
╭─[parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity4.ts:1:1]
|
||
1 │ foo(/notregexp);
|
||
· ──────┬─────
|
||
· ╰── Unterminated regular expression
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity7.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/RegularExpressions/parserRegularExpressionDivideAmbiguity7.ts:1:1]
|
||
1 │ (a/8
|
||
2 │ ){}
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens1.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens1.ts:1:1]
|
||
1 │ \
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens10.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens10.ts:1:1]
|
||
1 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │ \
|
||
3 │ /*existing trivia*/ ;
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens10.ts:1:1]
|
||
1 │ \
|
||
2 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
3 │ /*existing trivia*/ ;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens11.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens11.ts:1:1]
|
||
1 │ ; \ \ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens11.ts:1:1]
|
||
1 │ ; \ \ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens11.ts:1:1]
|
||
1 │ ; \ \ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens12.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens12.ts:1:1]
|
||
1 │ \ \ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens12.ts:1:1]
|
||
1 │ \ \ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens12.ts:1:1]
|
||
1 │ \ \ \
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens13.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens13.ts:1:1]
|
||
1 │ /regexp/ \ ;
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens13.ts:1:1]
|
||
1 │ /regexp/ \ ;
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens14.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens14.ts:1:1]
|
||
1 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
2 │ /*existing trivia*/
|
||
3 │ \
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens14.ts:2:1]
|
||
2 │ /*existing trivia*/
|
||
3 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
4 │ ;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens15.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens15.ts:1:1]
|
||
1 │ /*existing trivia*/
|
||
2 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
3 │ \
|
||
4 │ ;
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens15.ts:2:1]
|
||
2 │ \
|
||
3 │ \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
4 │ ;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens16.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens16.ts:1:1]
|
||
1 │ foo(): Bar { }
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
2 │ function Foo () ¬ { }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens17.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens17.ts:1:1]
|
||
1 │ foo(a, \
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens17.ts:1:1]
|
||
1 │ foo(a, \
|
||
· ┬
|
||
· ╰── Expect `)` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens18.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens18.ts:1:1]
|
||
1 │ foo(a \
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens18.ts:1:1]
|
||
1 │ foo(a \
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `Identifier`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens19.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens19.ts:1:1]
|
||
1 │ \ declare var v;
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens19.ts:1:1]
|
||
1 │ \ declare var v;
|
||
· ────┬────
|
||
· ╰── keyword cannot contain escape characters
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens2.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens2.ts:1:1]
|
||
1 │ \\
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts:1:1]
|
||
1 │ var v: X<T \
|
||
╰────
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens20.ts:1:1]
|
||
1 │ var v: X<T \
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `Identifier`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens3.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens3.ts:1:1]
|
||
1 │ \ ; \
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens3.ts:1:1]
|
||
1 │ \ ; \
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens4.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens4.ts:1:1]
|
||
1 │ \ /regexp/;
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens4.ts:1:1]
|
||
1 │ \ /regexp/;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens5.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens5.ts:1:1]
|
||
1 │ \ /*foo*/ ;
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens6.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens6.ts:1:1]
|
||
1 │ /*foo*/ \
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens7.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens7.ts:1:1]
|
||
1 │ /*foo*/ \ /*bar*/
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens8.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens8.ts:1:1]
|
||
1 │ ;
|
||
2 │ /*foo*/ \ /*bar*/
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SkippedTokens/parserSkippedTokens9.ts"
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[parser/ecmascript5/SkippedTokens/parserSkippedTokens9.ts:1:1]
|
||
1 │ ; // existing trivia
|
||
2 │ /*foo*/ \ /*bar*/
|
||
· ┬
|
||
· ╰── Invalid Unicode escape sequence
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserES5ForOfStatement2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/Statements/parserES5ForOfStatement2.ts:1:1]
|
||
1 │ //@target: ES5
|
||
2 │ for (var of X) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `Identifier`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserES5ForOfStatement21.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserES5ForOfStatement21.ts:1:1]
|
||
1 │ //@target: ES5
|
||
2 │ for (var of of) { }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserForInStatement2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserForInStatement2.ts:1:1]
|
||
1 │ for (var in X) {
|
||
· ──
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserForStatement4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserForStatement4.ts:1:1]
|
||
1 │ for (a = 1 in b) {
|
||
· ─────
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserForStatement6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserForStatement6.ts:1:1]
|
||
1 │ for (foo() in b) {
|
||
· ─────
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserForStatement7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserForStatement7.ts:1:1]
|
||
1 │ for (new foo() in b) {
|
||
· ─────────
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Statements/parserForStatement8.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Statements/parserForStatement8.ts:1:1]
|
||
1 │ for (this in b) {
|
||
· ────
|
||
2 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/SuperExpressions/parserSuperExpression2.ts"
|
||
|
||
× 'super' can only be used with function calls or in property accesses
|
||
╭─[parser/ecmascript5/SuperExpressions/parserSuperExpression2.ts:2:1]
|
||
2 │ M() {
|
||
3 │ super<T>(0);
|
||
· ──┬──
|
||
· ╰── 'super' can only be used with function calls or in property accesses
|
||
4 │ }
|
||
╰────
|
||
help: replace with `super()` or `super.prop` or `super[prop]`
|
||
Expect to Parse: "parser/ecmascript5/TupleTypes/TupleType4.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript5/TupleTypes/TupleType4.ts:1:1]
|
||
1 │ var v: [
|
||
· ┬
|
||
· ╰── Expect `]` here, but found `EOF`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/TupleTypes/TupleType6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/TupleTypes/TupleType6.ts:1:1]
|
||
1 │ var v: [number,,]
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Types/parserTypeQuery3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Types/parserTypeQuery3.ts:1:1]
|
||
1 │ var v: typeof A.
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/Types/parserTypeQuery4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/Types/parserTypeQuery4.ts:1:1]
|
||
1 │ var v: typeof A.;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/VariableDeclarations/parserVariableDeclaration10.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/VariableDeclarations/parserVariableDeclaration10.ts:1:1]
|
||
1 │ var a,;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/VariableDeclarations/parserVariableDeclaration5.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/VariableDeclarations/parserVariableDeclaration5.ts:1:1]
|
||
1 │ var a,
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/VariableDeclarations/parserVariableDeclaration6.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/VariableDeclarations/parserVariableDeclaration6.ts:1:1]
|
||
1 │ var
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/VariableDeclarations/parserVariableDeclaration8.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/VariableDeclarations/parserVariableDeclaration8.ts:1:1]
|
||
1 │ var ;
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserKeywordsAsIdentifierName2.ts"
|
||
|
||
× Unterminated multiline comment
|
||
╭─[parser/ecmascript5/parserKeywordsAsIdentifierName2.ts:1:1]
|
||
1 │ // 'public' should be marked unusable, should complain on trailing /*
|
||
2 │ a.public /*
|
||
· ─┬
|
||
· ╰── Unterminated multiline comment
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserObjectCreationArrayLiteral1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserObjectCreationArrayLiteral1.ts:1:1]
|
||
1 │ new Foo[];
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserObjectCreationArrayLiteral3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserObjectCreationArrayLiteral3.ts:1:1]
|
||
1 │ new Foo[]();
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserRealSource10.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserRealSource10.ts:126:1]
|
||
126 │
|
||
127 │ export var tokenTable = new TokenInfo[];
|
||
· ─
|
||
128 │ export var nodeTypeTable = new string[];
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserRealSource11.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserRealSource11.ts:192:1]
|
||
192 │ public enclosingScope: SymbolScope = null;
|
||
193 │ public members: AST[] = new AST[];
|
||
· ─
|
||
194 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserRealSource4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserRealSource4.ts:194:1]
|
||
194 │ public itemCount: number = 0;
|
||
195 │ public table = new HashEntry[];
|
||
· ─
|
||
196 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserRealSource7.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserRealSource7.ts:15:1]
|
||
15 │ if (baseTypeLinks == null) {
|
||
16 │ baseTypeLinks = new TypeLink[];
|
||
· ─
|
||
17 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserRealSource9.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserRealSource9.ts:11:1]
|
||
11 │ if (typeLinks) {
|
||
12 │ extendsList = new Type[];
|
||
· ─
|
||
13 │ for (var i = 0, len = typeLinks.length; i < len; i++) {
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserS12.11_A3_T4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript5/parserS12.11_A3_T4.ts:15:1]
|
||
15 │ switch(value) {
|
||
16 │ case:
|
||
· ─
|
||
17 │ result += 2;
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parserS7.9_A5.7_T1.ts"
|
||
|
||
× Invalid assignment
|
||
╭─[parser/ecmascript5/parserS7.9_A5.7_T1.ts:15:1]
|
||
15 │ x
|
||
16 │ ╭─▶ ++
|
||
17 │ │ ++
|
||
18 │ ├─▶ y
|
||
· ╰──── Cannot assign to this expression
|
||
19 │
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript5/parservoidInQualifiedName1.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript5/parservoidInQualifiedName1.ts:1:1]
|
||
1 │ var v : void.x;
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName1.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName1.ts:1:1]
|
||
1 │ //@target: ES6
|
||
2 │ var v = { [e] };
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts:4:1]
|
||
4 │ [e]: number = 0
|
||
5 │ [e2]: number
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts:4:1]
|
||
4 │ [e] = id++
|
||
5 │ [e2] = 1
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `[`
|
||
6 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts:4:1]
|
||
4 │ [e] = 0
|
||
5 │ [e2]() { }
|
||
· ┬
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
6 │ }
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts:2:1]
|
||
2 │ var x = {
|
||
3 │ [0, 1]: { }
|
||
· ┬
|
||
· ╰── Expect `]` here, but found `,`
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts:1:1]
|
||
1 │ //@target: ES6
|
||
2 │ var v = { public get [e]() { } };
|
||
· ─┬─
|
||
· ╰── Expect `,` here, but found `get`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/Iterators/parserForOfStatement2.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/Iterators/parserForOfStatement2.ts:1:1]
|
||
1 │ //@target: ES6
|
||
2 │ for (var of X) {
|
||
· ┬
|
||
· ╰── Expect `;` here, but found `Identifier`
|
||
3 │ }
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/Iterators/parserForOfStatement21.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript6/Iterators/parserForOfStatement21.ts:1:1]
|
||
1 │ //@target: ES6
|
||
2 │ for (var of of) { }
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/Iterators/parserForOfStatement22.ts"
|
||
|
||
× The left-hand side of a `for...of` statement may not be `async`
|
||
╭─[parser/ecmascript6/Iterators/parserForOfStatement22.ts:3:1]
|
||
3 │ var async;
|
||
4 │ for (async of [1, 2]) {}
|
||
· ──┬──
|
||
· ╰── The left-hand side of a `for...of` statement may not be `async`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment1.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment1.ts:3:1]
|
||
3 │ var name:any, id: any;
|
||
4 │ foo({ name?, id? });
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `?`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment2.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment2.ts:1:1]
|
||
1 │ var v = { class };
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment3.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment3.ts:1:1]
|
||
1 │ var v = { "" };
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment4.ts"
|
||
|
||
× Unexpected token
|
||
╭─[parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment4.ts:1:1]
|
||
1 │ var v = { 0 };
|
||
· ─
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment5.ts:1:1]
|
||
1 │ var greet = "hello";
|
||
2 │ var obj = { greet? };
|
||
· ┬
|
||
· ╰── Expect `,` here, but found `?`
|
||
╰────
|
||
Expect to Parse: "parser/ecmascript6/Symbols/parserSymbolIndexer5.ts"
|
||
|
||
× Expect token
|
||
╭─[parser/ecmascript6/Symbols/parserSymbolIndexer5.ts:2:1]
|
||
2 │ var x = {
|
||
3 │ [s: symbol]: ""
|
||
· ┬
|
||
· ╰── Expect `]` here, but found `:`
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "salsa/constructorNameInAccessor.ts"
|
||
|
||
× Constructor can't have get/set modifier
|
||
╭─[salsa/constructorNameInAccessor.ts:2:1]
|
||
2 │ class C1 {
|
||
3 │ get constructor() { return }
|
||
· ─────┬─────
|
||
· ╰── Constructor can't have get/set modifier
|
||
4 │ set constructor(value) {}
|
||
╰────
|
||
|
||
× Constructor can't have get/set modifier
|
||
╭─[salsa/constructorNameInAccessor.ts:3:1]
|
||
3 │ get constructor() { return }
|
||
4 │ set constructor(value) {}
|
||
· ─────┬─────
|
||
· ╰── Constructor can't have get/set modifier
|
||
5 │ }
|
||
╰────
|
||
Expect to Parse: "salsa/constructorNameInGenerator.ts"
|
||
|
||
× Constructor can't be a generator
|
||
╭─[salsa/constructorNameInGenerator.ts:2:1]
|
||
2 │ class C2 {
|
||
3 │ *constructor() {}
|
||
· ─────┬─────
|
||
· ╰── Constructor can't be a generator
|
||
4 │ }
|
||
╰────
|
||
Expect to Parse: "salsa/plainJSBinderErrors.ts"
|
||
|
||
× Classes can't have an element named '#constructor'
|
||
╭─[salsa/plainJSBinderErrors.ts:15:1]
|
||
15 │ class C {
|
||
16 │ #constructor = 5
|
||
· ──────┬─────
|
||
· ╰── Classes can't have an element named '#constructor'
|
||
17 │ deleted() {
|
||
╰────
|
||
Expect to Parse: "salsa/plainJSGrammarErrors.ts"
|
||
|
||
× Expect token
|
||
╭─[salsa/plainJSGrammarErrors.ts:8:1]
|
||
8 │ q = #unbound
|
||
9 │ m() {
|
||
· ┬
|
||
· ╰── Expect `in` here, but found `Identifier`
|
||
10 │ #p
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript3/scannerES3NumericLiteral3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[scanner/ecmascript3/scannerES3NumericLiteral3.ts:1:1]
|
||
1 │ 01.0
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "scanner/ecmascript3/scannerES3NumericLiteral4.ts"
|
||
|
||
× Unexpected end of file
|
||
╭─[scanner/ecmascript3/scannerES3NumericLiteral4.ts:1:1]
|
||
1 │ 1e
|
||
╰────
|
||
|
||
× Invalid Number
|
||
╭─[scanner/ecmascript3/scannerES3NumericLiteral4.ts:1:1]
|
||
1 │ 1e
|
||
· ─┬
|
||
· ╰── invalid float
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript3/scannerES3NumericLiteral6.ts"
|
||
|
||
× Unexpected end of file
|
||
╭─[scanner/ecmascript3/scannerES3NumericLiteral6.ts:1:1]
|
||
1 │ 1e+
|
||
╰────
|
||
|
||
× Invalid Number
|
||
╭─[scanner/ecmascript3/scannerES3NumericLiteral6.ts:1:1]
|
||
1 │ 1e+
|
||
· ─┬─
|
||
· ╰── invalid float
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerNumericLiteral3.ts"
|
||
|
||
× Automatic Semicolon Insertion
|
||
╭─[scanner/ecmascript5/scannerNumericLiteral3.ts:1:1]
|
||
1 │ // @target: ES5
|
||
2 │ 01.0
|
||
· ▲
|
||
· ╰── Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╰────
|
||
help: Try insert a semicolon here
|
||
Expect to Parse: "scanner/ecmascript5/scannerNumericLiteral4.ts"
|
||
|
||
× Unexpected end of file
|
||
╭─[scanner/ecmascript5/scannerNumericLiteral4.ts:1:1]
|
||
1 │ // @target: ES5
|
||
2 │ 1e
|
||
╰────
|
||
|
||
× Invalid Number
|
||
╭─[scanner/ecmascript5/scannerNumericLiteral4.ts:1:1]
|
||
1 │ // @target: ES5
|
||
2 │ 1e
|
||
· ─┬
|
||
· ╰── invalid float
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerNumericLiteral6.ts"
|
||
|
||
× Unexpected end of file
|
||
╭─[scanner/ecmascript5/scannerNumericLiteral6.ts:1:1]
|
||
1 │ // @target: ES5
|
||
2 │ 1e+
|
||
╰────
|
||
|
||
× Invalid Number
|
||
╭─[scanner/ecmascript5/scannerNumericLiteral6.ts:1:1]
|
||
1 │ // @target: ES5
|
||
2 │ 1e+
|
||
· ─┬─
|
||
· ╰── invalid float
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerS7.4_A2_T2.ts"
|
||
|
||
× Unterminated multiline comment
|
||
╭─[scanner/ecmascript5/scannerS7.4_A2_T2.ts:11:1]
|
||
11 │
|
||
12 │ ╭─▶ /*CHECK#1/
|
||
13 │ ├─▶
|
||
· ╰──── Unterminated multiline comment
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerS7.8.3_A6.1_T1.ts"
|
||
|
||
× Invalid Character `'\n'`
|
||
╭─[scanner/ecmascript5/scannerS7.8.3_A6.1_T1.ts:12:1]
|
||
12 │ //CHECK#1
|
||
13 │ 0x
|
||
· ▲
|
||
· ╰── Invalid Character `
|
||
`
|
||
14 │
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerS7.8.4_A7.1_T4.ts"
|
||
|
||
× Invalid escape sequence
|
||
╭─[scanner/ecmascript5/scannerS7.8.4_A7.1_T4.ts:12:1]
|
||
12 │ //CHECK#
|
||
13 │ "\u000G"
|
||
· ──┬──
|
||
· ╰── Invalid escape sequence
|
||
14 │
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerStringLiterals.ts"
|
||
|
||
× Unterminated string
|
||
╭─[scanner/ecmascript5/scannerStringLiterals.ts:9:1]
|
||
9 │ "
|
||
10 │ "Should error because of newline.
|
||
· ─────────────────┬────────────────
|
||
· ╰── Unterminated string
|
||
11 │ "Should error because of end of file.
|
||
╰────
|
||
Expect to Parse: "scanner/ecmascript5/scannerUnexpectedNullCharacter1.ts"
|
||
|
||
× Invalid Character `'\0'`
|
||
╭─[scanner/ecmascript5/scannerUnexpectedNullCharacter1.ts:1:1]
|
||
1 │ foo |