Files
test-repo/tests/js/interface/comments.js
T
Georgii Dolzhykov d420202df4 fix(js): comments after superclass (#8312)
* Fix comments after superclass

* add changelog

* refactor

* Organize tests

* Use addBlockStatementFirstComment

* Amend unstableTests list

* Avoid identical comments in tests

* Add tests for `implements`

* Handle comments in interfaces

* Remove an always-false condition

* Almost a fix

* Further fixes

* Add DeclareClass

* Add DeclareInterface, mixins

* Fix extends in DeclareClass

* Fix DeclareClass

* Fix mixins

* Refactor: remove unused parameters

* Add marked dangling comments

* Unify printing of interface for TS and Flow

* Fix unstable interfaces

* Remove comment

* Restore the original behavior for interfaces with multiple inheritance

* Refactoring, tests

* Remove unused code

* Include a file accidentally omitted from the merge commit

* Remove unused type import
2020-05-24 21:53:29 +03:00

29 lines
484 B
JavaScript

interface A1 // comment
{ foo(): bar;}
interface A2 // comment
extends Base
{ foo(): bar;}
interface A3 // comment1
extends Base // comment2
{ foo(): bar;}
interface A4 // comment1
extends Base // comment2
// comment3
{ foo(): bar;}
interface A5 // comment1
extends Base // comment2
// comment3
{ // comment4
foo(): bar;}
interface A6 // comment1
extends Base // comment2
// comment3
{
// comment4
foo(): bar;}