Refine default postfix templates selector

There is new settings checkCanBeUsedAsValue
Also expression filtering are split into to parts:
- getNonFilteredExpressions is trivially goes until it reaches
first block body of some declarations
- all additional filtering is merged into Condition that is passed into
PostfixTemplateExpressionSelectorBase super-call

Notable changes for users:
- do not suggest try for non-top-level expressions
- do not suggest var/par/etc for loops
This commit is contained in:
Denis Zharkov
2016-09-30 11:30:48 +03:00
parent ba2d2a036e
commit 3c24996073
12 changed files with 121 additions and 39 deletions
@@ -0,0 +1,3 @@
fun foo(x: Boolean) {
foo(x.assert <caret>)
}