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
Yunir Salimzyanov
42da9e62db
Cleanup 192 patchset files (KTI-315)
2020-08-19 19:40:02 +03:00
Vladimir Dolzhenko
d0366d3bcb
Failed test clean up
...
Relates to ^KT-40960
2020-08-19 15:06:53 +02: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
Pavel Kirpichenkov
79d7babb57
Add test checking file annotations resolution
...
#KT-37219 Fixed
2020-07-14 17:07:42 +03:00
Ilya Kirillov
2693664aa7
FIR IDE: unmute tests after introducing fake element kinds
2020-06-30 11:55:59 +03:00
Pavel Kirpichenkov
83144d59be
Fix tests
2020-06-10 10:58:42 +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
Nikolay Krasko
f01b4706d1
Switch to 193 platform
2020-01-19 12:01:53 +03:00
Alexander Udalov
9187a85aaf
Rename UseExperimental->OptIn, Experimental->RequiresOptIn in quickfix and IDE tests
2020-01-14 21:04:43 +01: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
Nikolay Krasko
b3e733ea4f
193: More mutes in 193 (SurroundWithTestGenerated, KT-34689, KT-34542, KT-34672)
2019-10-31 11:11:50 +03:00
Vladimir Dolzhenko
55548d9199
Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 3
2019-10-09 07:34:25 +02:00
Nikolay Krasko
751a18e64b
Minor: update test data PartialBodyResolveTestGenerated
2019-09-30 13:38:26 +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
Alexander Udalov
f2bf81e799
Fix UOE when using Java annotation with infinity/NaN as default value
...
The root problem is the fact that ConstantExpressionEvaluator returns
null for values such as infinity and NaN loaded from cls psi (see
IDEA-207252). This commit simply reverts a part of 8ab9226805 where we
started to compute default values more often than needed. In
LazyJavaClassMemberScope, we only need to check whether or not there
_is_ a default value, not compute its value.
#KT-29792 Fixed
2019-02-15 19:13:53 +01:00
Dmitry Savvinov
7887bafc5b
Minor: update testdata in completion test on contracts
2018-10-18 12:09:10 +03:00
Dmitry Savvinov
f90b29c2e3
Support contracts in PartialBodyResolveFilter
...
Previously, PartialBodyResolveFilter didn't know about contracts and was
filtering out calls of such functions, leading to unstable completion in
cases like that:
fun test(x: Any?) {
require(x is String)
x.<caret>
}
However, PartialBodyResolveFilter works by pure PSI, while to determine
if function has a contract we have to resolve it.
To solve it, we do something very similar to what has been done with
Nothin-returning functions: introduce
KotlinProbablyContractedFunctionShortNameIndex, which collects all
function which *may* have a contract during indexing.
^KT-25275 Fixed
2018-07-27 16:59:24 +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
Mikhail Glukhikh
5c4c77a80a
Determine enclosing element correctly inside base constructor
...
So #KT-17680 Fixed
So #KT-18740 Fixed
So EA-76201 Fixed
2017-10-03 11:05:21 +03:00