--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: ts/decoartors.ts --- # Input ```ts @sealed class Test { @readonly prop: string; constructor(@param test, @readonly private other, @aVeryLongDecoratorNameLetsSeeWhatHappensWithIt last) {} method(@param a) {} get getter() {} set setter(@param param) {} } @sealed export default class {} @sealed export class Test {} // Leading comment before decorator @test // first decorator // Leading comment before class class Test2 { /* * Leading multiline comment */ @test /* trailing multiline comment for decorator */ @anotherDecorator() // leading comment prop: string; } ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```ts @sealed class Test { @readonly prop: string; constructor( @param test, @readonly private other, @aVeryLongDecoratorNameLetsSeeWhatHappensWithIt last, ) {} method(@param a) {} get getter() {} set setter(@param param) {} } @sealed export default class {} @sealed export class Test {} // Leading comment before decorator @test // first decorator // Leading comment before class class Test2 { /* * Leading multiline comment */ @test /* trailing multiline comment for decorator */ @anotherDecorator() // leading comment prop: string; } ``` ## Unimplemented nodes/tokens "@sealed" => 0..7 "\t@readonl" => 21..30 "\t\t@par" => 62..68 "\t\t@readon" => 77..86 "\t\t@aVeryLongDecoratorNameLetsSeeWhatHappensWith" => 104..151 "@param" => 175..181 "@param" => 219..225 "@sealed" => 239..246 "@sealed" => 272..279 "@test" => 338..343 "\t@test /* trailing multiline comment\n\t for decorator */ @anotherDecorator(" => 449..523