int nodeLine = resource.getResourceCompUnit().getLineNumber(
parent.getStartPosition());
int line = 0;
for (Iterator it = comments.iterator(); it.hasNext() && !found
&& nodeLine > line;) {
Comment c = (Comment) it.next();
// $ANALYSIS-IGNORE,codereview.java.rules.loop.RuleLoopAssignLoopVariable
line = resource.getResourceCompUnit().getLineNumber(
c.getStartPosition());
if (c.getNodeType() == ASTNode.LINE_COMMENT) {
LineComment lc = (LineComment) c;
try {
String comment = resource.getICompilationUnit()
.getBuffer().getText(lc.getStartPosition(),