summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJorge Padilla2013-08-14 18:05:34 (EDT)
committer Chris2013-08-21 14:57:49 (EDT)
commit670434e406e22c8603df251a6fa1a42203de76a5 (patch)
treef8a86a84dcebc3079b03442079373813d146413b
parentafdfdbc27b11ec4049b7bc80ddb4378e792db516 (diff)
downloadwebtools.jsdt.core-670434e406e22c8603df251a6fa1a42203de76a5.zip
webtools.jsdt.core-670434e406e22c8603df251a6fa1a42203de76a5.tar.gz
webtools.jsdt.core-670434e406e22c8603df251a6fa1a42203de76a5.tar.bz2
Bugzilla 415108. @deprecated tag in JsDoc crosses out the entire comment
-rw-r--r--bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java
index 4174e25..f9d250c 100644
--- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java
+++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/dom/ASTConverter.java
@@ -340,6 +340,7 @@ class ASTConverter {
public ASTNode convert(org.eclipse.wst.jsdt.internal.compiler.ast.AbstractMethodDeclaration methodDeclaration) {
checkCanceled();
+ trimWhiteSpacesAndComments(methodDeclaration);
FunctionDeclaration methodDecl = new FunctionDeclaration(this.ast);
setModifiers(methodDecl, methodDeclaration);
boolean isConstructor = methodDeclaration.isConstructor();
@@ -3279,14 +3280,14 @@ class ASTConverter {
}
/**
- * Remove whitespaces and comments before and after the expression.
+ * Remove white spaces and comments before and after the expression.
*/
- private void trimWhiteSpacesAndComments(org.eclipse.wst.jsdt.internal.compiler.ast.Expression expression) {
- int start = expression.sourceStart;
- int end = expression.sourceEnd;
+ private void trimWhiteSpacesAndComments(org.eclipse.wst.jsdt.internal.compiler.ast.Statement statement) {
+ int start = statement.sourceStart;
+ int end = statement.sourceEnd;
int token;
- int trimLeftPosition = expression.sourceStart;
- int trimRightPosition = expression.sourceEnd;
+ int trimLeftPosition = statement.sourceStart;
+ int trimRightPosition = statement.sourceEnd;
boolean first = true;
Scanner removeBlankScanner = this.ast.scanner;
try {
@@ -3308,8 +3309,8 @@ class ASTConverter {
}
break;
case TerminalTokens.TokenNameEOF :
- expression.sourceStart = trimLeftPosition;
- expression.sourceEnd = trimRightPosition;
+ statement.sourceStart = trimLeftPosition;
+ statement.sourceEnd = trimRightPosition;
return;
default :
/*