Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 38-43
Link Here
|
38 |
public Javadoc(int sourceStart, int sourceEnd) { |
38 |
public Javadoc(int sourceStart, int sourceEnd) { |
39 |
this.sourceStart = sourceStart; |
39 |
this.sourceStart = sourceStart; |
40 |
this.sourceEnd = sourceEnd; |
40 |
this.sourceEnd = sourceEnd; |
|
|
41 |
this.bits |= ASTNode.ResolveJavadoc; |
41 |
} |
42 |
} |
42 |
/** |
43 |
/** |
43 |
* Returns whether a type can be seen at a given visibility level or not. |
44 |
* Returns whether a type can be seen at a given visibility level or not. |
Lines 184-189
Link Here
|
184 |
* Resolve type javadoc |
185 |
* Resolve type javadoc |
185 |
*/ |
186 |
*/ |
186 |
public void resolve(ClassScope scope) { |
187 |
public void resolve(ClassScope scope) { |
|
|
188 |
if ((this.bits & ASTNode.ResolveJavadoc) == 0) { |
189 |
return; |
190 |
} |
187 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=247037, @inheritDoc tag cannot |
191 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=247037, @inheritDoc tag cannot |
188 |
// be used in the documentation comment for a class or interface. |
192 |
// be used in the documentation comment for a class or interface. |
189 |
if (this.inheritedPositions != null) { |
193 |
if (this.inheritedPositions != null) { |
Lines 244-249
Link Here
|
244 |
* Resolve compilation unit javadoc |
248 |
* Resolve compilation unit javadoc |
245 |
*/ |
249 |
*/ |
246 |
public void resolve(CompilationUnitScope unitScope) { |
250 |
public void resolve(CompilationUnitScope unitScope) { |
|
|
251 |
if ((this.bits & ASTNode.ResolveJavadoc) == 0) { |
252 |
return; |
253 |
} |
247 |
// Do nothing - This is to mimic the SDK's javadoc tool behavior, which neither |
254 |
// Do nothing - This is to mimic the SDK's javadoc tool behavior, which neither |
248 |
// sanity checks nor generates documentation using comments at the CU scope |
255 |
// sanity checks nor generates documentation using comments at the CU scope |
249 |
// (unless the unit happens to be package-info.java - in which case we don't come here.) |
256 |
// (unless the unit happens to be package-info.java - in which case we don't come here.) |
Lines 253-259
Link Here
|
253 |
* Resolve method javadoc |
260 |
* Resolve method javadoc |
254 |
*/ |
261 |
*/ |
255 |
public void resolve(MethodScope methScope) { |
262 |
public void resolve(MethodScope methScope) { |
256 |
|
263 |
if ((this.bits & ASTNode.ResolveJavadoc) == 0) { |
|
|
264 |
return; |
265 |
} |
257 |
// get method declaration |
266 |
// get method declaration |
258 |
AbstractMethodDeclaration methDecl = methScope.referenceMethod(); |
267 |
AbstractMethodDeclaration methDecl = methScope.referenceMethod(); |
259 |
boolean overriding = methDecl == null /* field declaration */ || methDecl.binding == null /* compiler error */ |
268 |
boolean overriding = methDecl == null /* field declaration */ || methDecl.binding == null /* compiler error */ |