blob: 45ecfbc0161945be46d938633e712ad599eea82b [file] [log] [blame]
<begin>int first, last
statementOwner.statements.each {
st ->
final range = st.textRange
if (range.endOffset == start) {
first = st
}
else if (range.startOffset == end) {
last = st
}
}<end>
if (last == null || first == null) return CANNOT_JOIN
-----
def (int last, int first) = testMethod()
private List testMethod() {
int first, last
statementOwner.statements.each {
st ->
final range = st.textRange
if (range.endOffset == start) {
first = st
} else if (range.startOffset == end) {
last = st
}
}
return [last, first]
}
if (last == null || first == null) return CANNOT_JOIN