Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ea75b9
commit 828b241
Showing
18 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...fixtures/typescript/static-blocks/invalid-static-block-with-modifier-abstract-02/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Foo { | ||
static abstract {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ures/typescript/static-blocks/invalid-static-block-with-modifier-abstract-02/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...atic-block-with-modifier-override-01/invalid-static-block-with-modifier-abstract/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Foo { | ||
abstract static {} | ||
} |
38 changes: 38 additions & 0 deletions
38
...c-block-with-modifier-override-01/invalid-static-block-with-modifier-abstract/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"type": "File", | ||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, | ||
"errors": [ | ||
"SyntaxError: Static class blocks cannot have any modifier. (2:20)" | ||
], | ||
"program": { | ||
"type": "Program", | ||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, | ||
"sourceType": "module", | ||
"interpreter": null, | ||
"body": [ | ||
{ | ||
"type": "ClassDeclaration", | ||
"start":0,"end":34,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}}, | ||
"id": { | ||
"type": "Identifier", | ||
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9},"identifierName":"Foo"}, | ||
"name": "Foo" | ||
}, | ||
"superClass": null, | ||
"body": { | ||
"type": "ClassBody", | ||
"start":10,"end":34,"loc":{"start":{"line":1,"column":10},"end":{"line":3,"column":1}}, | ||
"body": [ | ||
{ | ||
"type": "StaticBlock", | ||
"start":14,"end":32,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":20}}, | ||
"abstract": true, | ||
"body": [] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...fixtures/typescript/static-blocks/invalid-static-block-with-modifier-override-02/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Foo { | ||
static override {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ures/typescript/static-blocks/invalid-static-block-with-modifier-override-02/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
.../fixtures/typescript/static-blocks/invalid-static-blocks-with-modifer-declare-02/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Foo { | ||
static declare {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...tures/typescript/static-blocks/invalid-static-blocks-with-modifer-declare-02/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:17)" | ||
} |
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...ixtures/typescript/static-blocks/invalid-static-blocks-with-modifier-readonly-02/input.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class Foo { | ||
static readonly {} | ||
} |
12 changes: 12 additions & 0 deletions
12
...res/typescript/static-blocks/invalid-static-blocks-with-modifier-readonly-02/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"classStaticBlock" | ||
], | ||
[ | ||
"typescript" | ||
] | ||
], | ||
"sourceType": "module", | ||
"throws": "Unexpected token (2:18)" | ||
} |