1 11 package org.eclipse.jdt.internal.core.util; 12 13 import org.eclipse.jdt.internal.compiler.parser.Scanner; 14 15 20 public class CommentRecorderScanner extends Scanner { 21 22 public CommentRecorderScanner( 23 boolean tokenizeComments, 24 boolean tokenizeWhiteSpace, 25 boolean checkNonExternalizedStringLiterals, 26 long sourceLevel, 27 char[][] taskTags, 28 char[][] taskPriorities, 29 boolean isTaskCaseSensitive) { 30 super(tokenizeComments, tokenizeWhiteSpace, checkNonExternalizedStringLiterals, sourceLevel, taskTags, taskPriorities, isTaskCaseSensitive); 31 } 32 33 37 public void recordComment(int token) { 38 super.recordComment(token); 39 if (token == TokenNameCOMMENT_LINE) { 40 this.commentStarts[this.commentPtr] = -this.commentStarts[this.commentPtr]; 42 } 43 } 44 } 45 | Popular Tags |