X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java index 1dbc794..aced1b6 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java @@ -51,7 +51,7 @@ public class StringLiteral extends Literal { * Return the expression as String. * @return the expression */ - public String toStringExpression() { + /* public String toStringExpression() { // handle some special char..... StringBuffer result = new StringBuffer("\""); //$NON-NLS-1$ for (int i = 0; i < source.length; i++) { @@ -86,6 +86,14 @@ public class StringLiteral extends Literal { } result.append("\""); //$NON-NLS-1$ return result.toString(); + } */ + + /** + * Return the expression as String. + * @return the expression + */ + public String toStringExpression() { + return new String(source); } /**