New J2K: do not print qualified names if corresponding qualifier can unambiguously resolved

This speeds up shortening qualified references phase
This commit is contained in:
Ilya Kirillov
2019-09-27 19:18:36 +03:00
parent 678cc35008
commit 043a669812
20 changed files with 148 additions and 56 deletions
+1 -2
View File
@@ -18,8 +18,7 @@ class A {
}
}
}
assert(element is PsiMethod
) { "Method accepts only kotlin functions/properties and java methods, but '" + element.getText().toString() + "' was found" }
assert(element is PsiMethod) { "Method accepts only kotlin functions/properties and java methods, but '" + element.getText().toString() + "' was found" }
return JetRefactoringUtil.formatPsiMethod(element as PsiMethod, true, false)
}