IDEA-130928 "Quick Documentation" eliminates comma for field

This commit is contained in:
Anna Kozlova
2014-10-07 18:25:04 +02:00
parent bcdb87573e
commit d78b3d6a7b
4 changed files with 13 additions and 1 deletions
@@ -2054,7 +2054,7 @@ public class JavaDocInfoGenerator {
@Override
public void visitMethodCallExpression(PsiMethodCallExpression expression) {
myBuffer.append(expression.getMethodExpression().getText()).append("(");
expression.getArgumentList().acceptChildren(this);
expression.getArgumentList().accept(this);
myBuffer.append(")");
}
@@ -0,0 +1 @@
<html><head> <style type="text/css"> #error { background-color: #eeeeee; margin-bottom: 10px; } p { margin: 5px 0; } </style></head><body><small><b><a href="psi_element://Test"><code>Test</code></a></b></small><PRE>public <a href="psi_element://java.lang.String"><code>String</code></a> <b>field = foo(&quot;&quot;, &quot;&quot;)</b></PRE></body></html>
@@ -0,0 +1,7 @@
class Test {
public String field = foo("", "");
String foo(String s, String s1) {
return s;
}
}
@@ -96,6 +96,10 @@ public class JavaDocInfoGeneratorTest extends CodeInsightTestCase {
doTestField();
}
public void testCommaInsideArgsList() throws Exception {
doTestField();
}
public void testEnumConstantOrdinal() throws Exception {
PsiClass psiClass = getTestClass();
PsiField field = psiClass.getFields() [0];