Commit Graph

82830 Commits

Author SHA1 Message Date
Svyatoslav Scherbina fa36ccedeb Native: improve ObjCExport thread state switching 2021-06-04 16:58:26 +00:00
Svyatoslav Scherbina 388538be60 Native: minor exception handling refactoring
Move parts of exception handling implementation from IrToBitcode
to CodeGenerator, to allow using filteringExceptionHandler in ObjCExport.
2021-06-04 16:58:25 +00: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
Nikolay Krasko 478b1f65fb Fix builds: ideaIC might be absent in the build 2021-06-04 15:15:13 +03:00
Ilya Kirillov febc4986d1 FIR IDE: mute spec testdata based test failing in FIR IDE 2021-06-04 13:16:18 +02: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
Ilya Kirillov a8a31231f7 Get rid of duplicated file names in spec tests
Otherwise, corresponding IDE tests would fail on creation duplicated
files in the same directory
2021-06-04 13:16:17 +02:00
Victor Petukhov 2d3ed4b7da Update FIR test data 2021-06-04 13:25:10 +03:00
Alexander Gorshenev f5d656ec4f [Native] Revert klib printer change 2021-06-04 02:36:54 +03: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 be99f24278 FIR IDE: fix uast import test after fixing import references 2021-06-03 19:39:15 +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 c998d0f026 FIR: make FirStaticScope to be name aware 2021-06-03 19:38:47 +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