@Override protected void processComment(CommentStyle style) { int prevEndPos = Math.max(prevEndPos(), endComment); int pos = pos(); int endPos = endPos(); endComment = endPos; String content = new String(getRawCharacters(pos, endPos)); StartConnection start = determineStartConnection(prevEndPos, pos); EndConnection end = determineEndConnection(endPos); CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end); comments.append(comment); super.processComment(style); }
@Override protected void processComment(CommentStyle style) { int prevEndPos = Math.max(prevEndPos(), endComment); int pos = pos(); int endPos = endPos(); endComment = endPos; String content = new String(getRawCharacters(pos, endPos)); StartConnection start = determineStartConnection(prevEndPos, pos); EndConnection end = determineEndConnection(endPos); CommentInfo comment = new CommentInfo(prevEndPos, pos, endPos, content, start, end); comments.append(comment); super.processComment(style); }
if (bp < buflen) { endPos = bp; processComment(CommentStyle.LINE); scanChar(); endPos = bp; processComment(style); break; } else {
if (bp < buflen) { endPos = bp; processComment(CommentStyle.LINE); scanChar(); endPos = bp; processComment(style); break; } else {