Tianyu Geng
17617ffd3f
IDE FIR: fix resolving vararg parameter type
...
For a vararg parameter type, there corresponding FIR element has a fake
source of kind ArrayTypeFromVarargParameter. As a result,
`getOrBuildFir` returns the whole `FirValueParameter` for the parameter
type reference. Therefore, we need some special handling for this case
in order to resolve the proper `KtSymbol`.
2021-03-02 12:46:55 +01:00
Roman Golyshev
6ebd4b954c
Add new reference resolve tests
...
The main purpose is to show that old frontend and FIR work differently
in the case of the conflicts of local and top level classes/objects
See the tests that marked with // IGNORE_FIR
Corresponding ticket is ^KT-45192
2021-03-01 10:23:57 +00:00
Roman Golyshev
108395fcfe
FIR: Fix bug with incorrect source element for qualifiers
2021-02-12 10:53:04 +00:00
Igor Yakovlev
04017b00a1
[FIR IDE] Fix TypeRef resolve to error type caused by invalid number of arguments
2021-02-08 11:57:39 +03:00
Igor Yakovlev
9f282e0ddc
[FIR] Do not erase type arguments for unresolved method calls
2021-02-01 21:21:02 +03:00
Igor Yakovlev
659d2c13b4
[FIR IDE] Fix annotation value parameter and ctor resolve
2021-02-01 21:21:01 +03:00
Igor Yakovlev
019635189a
[FIR IDE] Fix annotation call reference resolve to ctor
2021-02-01 21:21:01 +03:00
Igor Yakovlev
243f85a4d6
[FIR IDE] Add base support for FIR incomplete types resolve
2021-01-21 15:20:30 +03:00
Ilya Kirillov
2a9779cd89
FIR IDE: resolve reference to intersection override member to overridden members
2021-01-15 17:23:09 +01:00
Ilya Kirillov
e060778528
FIR IDE: implement assignment statement references
2021-01-15 17:23:07 +01:00
Ilya Kirillov
14d2b1be49
FIR IDE: resolve by-name-parameter call
2021-01-15 17:23:07 +01:00
Ilya Kirillov
c97c4fa99c
FIR IDE: fix finding fir in container which have conflicting duplicate by name
2021-01-15 17:23:03 +01:00
Ilya Kirillov
f30c6bf86a
FIR IDE: rework KtCall to work with error cals
2020-12-10 17:54:20 +01:00
Roman Golyshev
94a5379631
FIR IDE: Add tests for resolving from nested types references
...
Some of those tests are failing in the FIR IDE
2020-12-01 09:24:20 +00:00
Roman Golyshev
e6f380182a
Revert "FIR IDE: Add tests for resolving from nested types references"
...
This reverts commit e127ea3d
2020-11-30 12:37:40 +03:00
Roman Golyshev
e127ea3dad
FIR IDE: Add tests for resolving from nested types references
...
Some of those tests are failing in the FIR IDE
2020-11-30 09:26:15 +00:00
Ilya Kirillov
c4a8d1c3a1
FIR: use java functional interface as a source of sam function call
2020-11-23 15:31:31 +01:00
Ilya Kirillov
7b1eef136e
FIR IDE: introduce KtFirCollectionLiteralReference
2020-11-23 15:31:30 +01:00
Ilya Kirillov
5c798d4e13
FIR IDE: fix test data in fir-ide module
2020-10-14 22:11:10 +03:00
Ilya Kirillov
7cb3f62f51
FIR IDE: remove IGNORE_FIR from passing resolve tests
2020-09-02 11:16:16 +03:00
Ilya Kirillov
b79deafbc7
FIR IDE: fix testdata
2020-08-17 11:38:04 +03:00
Ilya Kirillov
054d196ec5
FIR IDE: temporary ignore failing tests
2020-08-09 12:05:02 +03:00
Ilya Kirillov
7d8ef5c7a2
FIR IDE: introduce KtFirConstructorDelegationReference
2020-08-09 12:03:54 +03:00
Ilya Kirillov
0870ded054
FIR IDE: introduce KtFirArrayAccessReference
2020-08-09 12:03:47 +03:00
Ilya Kirillov
22054c8507
FIR IDE: use non-fake override fir elements when finding psi for fir
2020-08-09 12:03:40 +03:00
Ilya Kirillov
ea3b2d8310
KT IDE: fix fully-qualified type resolving
2020-08-09 12:03:26 +03:00
Ilya Kirillov
4c08dfb238
Add invoke reference resolve test without errors in test data
2020-08-09 11:59:17 +03:00
Ilya Kirillov
2693664aa7
FIR IDE: unmute tests after introducing fake element kinds
2020-06-30 11:55:59 +03:00
Ilya Kirillov
19d721d262
FIR IDE: mute not passing tests
2020-06-09 16:20:02 +03:00
Ilya Kirillov
00a271dd94
FIR IDE: Remove IGNORE_FIR from passing tests
2020-06-09 16:19:48 +03:00
Mikhail Glukhikh
59dd57dcf7
Unmute working test from FirReferenceResolve group
2020-04-06 13:41:17 +03:00
Abduqodiri Qurbonzoda
c664bfc62b
Update property delegate test data
2020-03-12 16:52:36 +03:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Dmitriy Novozhilov
e696d1d06a
[FIR] Improve mapping arguments to parameters
2020-02-14 17:53:28 +03:00
Mikhail Glukhikh
f8c86d2f9f
FIR reference resolve test: mute 37/107 cases which aren't yet supported
2019-12-10 12:57:11 +03:00
Mikhail Zarechenskiy
78affdd2b4
Fix old testdata: add missing operator modifier
...
This testdata was written when there was no "operator" modifier.
After a83225218f rules for operators become stricter and now functions without operators are not considered as such
2019-09-25 01:52:55 +03:00
Dmitry Jemerov
075541da21
Show location info for members defined in object literals
...
#KT-22179 Fixed
2018-01-16 17:54:27 +01:00
Alexey Sedunov
9afd2d367b
Minor: Fix ReferenceResolveTestGenerated test data
2017-10-02 18:14:04 +03:00
Denis Zharkov
bc564af2fc
Regenerate mockJDK using openJDK 7
2017-06-24 17:26:01 +03:00
Mikhail Zarechenskiy
1e020644e1
Fix getting right bracket element for collection literal
2017-06-21 01:22:08 +03:00
Dmitry Jemerov
8f38d03b48
Indicate vararg parameters in Goto Symbol presentation
...
#KT-17899 Fixed
2017-05-18 21:02:24 +02:00
Dmitry Petrov
e2b6d2d849
Drop 'propertyDelegated' convention (without additional deprecation ceremony).
2016-12-12 23:13:58 +03:00
Dmitry Petrov
8d634f6003
KT-14274: resolve type alias constructors calls in supertypes list as type alias constructors.
...
Support @Deprecated for type aliases, including type alias constructors.
2016-10-13 17:52:21 +03:00
Valentin Kipyatkov
b332867b25
Use one KtDestructuringDeclarationReference per each entry - better highlight usages and other actions
2016-08-31 19:12:28 +03:00
Alexey Sedunov
3405051bcc
Misc: Use default presentation for KtTypeAlias
...
#KT-13611 Fixed
2016-08-31 11:28:02 +03:00
Denis Zharkov
d2bf4cbfa0
Fix reference resolution on suspension calls
2016-06-09 17:57:15 +03:00
Dmitry Petrov
3500f5a96b
Type alias: resolve type alias RHS during force-resolve.
2016-06-03 16:07:20 +03:00
Dmitry Jemerov
fd78424056
remove duplicate source root; update testdata according to the appearance of decompiler in dependencies
2016-05-17 19:53:47 +02:00
Alexey Sedunov
4a65b1c65c
Code Insight: Support file path references inside of Kotlin string literals
...
#KT-11704 Fixed
2016-05-12 13:03:02 +03:00
Valentin Kipyatkov
5aca50b4ca
Enhanced constructor descriptor should not loose its source!
...
#KT-11256 Fixed
2016-03-02 21:43:43 +03:00