mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Parameter Name Hints] show for binary and polyadic expressions
This commit is contained in:
@@ -95,7 +95,10 @@ public class JavaParameterHintManager {
|
||||
|| JavaTokenType.PLUS.equals(tokenType)) && expr.getOperand() instanceof PsiLiteralExpression;
|
||||
}
|
||||
|
||||
if (callArgument instanceof PsiThisExpression) {
|
||||
if (callArgument instanceof PsiThisExpression
|
||||
|| callArgument instanceof PsiBinaryExpression
|
||||
|| callArgument instanceof PsiPolyadicExpression)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
+15
@@ -662,5 +662,20 @@ class Key {
|
||||
onLineStartingWith("System.set").assertNoInlays()
|
||||
onLineStartingWith("new").assertNoInlays()
|
||||
}
|
||||
|
||||
fun `test poly and binary expressions`() {
|
||||
setup("""
|
||||
class Test {
|
||||
void test() {
|
||||
check(1 + 1);
|
||||
int i=1; check(1 + 1 + 1);
|
||||
}
|
||||
void check(int isShow) {}
|
||||
}
|
||||
""")
|
||||
|
||||
onLineStartingWith("check").assertInlays("isShow->1")
|
||||
onLineStartingWith("int").assertInlays("isShow->1")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user