Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thomann2005-02-01 19:25:50 +0000
committerOlivier Thomann2005-02-01 19:25:50 +0000
commitdcf93fb34d4ce9325841c9302bc217b02f49501a (patch)
tree92de29cec5692ed96496605885d1e5a7d948bba0 /org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DocCommentParser.java
parent5f25db2c9c02bf799108bff292447ab679c3c3b7 (diff)
downloadeclipse.jdt.core-dcf93fb34d4ce9325841c9302bc217b02f49501a.tar.gz
eclipse.jdt.core-dcf93fb34d4ce9325841c9302bc217b02f49501a.tar.xz
eclipse.jdt.core-dcf93fb34d4ce9325841c9302bc217b02f49501a.zip
HEAD - Fix for 78934
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.java6
1 files changed, 5 insertions, 1 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 fba9d08ad2..5e17c39d32 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
@@ -308,16 +308,20 @@ class DocCommentParser extends AbstractCommentParser {
// Update references of each simple name
if (size > 1) {
Name name = (Name)typeRef;
- for (int i=this.identifierPtr; i>pos; i--) {
+ int nameIndex = size;
+ for (int i=this.identifierPtr; i>pos; i--, nameIndex--) {
int s = (int) (this.identifierPositionStack[i] >>> 32);
int e = (int) this.identifierPositionStack[i];
+ name.index = nameIndex;
SimpleName simpleName = ((QualifiedName)name).getName();
+ simpleName.index = nameIndex;
simpleName.setSourceRange(s, e-s+1);
name.setSourceRange(start, e-start+1);
name = ((QualifiedName)name).getQualifier();
}
int end = (int) this.identifierPositionStack[pos];
name.setSourceRange(start, end-start+1);
+ name.index = nameIndex;
} else {
int end = (int) this.identifierPositionStack[pos];
typeRef.setSourceRange(start, end-start+1);

Back to the top