Commit Graph

62427 Commits

Author SHA1 Message Date
Mikhail Glukhikh 9e69ffad36 FIR2IR (refactoring): introduce ConversionTypeContext 2020-02-28 15:29:03 +03:00
Mikhail Glukhikh 883dd95e3c FIR: fix class / constructor type parameter duplication 2020-02-28 15:29:02 +03:00
Mikhail Glukhikh 2308e5bb7c FIR2IR: in case of use-site generic type use call from original class 2020-02-28 15:29:02 +03:00
Mikhail Glukhikh 096dc25701 FIR: change callableId of fake overrides to derived class owner 2020-02-28 15:29:02 +03:00
Mikhail Glukhikh db7401d8eb FIR2IR: set GET_PROPERTY origin for property reads 2020-02-28 15:29:01 +03:00
Mikhail Glukhikh e066afc67f FIR2IR: set parents for external enum entries 2020-02-28 15:29:01 +03:00
Mikhail Glukhikh 5b3b35cd78 FIR2IR: set "external stub" origin for external enum entries 2020-02-28 15:29:01 +03:00
Mikhail Glukhikh 3a3d6e740c FIR2IR: correctly set type parameters of property accessors
In particular, we generate different type parameters for
getters & setters here.
2020-02-28 15:29:01 +03:00
Mikhail Glukhikh 50abb07245 [FIR] Record & use type arguments of FirQualifiedAccessExpression 2020-02-28 15:29:00 +03:00
Ilya Matveev f53b059410 [Gradle, tests] Fix native compiler arguments test for Windows 2020-02-28 17:50:55 +07:00
Toshiaki Kameyama 0b9106b0f8 CanBePrimaryConstructorPropertyInspection: do not report for 'open' property used in class initializer in 'open' class 2020-02-28 17:21:56 +07:00
Georgy Bronnikov 963258189a JVM_IR: change parameter type computation in InlineCallableReferenceToLambda
The reference type is approximated in Psi2Ir, so we may get Nothing as
a reference type argument. Better look at the arguments of the
referenced function.
2020-02-28 12:59:21 +03:00
pyos 456139fc5e JVM_IR: cache signatures in BridgeLowering
`mapAsmMethod` is somewhat slow, so this helps if there are a lot of
overrides of same methods and/or deep class hierarchies in a single file
(though it would probably help more if lowerings were not reconstructed
for every file).
2020-02-28 12:32:26 +03:00
Ilya Kirillov 97e320b57f Don't show IR_COMPILED_CLASS error in IJ when it arises in module with backend IR enabled
The problem here is that library resolver uses global project compiler
settings instead of the module ones. That behaviour is caused by more
global problem described in #KT-21246

As a temporary solution we just do not show IR_COMPILED_CLASS error in
IDE if it arises in a module which have -XuseIR or
-Xallow-jvm-ir-dependencies option provided

#KT-36907 fixed
2020-02-28 11:45:51 +03:00
Nikolay Krasko 7a4d414c59 201: Mute SuggestedRefactoring tests 2020-02-28 11:36:42 +03:00
Nikolay Krasko 6a9dfd4935 201: Mute HierarchicalMultiplatformProjectImportingTest: No module dependency found 2020-02-28 11:36:41 +03:00
Nikolay Krasko 774db02b23 201: Mute quick fix tests: Range must be inside element being annotated 2020-02-28 11:36:41 +03:00
Nikolay Krasko 06adac1abf 201: Mute TodoSearchTest: duplicate TODO items 2020-02-28 11:36:41 +03:00
Nikolay Krasko 543168c61d 201: Mute incremental compilation tests with constants 2020-02-28 11:36:40 +03:00
Nikolay Krasko 8501ea78c8 201: Mute a lot of tests with enums 2020-02-28 11:36:40 +03:00
Nikolay Krasko 79e663828a 201: Mute QuickFixTestGenerate: Range must be inside element being annotated 2020-02-28 11:36:39 +03:00
Nikolay Krasko f5a97ea56e 201: Mute GradleScriptInputsWatcherTest failures 2020-02-28 11:36:39 +03:00
Nikolay Krasko dad7fd383c 201: Upgrade nodejs plugin in 201 branch 2020-02-28 11:36:39 +03:00
Nikolay Krasko f0a4f838f2 201: Mute NewMultiplatformProjectImportingTest tests
No module dependency found
No source folder found
2020-02-28 11:36:38 +03:00
Nikolay Krasko f4cd25ce72 201: Mute MultiplatformProjectImportingTest tests
Failed search dependency in Gradle tests.
2020-02-28 11:36:38 +03:00
Nikolay Krasko 67dee52b8a 201: Mute NewJavaToKotlinConverterSingleFileTestGenerated tests 2020-02-28 11:36:38 +03:00
Nikolay Krasko 958b8a0b10 201: Fix maven plugin loading by adding repository-search to runtime 2020-02-28 11:36:37 +03:00
Nikolay Krasko 0fcd011abb 201: Fix loading project in configuration tests
De-bunch AbstractConfigureKotlinTest.kt, just don't use field in 193.
2020-02-28 11:36:37 +03:00
Nikolay Krasko 1a01ba0ae5 201: Trick idea home path exception with custom idea.home variable 2020-02-28 11:36:36 +03:00
Nikolay Krasko da2683d180 Copy 192 muted tests 2020-02-28 11:36:36 +03:00
Nikolay Krasko dd21736471 Register JDK for default project to prevent create leaking one for Gradle import 2020-02-28 11:36:36 +03:00
Nikolay Krasko c9fd79c311 Enable mute in code for all KotlinLightCodeInsightFixtureTestCaseBase 2020-02-28 11:36:35 +03:00
Nikolay Krasko 1c0a9d2981 Minor: better asserts in TodoSearchTest.kt 2020-02-28 11:36:35 +03:00
Nikolay Krasko 26df2a5c68 Enable mute test with database in BaseKotlinJpsBuildTestCase 2020-02-28 11:36:34 +03:00
Nikolay Krasko 31ba40cc99 Ignore auto-mute files 2020-02-28 11:36:34 +03:00
Nikolay Krasko c22272bbca Enable mute for KotlinCompletionTestCase 2020-02-28 11:36:34 +03:00
Nikolay Krasko 66e2f95dba Update method after UsefulTestCase update to make in work in 201 2020-02-28 11:36:33 +03:00
Nikolay Krasko 3c3b1bb5e4 Support auto-mute in parametrized JUnit 4 tests 2020-02-28 11:36:33 +03:00
Nikolay Krasko f042b04320 Minor: remove unneeded class 2020-02-28 11:36:32 +03:00
Mikhail Zarechenskiy 14f7529c1b [NI] Reanalyze coroutine-block if there is inapplicable call
It's not clear how one should rollback _all_ resolution results if
 there is inapplicable call. Ideally, such calls should not be available
 in coroutine block but for now, to have backward compatibility, we'll
 just reanalyze coroutine block as a usual lambda if there is at least
 one such call.

 As a result, also remove diagnostic about non-applicable call as it
 become useless with current reanalysis

 #KT-37061 Fixed
 #KT-32097 Fixed
 #KT-32203 Fixed
 #KT-35306 Fixed
 #KT-36202 Fixed
 #KT-36220 Fixed
 #KT-32654 Fixed
2020-02-28 10:25:22 +03:00
Vladimir Dolzhenko aab8555d65 Move adjustExtractionData.performAnalysis under modal progress
Relates to #143709
2020-02-28 08:02:45 +01:00
Vladimir Dolzhenko ec431460b3 Do not lookup for kotlin tests in non kotlin files
Fixed #EA-220086
2020-02-28 08:02:45 +01:00
Vladimir Dolzhenko 2a27ca828c Commit document before actual imports optimization
Fixed #EA-209827
2020-02-28 08:02:44 +01:00
Vladimir Dolzhenko acc4118903 Provide import alias suggestion for Companion
Fixed #EA-223797
2020-02-28 08:02:44 +01:00
Vladimir Dolzhenko 3ec2095c9f Don't log ControlFlowException
Fixed #EA-223788
2020-02-28 08:02:44 +01:00
Steven Schäfer 3881220386 JVM IR: Box arguments in abstract method stubs for "remove" bridges 2020-02-28 09:20:29 +03:00
kovalp 86f9cb6eef Adds AdditionalExtractableAnalyser EP.
Adds annotations to ExtractableCodeDescriptor.
Adds functionality of adding annotations to KtPsiFactory.CallableBuilder
2020-02-28 12:38:09 +07:00
Ilya Gorbunov b53cb5cb4c Cover with a test current Double/Float companion values access 2020-02-28 01:26:56 +03:00
Vladimir Dolzhenko 1f47c6d54f Add missed calcHashCode for ModuleSourceScope subclasses 2020-02-27 21:17:25 +01:00
pyos 035cc57cf4 JVM_IR: don't remap current method signature when detecting clashes
TODO: don't repeatedly map signatures of inherited functions either.
2020-02-27 22:17:19 +03:00