+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.
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
3 changes: 3 additions & 0 deletions crates/rome_js_formatter/tests/specs/ts/class/accessor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export abstract class C {
protected abstract accessor prop: number
}
37 changes: 37 additions & 0 deletions crates/rome_js_formatter/tests/specs/ts/class/accessor.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
source: crates/rome_formatter_test/src/snapshot_builder.rs
assertion_line: 212
info: ts/class/accessor.ts
---

# Input

```ts
export abstract class C {
protected abstract accessor prop: number
}
```


=============================

# Outputs

## Output 1

-----
Indent style: Tab
Line width: 80
Quote style: Double Quotes
Quote properties: As needed
Trailing comma: All
Semicolons: Always
-----

```ts
export abstract class C {
protected abstract accessor prop: number;
}
```


2 changes: 1 addition & 1 deletion crates/rome_js_syntax/src/modifier_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ pub enum Modifiers {
Accessibility,
Declare,
Static,
Accessor,
Abstract,
Override,
Readonly,
Accessor,
}

impl From<&AnyTsIndexSignatureModifier> for Modifiers {
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载