[mod-commands] Basic support for templates and member chooser

GitOrigin-RevId: e7df218ea71800e71409de20474f43eb758e41de
This commit is contained in:
Tagir Valeev
2023-07-12 18:14:37 +02:00
committed by intellij-monorepo-bot
parent 95f104864a
commit 4c7609bdd7
38 changed files with 660 additions and 482 deletions

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
void foo() {
foo(<selection>0<caret></selection>);
}
foo(<selection>0<caret></selection>);
}
void foo(int ii){
}

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
abstract class Test {
int foo(boolean... args) {
return foo(<selection>0<caret></selection>, args);
}
return foo(<selection>0<caret></selection>, args);
}
abstract int foo(int ii, boolean... args);
}

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
int foo() {
return foo(0);
}
return foo(0);
}
int foo(int ii){
//comment1

View File

@@ -1,8 +1,8 @@
// "Generate overloaded constructor with default parameter values" "true"
class Test {
Test() {
this(<selection>0<caret></selection>);
}
this(<selection>0<caret></selection>);
}
Test(int ii){}
}

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
interface Test {
default void foo() {
foo(0);
}
foo(0);
}
void foo(int ii);
}

View File

@@ -3,9 +3,9 @@ class Test {
/**
*
*/
void foo() {
foo(0);
}
void foo() {
foo(0);
}
/**
* @param i

View File

@@ -1,8 +1,8 @@
// "Generate overloaded constructor with default parameter values" "true"
record Test(int x) {
Test() {
this(0);
}
this(0);
}
public Test {

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
int foo() {
return foo(<selection>0<caret></selection>);
}
return foo(<selection>0<caret></selection>);
}
int foo(int ii){
return 1;

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
interface Test {
static void foo() {
foo(0);
}
foo(0);
}
static void foo(int ii) {}
}

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
<T> int foo(boolean... args) {
return foo(<selection>null<caret></selection>, args);
}
return foo(<selection>null<caret></selection>, args);
}
<T> int foo(T ii, boolean... args){
return 1;

View File

@@ -1,8 +1,8 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
int foo(boolean... args) {
return foo(<selection>0<caret></selection>, args);
}
return foo(<selection>0<caret></selection>, args);
}
int foo(int ii, boolean... args){
return 1;