mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-130928 "Quick Documentation" eliminates comma for field
This commit is contained in:
@@ -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("", "")</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];
|
||||
|
||||
Reference in New Issue
Block a user