Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: support Explicit Resource Management syntax for TS 5.2#7479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
21 commits
Select commitHold shift + click to select a range
66ff863
feat: update `VariableDeclaration` spec
sajikixAug 14, 2023
f64efd7
feat: support `using` declaration for `getDeclarationKind`
sajikixAug 14, 2023
a428311
feat: add snapshot test
sajikixAug 14, 2023
014ca89
fix: getDeclarationKind logic
sajikixAug 14, 2023
3543126
fix: sort `kind` property member.
sajikixAug 15, 2023
8df31d2
fix: reduce switch cases
sajikixAug 15, 2023
77ec66d
fix: `getDeclarationKind` flag discrimination logic
sajikixAug 16, 2023
3631100
feat: throw errors in binding patterns or not initialized
sajikixAug 16, 2023
50f2934
feat: add snapshot test error case
sajikixAug 17, 2023
9080985
fix: lint errors in convert
sajikixAug 17, 2023
a718755
feat: make `VariableDeclaration` to union type of `let/const/var` cas…
sajikixAug 17, 2023
4c85cd5
Merge branch 'main' into support-using-declarations-ts-5.2
sajikixAug 17, 2023
f465d57
fix: export `LetOrConstOrVarDeclaration` and `UsingDeclaration` type
sajikixAug 17, 2023
76a26a3
Merge branch 'main' into support-using-declarations-ts-5.2
sajikixAug 17, 2023
468f107
feat: add `using` declaration in for-of statement test
sajikixAug 17, 2023
5073ce1
fix: move fixtures to `ForOfStatement`
sajikixAug 18, 2023
9456e37
feat: update Declaration type in forOfStatement
sajikixAug 18, 2023
a9e716a
fix: apply lint fix
sajikixAug 18, 2023
d9e3ae3
feat: add validation when `using` is used in for-of statement
sajikixAug 18, 2023
d7721a7
feat: define DeclarationKind type
sajikixAug 18, 2023
96514c0
Merge branch 'main' into support-using-declarations-ts-5.2
sajikixAug 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions.prettierignore
View file
Open in desktop
Original file line numberDiff line numberDiff 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 numberDiff line numberDiff line change
@@ -0,0 +1 @@
declare using a = 1;

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

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

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

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

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

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

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

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

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

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

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

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

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

View file
Open in desktop

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

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

Loading

[8]ページ先頭

©2009-2025 Movatter.jp