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, childrenAlignmentStrategy: CommonAlignmentStrategy,
wrappingStrategy: WrappingStrategy wrappingStrategy: WrappingStrategy
): Sequence<ASTBlock> { ): Sequence<ASTBlock> {
if (node.elementType == KtNodeTypes.FUN) { if (node.elementType == KtNodeTypes.FUN && false /* TODO fix tests and restore */) {
val filteredChildren = node.children().filter { val filteredChildren = node.children().filter {
it.textRange.length > 0 && it.elementType != TokenType.WHITE_SPACE it.textRange.length > 0 && it.elementType != TokenType.WHITE_SPACE
} }
@@ -1,8 +1,8 @@
package format.test package format.test
class LineComments { class LineComments {
// Should not be formatted // Should not be formatted
// Format // Format
// Format // Format
fun test() { fun test() {
} }
@@ -1,8 +1,8 @@
package format.test package format.test
class LineComments { class LineComments {
// Should not be formatted // Should not be formatted
// Format // Format
// Format // Format
fun test() { fun test() {
} }
+2 -2
View File
@@ -1,6 +1,6 @@
object Test { object Test { // TODO restore correct behavior
// some // some
fun test() { fun test() {
<caret> <caret>
} }
} }
+1 -1
View File
@@ -1,4 +1,4 @@
object Test { object Test { // TODO restore correct behavior
// some // some
fun test() {<caret> fun test() {<caret>
} }