Link Here
|
15 |
import org.eclipse.jdt.core.compiler.CharOperation; |
15 |
import org.eclipse.jdt.core.compiler.CharOperation; |
16 |
import org.eclipse.jdt.core.compiler.InvalidInputException; |
16 |
import org.eclipse.jdt.core.compiler.InvalidInputException; |
17 |
import org.eclipse.jdt.internal.compiler.parser.JavadocParser; |
17 |
import org.eclipse.jdt.internal.compiler.parser.JavadocParser; |
18 |
import org.eclipse.jdt.internal.compiler.parser.Parser; |
|
|
19 |
import org.eclipse.jdt.internal.compiler.parser.ScannerHelper; |
18 |
import org.eclipse.jdt.internal.compiler.parser.ScannerHelper; |
20 |
import org.eclipse.jdt.internal.compiler.parser.TerminalTokens; |
19 |
import org.eclipse.jdt.internal.compiler.parser.TerminalTokens; |
21 |
import org.eclipse.jdt.internal.formatter.comment.IJavaDocTagConstants; |
20 |
import org.eclipse.jdt.internal.formatter.comment.IJavaDocTagConstants; |
Link Here
|
28 |
int htmlTagsPtr = -1; |
27 |
int htmlTagsPtr = -1; |
29 |
private boolean invalidTagName; |
28 |
private boolean invalidTagName; |
30 |
|
29 |
|
31 |
FormatterCommentParser(Parser sourceParser) { |
30 |
public FormatterCommentParser(long sourceLevel) { |
32 |
super(sourceParser); |
31 |
super(null); |
33 |
this.kind = FORMATTER_COMMENT_PARSER | TEXT_PARSE; |
32 |
this.kind = FORMATTER_COMMENT_PARSER | TEXT_PARSE; |
34 |
this.reportProblems = false; |
33 |
this.reportProblems = false; |
35 |
this.checkDocComment = true; |
34 |
this.checkDocComment = true; |
|
|
35 |
this.sourceLevel = sourceLevel; |
36 |
} |
36 |
} |
37 |
|
37 |
|
38 |
public boolean parse(int start, int end) { |
38 |
public boolean parse(int start, int end) { |