Optimization of Basic Code Completion

Now we don't perform code formatting on temporary psi used
  in ShadowedDeclarationFilter
  #KT-16856
This commit is contained in:
Simon Ogorodnik
2017-03-03 19:48:46 +03:00
parent bbab0f11ca
commit 4906ddfc29
2 changed files with 34 additions and 32 deletions
@@ -169,7 +169,7 @@ class ShadowedDeclarationsFilter(
val newCall = object : Call {
//TODO: compiler crash (KT-8011)
//val arguments = parameters.indices.map { DummyArgument(it) }
val callee = psiFactory.createExpressionByPattern("$0", name)
val callee = psiFactory.createExpressionByPattern("$0", name, reformat = false)
override fun getCalleeExpression() = callee