ITextRegion result = ITextRegion.EMPTY_REGION;
for (INode node : nodes) {
if (!isHidden(node)) {
int length = node.getLength();
if (length != 0)
<BUG>result = result.merge(new TextRegionWithLineInformation(node.getOffset(), length, node.getStartLine(), node.getEndLine()));
</BUG>
}
}
return result;

ITextRegion result = ITextRegion.EMPTY_REGION;
for (INode node : nodes) {
if (!isHidden(node)) {
int length = node.getLength();
if (length != 0)
result = result.merge(new TextRegionWithLineInformation(node.getOffset(), length, node.getStartLine() - 1, node.getEndLine() - 1));
}
}
return result;
