Skip to content

Commit

Permalink
feat: support Explicit Resource Management syntax for TS 5.2 (#7479)
Browse files Browse the repository at this point in the history
  • Loading branch information
sajikix committed Aug 24, 2023
1 parent 9dcc1d1 commit c11e05c
Show file tree
Hide file tree
Showing 58 changed files with 2,302 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ packages/eslint-plugin/tests/fixtures/indent/
# prettier errors on this case because it's semantically valid
packages/ast-spec/src/element/AccessorProperty/fixtures/modifier-abstract-with-value/fixture.ts

# prettier doesn't yet support `using` declaration
packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-multiple-declarations/fixture.ts
packages/ast-spec/src/declaration/VariableDeclaration/fixtures/await-using-with-value/fixture.ts
packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-multiple-declarations/fixture.ts
packages/ast-spec/src/declaration/VariableDeclaration/fixtures/using-with-value/fixture.ts
packages/ast-spec/src/statement/ForOfStatement/fixtures/using-decralation/fixture.ts

# prettier doesn't yet support `const` modifiers for type parameters
packages/ast-spec/src/special/TSTypeParameter/fixtures

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare using a = 1;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
using a;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
using {a} = {a: 1};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
await using x = 1, y = 2;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c11e05c

Please sign in to comment.