Commit Graph

85834 Commits

Author SHA1 Message Date
pyos 9fa3e2eb13 FIR: always load parents of nested classes first 2021-09-14 19:00:48 +03:00
pyos 032cf5a892 FIR: JavaSymbolProviderWrapper -> JavaSymbolProvider 2021-09-14 19:00:47 +03:00
pyos 30c8fa89f6 FIR: rename JavaSymbolProvider to JavaClassConverter 2021-09-14 19:00:46 +03:00
pyos 3a80cb1808 FIR: hide construction of JavaSymbolProvider 2021-09-14 19:00:45 +03:00
pyos 8ff79e002e FIR: load parents of Java inner classes first, as before 2021-09-14 19:00:44 +03:00
pyos cac0cf6a50 FIR: join KotlinDeserializedJvmSymbolsProvider and JavaSymbolProvider
This allows reusing class finder results.
2021-09-14 19:00:43 +03:00
Nikolay Lunyak 0181c80ddb [FIX] Add some more tests 2021-09-14 18:42:27 +03:00
Nikolay Lunyak d7e00a5907 [FIX] Fix error types 2021-09-14 18:42:26 +03:00
nataliya.valtman 130fd8311e KT-48620: add readable output size metric into build scan 2021-09-14 17:56:11 +03:00
Alexander Shabalin 0b431d5ea5 [K/N] Link GC triggers issue 2021-09-14 14:00:46 +00:00
Alexander Shabalin d03a7993ed [K/N] Implement GCScheduler 2021-09-14 13:53:36 +00:00
Ilya Kirillov a8d321db63 FIR IDE: do not use FE1.0 compiler jars in frontend-independent-modules 2021-09-14 14:45:43 +02:00
Ilya Kirillov da962895a8 Split compiler-for-ide jar into multiple jars
Needed for IDE to gradually control which plugin (FE1.0, FIR) on which jar may depend

Jars: Common, IR, FIR FE1.0 and PSI
2021-09-14 14:45:41 +02:00
Svyatoslav Scherbina ae349846e1 Native: support writing unit tests for Interop/Indexer 2021-09-14 10:42:16 +00:00
nataliya.valtman b603f99863 KT-48620: Fix host name exception 2021-09-14 12:10:39 +03:00
Hung Nguyen 97e9e4efe7 KT-45777: Address review comments - use InputChanges instead of ChangedFiles 2021-09-14 12:10:39 +03:00
Hung Nguyen 9b71bd5bb4 KT-45777: Address review comments - update tests 2021-09-14 12:10:39 +03:00
Hung Nguyen a48bf63630 KT-45777: Compute classpath changes for incremental Kotlin compile
Test: Updated unit tests + incremental compilation integration tests
2021-09-14 12:10:38 +03:00
Hung Nguyen e3d7b7a30e KT-45777: Refactor incremental compilation integration tests
to organize tested scenarios better and make it easier to see the
effects of the next change when the classpath snapshot feature is
enabled.
2021-09-14 12:10:38 +03:00
Hung Nguyen 3f857cdef1 KT-45777: Update keep rules for serializable classes
to prevent broken serialization caused by missing fields/methods.

(Without this commit, the next commit will break tests.)
2021-09-14 12:10:38 +03:00
Yigit Boyar 95f990adab Support line location information in KAPT for top level declarations
This CL fixes a bug in KAPT's MAP_DIAGNOSTIC_LOCATIONS flag where the
location mapping for top level elements didn't work.

I also needed to changes the Kapt3IntegrationTest to copy input files,
otherwise, it cannot map file paths since the mock project has no root
location.

Cleanup tmp folders in KAPT tests, update Kapt3IT test for new lines.

^KT-47934 Fixed
Test: KotlinKapt3IntegrationTests#testErrorLocationMapping
2021-09-14 10:48:37 +02:00
Yahor Berdnikau ec3a6e7f02 Update java up-to-date test project to plugins api.
^KT-45747 In Progress
2021-09-14 10:42:52 +02:00
Yahor Berdnikau 6ad662dd66 Migrate ClassFileIsRemovedIT test to new test DSL.
Rename ClassFileIsRemovedIT.kt into SourceFileIsModifiedIT.kt.

 ^KT-45747 In Progress
2021-09-14 10:42:52 +02:00
Yahor Berdnikau b71b7abc2b Migrate JavaUpToDateIT test to new test DSL.
^KT-45747 In Progress
2021-09-13 22:50:09 +02:00
Roman Golyshev 3c69a5efc8 [FIR IDE] Handle FirBackingField in buildVariableLikeSymbol
Do a small refactoring of `buildBackingFieldSymbol`
2021-09-13 21:58:01 +03:00
Roman Golyshev 57608d7eeb Use correct elementType in KotlinBackingFieldStubImpl constructor 2021-09-13 21:58:00 +03:00
Ivan Kochurkin a816bd9a33 [FIR] Add JVM_INLINE_WITHOUT_VALUE_CLASS, VALUE_CLASS_WITHOUT_JVM_INLINE_ANNOTATION 2021-09-13 20:49:00 +03:00
Ivan Kochurkin 7e7066d75e [FIR] Add FUNCTION_DELEGATE_MEMBER_NAME_CLASH 2021-09-13 20:48:59 +03:00
Ivan Kochurkin a5caa14255 [FIR] Add SPREAD_ON_SIGNATURE_POLYMORPHIC_CALL 2021-09-13 20:48:59 +03:00
Ivan Kochurkin 5760a94ab4 [FIR] Add CONCURRENT_HASH_MAP_CONTAINS_OPERATOR 2021-09-13 20:48:58 +03:00
Ivan Kochurkin 0ffd6ccb34 [FIR] Add SUSPENSION_POINT_INSIDE_CRITICAL_SECTION 2021-09-13 20:48:57 +03:00
Ivan Kochurkin e97933a9e5 [FIR] Add POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION 2021-09-13 20:48:55 +03:00
Ivan Kochurkin dd46c36b24 [FIR] Add SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC 2021-09-13 20:48:54 +03:00
Ilya Kirillov 55990f65cb FIR LC: fix vararg parameter type
After fix in KtParamterSymbol, vararg parameter type now is a non-array type
2021-09-13 19:18:02 +02:00
Jinseong Jeon cabc47516a FIR IDE: check backing field with BODY_RESOLVE 2021-09-13 19:12:35 +02:00
Mark Punzalan f4c5f02bfe HL API: Use array element type as type of vararg KtValueParameterSymbol. 2021-09-13 19:12:34 +02:00
Viacheslav Kormushkin 8dd40cb398 KT-MR-4412: Fix CocoaPodsIT tests
#KT-48700
2021-09-13 15:56:34 +00:00
Igor Yakovlev b948ef4bd6 [FIR IDE] Resolve tree builder 2021-09-13 17:32:32 +03:00
Ivan Kochurkin 07edb15138 [FIR] Expand typealias for correct approximation of types (particularly Int and Long) 2021-09-13 14:28:26 +00:00
Pavel Punegov 3d58a70e62 [Native][Tests] Rename USE_EXPERIMENTAL directive to OPT_IN
See fc6403679a
2021-09-13 14:08:32 +00:00
Dmitriy Novozhilov d390f881c8 [FE 1.0] Record USED_AS_EXPRESSION for unreachable CFG nodes
^KT-48708 Fixed
2021-09-13 16:22:50 +03:00
Igor Chevdar 8464b15d27 [K/N][IR] Fix for https://youtrack.jetbrains.com/issue/KT-48559
Aligned SAM conversion lowering with the JVM's one
Also refactored other places with erasure
2021-09-13 16:49:39 +05:00
Dmitry Gridin 72752473bf [light classes] KtLightClassForSourceDeclaration: update equals and hashCode to fix PluginException
^KTIJ-19042 Fixed
^EA-357501 Fixed
2021-09-13 11:43:22 +00:00
Igor Chevdar 23a02be169 [K/N][IR] Fix for https://youtrack.jetbrains.com/issue/KT-48527 2021-09-13 16:41:37 +05:00
Dmitriy Novozhilov feeeb16377 [FIR] Fix consistency tests 2021-09-13 13:53:15 +03:00
Dmitriy Novozhilov 765b389875 [FIR] Mute failing test due to KT-48675 2021-09-13 13:53:14 +03:00
Dmitriy Novozhilov 81790fee9b [FIR IDE] Add @TestDataFile to AbstractLowLevelApiTest
This is needed to correct work of `Go to testdata` action
2021-09-13 13:53:14 +03:00
Dmitriy Novozhilov d1db9b17e5 [FIR] Add workaround for KT-48675 2021-09-13 13:53:13 +03:00
Dmitriy Novozhilov 5769d42248 [FIR] Fix all usages of annotations due to new FirAnnotation hierarchy 2021-09-13 13:53:12 +03:00
Dmitriy Novozhilov 2e7564a21e [FIR] Properly create FirAnnotation and FirAnnotationCall in all places 2021-09-13 13:53:12 +03:00