seenFirstToken = true;
}
@Override
public void leaveNode(AstNode astNode) {
SourceCode sourceCode = getContext().peekSourceCode();
int commentlines = 0;
for (int line = sourceCode.getStartAtLine(); line <= sourceCode.getEndAtLine(); line++) {
if (comments.contains(line)) {
commentlines++;
}
}
sourceCode.setMeasure(CxxMetric.COMMENT_LINES, commentlines);
}