* 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
29 lines
484 B
JavaScript
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;}
|