Denis.Zharkov
d932d5b0a5
FIR: Support adding expect type to calls in foo() as R position
...
See https://kotlinlang.org/docs/whatsnew12.html#support-for-foo-as-a-shorthand-for-this-foo
2021-06-07 15:25:51 +03:00
Denis.Zharkov
0aca3a3737
FIR: Adjust test data after introduction of INFERENCE_NO_INFORMATION_FOR_PARAMETER
...
See previous commits for details
2021-06-07 15:25:47 +03:00
Denis.Zharkov
c420957eac
FIR: Report INFERENCE_NO_INFORMATION_FOR_PARAMETER diagnostic
2021-06-07 15:25:45 +03:00
Anton Yalyshev
9b8ae8ce4f
1.5.20-RC Change-notes correction.
2021-06-07 13:51:46 +03:00
Anton Yalyshev
503700d60b
Add change notes for 1.5.20-RC
2021-06-07 13:51:44 +03:00
Nikolay Krasko
2801704ad3
Temporary remove DiagnosisCompilerTestDataSpecTestGenerated.java tests
...
Buildserver fails because of too long path names
2021-06-04 18:25:45 +03:00
Ilya Kirillov
d474ff2b03
FIR IDE: generate tests based on compiler spec tests for ide
2021-06-04 13:16:18 +02:00
Ilya Kirillov
335a2d7b71
FIR IDE: add tests based on compiler spec tests for ide
2021-06-04 13:16:17 +02:00
Ivan Kochurkin
c4c2fbb5a0
[FIR] Implement RECURSIVE_TYPEALIAS_EXPANSION, CYCLIC_INHERITANCE_HIERARCHY diagnostics, fix stackoverlow exception in case if typealias points to type with type arguments
2021-06-03 20:41:58 +03:00
Mark Punzalan
d1531f9cdd
FIR: Choose a resolved candidate for augmented assignment when both
...
assign and operator candidates are unsuccessful.
2021-06-03 20:18:04 +03:00
Mark Punzalan
32bb64a225
FIR: Report UNSAFE_OPERATOR_CALL for augmented assignments (was
...
reporting UNSAFE_CALL).
2021-06-03 20:18:03 +03:00
Mark Punzalan
ef923d4cfe
FIR IDE: Enable ReplaceInfixOrOperatorCallFix for
...
UNSAFE_IMPLICIT_INVOKE_CALL.
2021-06-03 20:18:02 +03:00
Mark Punzalan
6de1000818
FIR: Report UNSAFE_INFIX_CALL for all infix-style calls, even if the
...
candidate is not an infix function.
This mirrors FE 1.0 (see
`AbstractTracingStrategy.reportUnsafeCallOnBinaryExpression()`) and
allows consistent handling for quickfixes on infix calls.
2021-06-03 20:18:01 +03:00
Mark Punzalan
ca7649edbb
FIR IDE: Enable ReplaceInfixOrOperatorCallFix for UNSAFE_CALL,
...
UNSAFE_INFIX_CALL, UNSAFE_OPERATOR_CALL.
2021-06-03 20:17:59 +03:00
Mark Punzalan
5a7f4ffc99
FIR IDE: Enable tests for ReplaceInfixOrOperatorCallFix.
2021-06-03 20:17:58 +03:00
Mark Punzalan
afeeec3091
IDE: Move ReplaceInfixOrOperatorCallFix to idea-frontend-independent.
2021-06-03 20:17:57 +03:00
Mark Punzalan
5a6d543fba
IDE: Don't do any resolution in ReplaceInfixOrOperatorCallFix.invoke().
2021-06-03 20:17:56 +03:00
Mark Punzalan
06adb405e1
IDE: Remove duplicate quickfix message in resources.
2021-06-03 20:17:54 +03:00
Ilya Kirillov
e5f6e4e1e8
FIR IDE: do not fail on FirDeclarationOrigin.ImportedFromObject for symbol
2021-06-03 19:39:16 +03:00
Ilya Kirillov
ae7a6dc742
FIR IDE: remove error handling from function completion
2021-06-03 19:39:13 +03:00
Ilya Kirillov
a1fcc34bbc
FIR IDE: choose better name for completion helpers
2021-06-03 19:39:12 +03:00
Ilya Kirillov
2e57361457
FIR IDE: add type arguments and -> symbol to when conditions completion
2021-06-03 19:39:11 +03:00
Ilya Kirillov
fa2f2c34cb
FIR IDE: fix flaky completion test
2021-06-03 19:39:09 +03:00
Ilya Kirillov
108176d0b6
FIR IDE: enable passing completion tests
2021-06-03 19:39:08 +03:00
Ilya Kirillov
88129c3354
FIR IDE: implement completion inside string templates
2021-06-03 19:39:07 +03:00
Ilya Kirillov
59b22fadad
FIR IDE: add tests for completion where clause
2021-06-03 19:39:06 +03:00
Ilya Kirillov
edbfff71e9
FIR IDE: fix shortenings for enums
2021-06-03 19:39:05 +03:00
Ilya Kirillov
0da488058d
FIR IDE: add tests for completion in sealed when
2021-06-03 19:39:03 +03:00
Ilya Kirillov
9af0885e82
FIR IDE: implement completion in sealed when
2021-06-03 19:39:02 +03:00
Ilya Kirillov
4bdf46e0a4
FIR IDE: fix icon for enum entry
2021-06-03 19:39:01 +03:00
Ilya Kirillov
1e1ce3067f
FIR IDE: implement basic classifier name contributor
2021-06-03 19:39:00 +03:00
Ilya Kirillov
58d5907041
FIR IDE: do not complete after where constraint type param with qualifier
2021-06-03 19:38:59 +03:00
Ilya Kirillov
ff369b1917
IDE/FIR IDE: fix not showed following type parameters in completion
2021-06-03 19:38:57 +03:00
Ilya Kirillov
0f13359229
FIR IDE: implement completion in where clause
2021-06-03 19:38:56 +03:00
Ilya Kirillov
5b5bbdd113
FIR IDE: add receiver parameter for callable lookup elements in completion
2021-06-03 19:38:55 +03:00
Ilya Kirillov
aef071691f
FIR IDE: refactor: separate lookup element factories into different files
2021-06-03 19:38:54 +03:00
Ilya Kirillov
62e4b53d03
FIR IDE: fix not added import for functions
2021-06-03 19:38:52 +03:00
Ilya Kirillov
0534d3fb98
fix after rebase
2021-06-03 19:38:51 +03:00
Ilya Kirillov
a926a1f534
FIR IDE: handle . after package name in completion tests
2021-06-03 19:38:50 +03:00
Ilya Kirillov
4785f36d8d
FIR IDE: implement completion for packages
2021-06-03 19:38:49 +03:00
Ilya Kirillov
943ae108f5
FIR IDE: introduce import statement completion
2021-06-03 19:38:48 +03:00
Ilya Kirillov
b81ef157b2
FIR IDE: fix reference resolve in import statement
2021-06-03 19:38:45 +03:00
Ilya Kirillov
55621b7aad
FIR IDE: do not complete callables for classifier without companion
2021-06-03 19:38:44 +03:00
Ilya Kirillov
365bc5712b
FIR IDE: do not add internal packages to completion
2021-06-03 19:38:42 +03:00
Ilya Kirillov
48b69b4f3f
FIR IDE: add test for super keyword completion with qualifier
2021-06-03 19:38:41 +03:00
Ilya Kirillov
0a6243fc67
FIR IDE: implement super qualifier completion
2021-06-03 19:38:40 +03:00
Ilya Kirillov
7d351ca6b1
FIR IDE: add possibility to have different testdata for fir & fe10 keyword tests
2021-06-03 19:38:39 +03:00
Ilya Kirillov
c81a9c9d18
FIR IDE: mute test which fails as we have no decalration name completion
2021-06-03 19:38:37 +03:00
Ilya Kirillov
0739f6974f
FIR IDE: fix completion of type arguments without closing >
2021-06-03 19:38:36 +03:00
Ilya Kirillov
d510f0809a
FIR IDE: do not break formatting of reference shortenner
2021-06-03 19:38:35 +03:00