@@ -248,6 +248,147 @@ class Foo {
248248================================================================================
249249` ;
250250
251+ exports [` 16889.ts format 1` ] = `
252+ ====================================options=====================================
253+ parsers: ["typescript"]
254+ printWidth: 80
255+ | printWidth
256+ =====================================input======================================
257+ class A {
258+ @decorator
259+ /**
260+ * The method description
261+ *
262+ */
263+ async method () {
264+ }
265+
266+ @decorator /**
267+ * The method description
268+ *
269+ */
270+ async method () {
271+ }
272+
273+ @decorator /**
274+ * The method description
275+ *
276+ */ async method () {
277+ }
278+
279+ @decorator
280+ async /* comment */ method () {
281+ }
282+
283+ @decorator /* comment */ async method () {
284+ }
285+
286+ @decorator
287+ // line comment
288+ async method () {
289+ }
290+
291+ @decorator // line comment
292+ async method () {
293+ }
294+
295+
296+ @decorator
297+ /* comment */
298+ public async method () {
299+ }
300+
301+ @decorator
302+ /* comment */
303+ static async method () {
304+ }
305+
306+ @decorator
307+ /* comment */
308+ protected async method () {
309+ }
310+
311+ @decorator
312+ /* comment */
313+ protected async method () {
314+ }
315+
316+ @decorator
317+ /* comment */
318+ * method () {}
319+
320+ @decorator
321+ * /* comment */ method () {}
322+
323+ /* comment */
324+ abstract method ():void ;
325+
326+ }
327+
328+
329+ =====================================output=====================================
330+ class A {
331+ @decorator
332+ /**
333+ * The method description
334+ *
335+ */
336+ async method () {}
337+
338+ @decorator /**
339+ * The method description
340+ *
341+ */
342+ async method () {}
343+
344+ @decorator /**
345+ * The method description
346+ *
347+ */
348+ async method () {}
349+
350+ @decorator
351+ async /* comment */ method () {}
352+
353+ @decorator /* comment */ async method () {}
354+
355+ @decorator
356+ // line comment
357+ async method () {}
358+
359+ @decorator // line comment
360+ async method () {}
361+
362+ @decorator
363+ /* comment */
364+ public async method () {}
365+
366+ @decorator
367+ /* comment */
368+ static async method () {}
369+
370+ @decorator
371+ /* comment */
372+ protected async method () {}
373+
374+ @decorator
375+ /* comment */
376+ protected async method () {}
377+
378+ @decorator
379+ /* comment */
380+ * method () {}
381+
382+ @decorator
383+ * /* comment */ method () {}
384+
385+ /* comment */
386+ abstract method (): void ;
387+ }
388+
389+ ================================================================================
390+ ` ;
391+
251392exports [` abstract_class.ts format 1` ] = `
252393====================================options=====================================
253394parsers: ["typescript"]
0 commit comments