Temp revert fix for KT-10591 as it causes non-obvious test breakage

This commit is contained in:
Dmitry Jemerov
2018-01-17 11:30:01 +01:00
parent a752f3f38e
commit ca57309374
5 changed files with 8 additions and 8 deletions
@@ -417,7 +417,7 @@ abstract class KotlinCommonBlock(
childrenAlignmentStrategy: CommonAlignmentStrategy,
wrappingStrategy: WrappingStrategy
): Sequence<ASTBlock> {
if (node.elementType == KtNodeTypes.FUN) {
if (node.elementType == KtNodeTypes.FUN && false /* TODO fix tests and restore */) {
val filteredChildren = node.children().filter {
it.textRange.length > 0 && it.elementType != TokenType.WHITE_SPACE
}
@@ -1,8 +1,8 @@
package format.test
class LineComments {
// Should not be formatted
// Format
// Should not be formatted
// Format
// Format
fun test() {
}
@@ -1,8 +1,8 @@
package format.test
class LineComments {
// Should not be formatted
// Format
// Should not be formatted
// Format
// Format
fun test() {
}
+2 -2
View File
@@ -1,6 +1,6 @@
object Test {
object Test { // TODO restore correct behavior
// some
fun test() {
<caret>
<caret>
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
object Test {
object Test { // TODO restore correct behavior
// some
fun test() {<caret>
}