diff options
author | Frederic Fusier | 2005-10-10 15:30:43 +0000 |
---|---|---|
committer | Frederic Fusier | 2005-10-10 15:30:43 +0000 |
commit | 28dd1050b46fae522d51f1c10cb06a79601770f3 (patch) | |
tree | 235182c69b94e5470c937aff3acad54976b09b88 /org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java | |
parent | 5e23ed7edfe961d34bd26ee29fb9ade957409733 (diff) | |
download | eclipse.jdt.core-28dd1050b46fae522d51f1c10cb06a79601770f3.tar.gz eclipse.jdt.core-28dd1050b46fae522d51f1c10cb06a79601770f3.tar.xz eclipse.jdt.core-28dd1050b46fae522d51f1c10cb06a79601770f3.zip |
HEAD - Basic support for code assist in Javadoc comments
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java')
-rw-r--r-- | org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java index 2b57e897f3..754e4779d7 100644 --- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java +++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java @@ -15,6 +15,7 @@ import java.util.List; import org.eclipse.jdt.core.compiler.CharOperation; import org.eclipse.jdt.core.compiler.InvalidInputException; +import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; import org.eclipse.jdt.internal.compiler.parser.AbstractCommentParser; import org.eclipse.jdt.internal.compiler.parser.Scanner; import org.eclipse.jdt.internal.compiler.parser.TerminalTokens; @@ -36,7 +37,7 @@ class DocCommentParser extends AbstractCommentParser { super(null); this.ast = ast; this.scanner = scanner; - this.jdk15 = this.ast.apiLevel() >= AST.JLS3; + this.sourceLevel = this.ast.apiLevel() >= AST.JLS3 ? ClassFileConstants.JDK1_5 : ClassFileConstants.JDK1_3; this.checkDocComment = check; this.kind = DOM_PARSER; } @@ -473,7 +474,7 @@ class DocCommentParser extends AbstractCommentParser { } break; case 'v': - if (this.jdk15 && CharOperation.equals(tag, TAG_VALUE)) { + if (this.sourceLevel >= ClassFileConstants.JDK1_5 && CharOperation.equals(tag, TAG_VALUE)) { this.tagValue = TAG_VALUE_VALUE; if (this.inlineTagStarted) { valid = parseReference(); |