// between the start and end tag
// else if the region is a comment
// else if the region is only an open tag or an open/close tag
// then don't fold it
if (startRegion != null && endRegion != null) {
pos = new XMLElementFoldingPosition(startRegion, endRegion);
} else if (startRegion != null && node instanceof CommentImpl) {
pos = new XMLCommentFoldingPosition(startRegion);
}
}
}