Support several postfix live templates on the same key

Need it for GO-4845 where same postfix sort template is expanded
differently depending on the type of the element it is invoked on.
This commit is contained in:
Dmitry Neverov
2018-05-08 06:01:53 +02:00
parent c5cb87e3f5
commit 50268274cd
6 changed files with 83 additions and 5 deletions
@@ -0,0 +1,5 @@
public class Foo {
void m(boolean x) {
x.sameKey<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(boolean x) {
Boolean.toString(x);
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(int x) {
x.sameKey<caret>
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(int x) {
Integer.toString(x);
}
}