Fixed formatter to work correctly with comments inside declaration nodes

This commit is contained in:
Valentin Kipyatkov
2014-10-03 19:56:42 +04:00
parent d6dc2531b0
commit 84ba96900a
5 changed files with 46 additions and 1 deletions
@@ -136,6 +136,12 @@ public class JetFormatterTestGenerated extends AbstractJetFormatterTest {
doTest(fileName);
}
@TestMetadata("DocComments.after.kt")
public void testDocComments() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/formatter/DocComments.after.kt");
doTest(fileName);
}
@TestMetadata("ElseOnNewLine.after.kt")
public void testElseOnNewLine() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/formatter/ElseOnNewLine.after.kt");