KT-31762: Fix completion in enum entries constructors

- The issue was caused by incorrect parsing of enum entry because of `$` in the `KotlinCompletionContributor::DEFAULT_DUMMY_IDENTIFIER`
  - Incorrect parsing caused arguments next to completed one to be recognized as another enum entries
- Change `KotlinCompletionContributor::isInClassHeader` to accept classes without bodies, so identifier without `$` is used inside enum entries constructors
- ^KT-31762 Fixed
This commit is contained in:
Roman Golyshev
2019-10-14 16:33:52 +03:00
committed by Roman Golyshev
parent 042100ea77
commit 3661dedacf
4 changed files with 18 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
enum class A { AAA }
enum class E(val one: A, val two: A) {
EE(A.<caret>, A.AAA)
}
// EXIST: AAA