File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
tests/fixtures/ts/static-members Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,9 @@ fn layout<'a>(
147147 }
148148
149149 match first_non_static_member_ancestor {
150- AstNodes :: NewExpression ( _) => StaticMemberLayout :: NoBreak ,
150+ AstNodes :: Argument ( argument) if matches ! ( argument. parent, AstNodes :: NewExpression ( _) ) => {
151+ StaticMemberLayout :: NoBreak
152+ }
151153 AstNodes :: AssignmentExpression ( assignment) => {
152154 if matches ! ( assignment. left, AssignmentTarget :: AssignmentTargetIdentifier ( _) ) {
153155 StaticMemberLayout :: BreakAfterObject
Original file line number Diff line number Diff line change 1+ TelemetryTrustedValue (
2+ instance . capabilities . get (
3+ TerminalCapability ?. PromptTypeDetection
4+ ) ?. promptType
5+ )
6+
7+ new TelemetryTrustedValue (
8+ instance . capabilities . get (
9+ TerminalCapability ?. PromptTypeDetection
10+ ) ?. promptType
11+ )
Original file line number Diff line number Diff line change 1+ -- -
2+ source : crates / oxc_formatter / tests / fixtures / mod .rs
3+ -- -
4+ ==================== Input ====================
5+ TelemetryTrustedValue (
6+ instance .capabilities .get (
7+ TerminalCapability ? .PromptTypeDetection
8+ )? .promptType
9+ )
10+
11+ new TelemetryTrustedValue (
12+ instance .capabilities .get (
13+ TerminalCapability ? .PromptTypeDetection
14+ )? .promptType
15+ )
16+ ==================== Output ====================
17+ TelemetryTrustedValue (
18+ instance .capabilities .get (TerminalCapability ? .PromptTypeDetection )
19+ ? .promptType ,
20+ );
21+
22+ new TelemetryTrustedValue (
23+ instance .capabilities .get (
24+ TerminalCapability ? .PromptTypeDetection ,
25+ )? .promptType ,
26+ );
27+
28+ ===================== End =====================
You can’t perform that action at this time.
0 commit comments