Java slicing: support -> this/-> paramN contracts

Fixes IDEA-121571 Feature request: A Contract Annotation that indicates that a method returns its argument
This commit is contained in:
Tagir Valeev
2018-05-08 11:53:19 +07:00
parent 50268274cd
commit a93cb6b9a5
12 changed files with 139 additions and 62 deletions
@@ -0,0 +1,6 @@
class Test {
StringBuilder <flown111111>builder(StringBuilder <caret>sb) {
StringBuilder <flown1111>foo = <flown111><flown11><flown1>sb.append("foo").append(1);
return <flown11111>foo;
}
}