Temp revert fix for KT-10591 as it causes non-obvious test breakage
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package format.test
|
||||
|
||||
class LineComments {
|
||||
// Should not be formatted
|
||||
// Format
|
||||
// Should not be formatted
|
||||
// Format
|
||||
// Format
|
||||
fun test() {
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package format.test
|
||||
|
||||
class LineComments {
|
||||
// Should not be formatted
|
||||
// Format
|
||||
// Should not be formatted
|
||||
// Format
|
||||
// Format
|
||||
fun test() {
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
object Test {
|
||||
object Test { // TODO restore correct behavior
|
||||
// some
|
||||
fun test() {
|
||||
<caret>
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
object Test {
|
||||
object Test { // TODO restore correct behavior
|
||||
// some
|
||||
fun test() {<caret>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user