Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions crates/oxc_formatter/src/parentheses/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ impl<'a> NeedsParentheses<'a> for AstNode<'a, TSTypeAssertion<'a>> {
| AstNodes::IdentifierReference(_)
| AstNodes::AssignmentExpression(_)
| AstNodes::AssignmentTargetWithDefault(_)
| AstNodes::UpdateExpression(_)
)
}
}
Expand Down Expand Up @@ -937,6 +938,7 @@ fn ts_as_or_satisfies_needs_parens(parent: &AstNodes<'_>) -> bool {
| AstNodes::PrivateFieldExpression(_)
| AstNodes::AssignmentExpression(_)
| AstNodes::AssignmentTargetWithDefault(_)
| AstNodes::UpdateExpression(_)
)
}

Expand Down
4 changes: 1 addition & 3 deletions tasks/coverage/snapshots/formatter_typescript.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ commit: 261630d6

formatter_typescript Summary:
AST Parsed : 8816/8816 (100.00%)
Positive Passed: 8757/8816 (99.33%)
Positive Passed: 8758/8816 (99.34%)
Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/APISample_jsdoc.ts

Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/amdLikeInputDeclarationEmit.ts
Expand Down Expand Up @@ -45,8 +45,6 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/readonlyAssignme

Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/reducibleIndexedAccessTypes.ts

Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/referenceSatisfiesExpression.ts

Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/reverseMappedTypeInferenceSameSource1.ts

Expect to Parse: tasks/coverage/typescript/tests/cases/compiler/sourceMapValidationClasses.ts
Expand Down
5 changes: 2 additions & 3 deletions tasks/prettier_conformance/snapshots/prettier.ts.snap.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ts compatibility: 350/573 (61.08%)
ts compatibility: 351/573 (61.26%)

# Failed

Expand All @@ -18,7 +18,7 @@ ts compatibility: 350/573 (61.08%)
| typescript/array/comment.ts | 💥 | 87.50% |
| typescript/arrow/16067.ts | 💥💥 | 95.92% |
| typescript/arrow/comments.ts | 💥✨ | 44.44% |
| typescript/as/as.ts | 💥 | 67.72% |
| typescript/as/as.ts | 💥 | 69.29% |
| typescript/as/assignment.ts | 💥 | 86.67% |
| typescript/as/assignment2.ts | 💥 | 94.12% |
| typescript/as/export_default_as.ts | 💥 | 0.00% |
Expand Down Expand Up @@ -225,5 +225,4 @@ ts compatibility: 350/573 (61.08%)
| typescript/union/consistent-with-flow/single-type.ts | 💥 | 3.39% |
| typescript/union/consistent-with-flow/within-tuple.ts | 💥 | 16.51% |
| typescript/union/single-type/single-type.ts | 💥 | 33.33% |
| typescript/update-expression/update-expressions.ts | 💥 | 81.25% |
| typescript/webhost/webtsc.ts | 💥 | 99.08% |
Loading