You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/org/domaframework/doma/intellij/formatter/block/comment/SqlElConditionLoopCommentBlock.kt
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -249,11 +249,16 @@ class SqlElConditionLoopCommentBlock(
249
249
// At this point, it's not possible to determine whether the parent keyword group appears before or after this block based solely on the parent-child relationship.
250
250
// Therefore, determine the position directly using the text offset.
251
251
returnif (!isBeforeParentBlock()) {
252
-
// The child branch applies in cases where a conditional directive is included as a child of this block.
253
-
val questOffset =if (parent isSqlWithQueryGroupBlock) 0else1
254
-
parent.indent.groupIndentLen
255
-
.plus(openConditionLoopDirectiveCount *2)
256
-
.plus(questOffset)
252
+
val lastBlockConditionLoopCommentBlock:SqlElConditionLoopCommentBlock?= getLastBlockHasConditionLoopDirective()
253
+
if (lastBlockConditionLoopCommentBlock !=null&& lastBlockConditionLoopCommentBlock.conditionEnd !=null) {
Copy file name to clipboardExpand all lines: src/main/kotlin/org/domaframework/doma/intellij/formatter/block/group/keyword/top/SqlJoinQueriesGroupBlock.kt
0 commit comments