[LL] find fir by psi: allow fallthrough to traverse tree for invalid code

In case of broken code e.g., duplicated classes provider would return first class,
though we definitely need some code insight in this case
at least to add navigation fixes, etc.
Similar to this, a file copy is created during completion,
where additional elements might appear and we need to search for them.

Added test cases for duplicated classes.
This commit is contained in:
Anna Kozlova
2023-06-14 11:11:13 +02:00
committed by Space Team
parent 70b9af0566
commit dd059a1e63
17 changed files with 347 additions and 30 deletions
@@ -0,0 +1,6 @@
class SomeClass {
val prop = "abc"
}
class SomeClass {
<expr>fun foo() {}</expr>
}