|
Lines 56-61
Link Here
|
| 56 |
import org.eclipse.wst.jsdt.internal.compiler.ast.ProgramElement; |
56 |
import org.eclipse.wst.jsdt.internal.compiler.ast.ProgramElement; |
| 57 |
import org.eclipse.wst.jsdt.internal.compiler.ast.SingleNameReference; |
57 |
import org.eclipse.wst.jsdt.internal.compiler.ast.SingleNameReference; |
| 58 |
import org.eclipse.wst.jsdt.internal.compiler.ast.UnaryExpression; |
58 |
import org.eclipse.wst.jsdt.internal.compiler.ast.UnaryExpression; |
|
|
59 |
import org.eclipse.wst.jsdt.internal.compiler.lookup.TypeConstants; |
| 59 |
import org.eclipse.wst.jsdt.internal.compiler.util.HashtableOfObject; |
60 |
import org.eclipse.wst.jsdt.internal.compiler.util.HashtableOfObject; |
| 60 |
import org.eclipse.wst.jsdt.internal.compiler.util.Util; |
61 |
import org.eclipse.wst.jsdt.internal.compiler.util.Util; |
| 61 |
|
62 |
|
|
Lines 1340-1346
Link Here
|
| 1340 |
{ |
1341 |
{ |
| 1341 |
char []name={}; |
1342 |
char []name={}; |
| 1342 |
for (int j = 0; j < param.types.length; j++) { |
1343 |
for (int j = 0; j < param.types.length; j++) { |
| 1343 |
char []typeName=param.types[j].getSimpleTypeName(); |
1344 |
//char []typeName=param.types[j].getSimpleTypeName(); |
|
|
1345 |
//make sure we are using the type version of Boolean, even if the user entered boolean as the JSdoc type. |
| 1346 |
char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName()); |
| 1344 |
if (j==0) |
1347 |
if (j==0) |
| 1345 |
name=typeName; |
1348 |
name=typeName; |
| 1346 |
else |
1349 |
else |
|
Lines 1855-1859
Link Here
|
| 1855 |
{ |
1858 |
{ |
| 1856 |
return compUnit.findInferredType(className); |
1859 |
return compUnit.findInferredType(className); |
| 1857 |
} |
1860 |
} |
|
|
1861 |
|
| 1862 |
protected char[] changePrimitiveToObject(char[] name) { |
| 1863 |
//Changes the first character of the name of the primitive types to uppercase. This will allow future reference to the object wrapper instead of the primitive type. |
| 1864 |
if(CharOperation.equals(name, TypeConstants.BOOLEAN, false)) //$NON-NLS-1$ |
| 1865 |
return BooleanType.getName(); |
| 1866 |
return name; |
| 1867 |
} |
| 1858 |
|
1868 |
|
| 1859 |
} |
1869 |
} |