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,
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -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
@@ -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
@@ -1,6 +1,6 @@
|
|||||||
object Test {
|
object Test { // TODO restore correct behavior
|
||||||
// some
|
// some
|
||||||
fun test() {
|
fun test() {
|
||||||
<caret>
|
<caret>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
object Test {
|
object Test { // TODO restore correct behavior
|
||||||
// some
|
// some
|
||||||
fun test() {<caret>
|
fun test() {<caret>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user