Commit Graph

83397 Commits

Author SHA1 Message Date
pyos ee4d9a89ea JVM_IR: read inline fun bytecode to detect unused property references
I.e. optimize `$$delegatedProperties` in the same way as the old
backend. This is more reliable than trying to match bytecode.
2021-06-21 16:19:23 +03:00
pyos bd6d96114b JVM_IR: generate shorter bytecode for reflected property references 2021-06-21 16:19:23 +03:00
Alexander Shabalin 7079ad49bc Add a test on attaching new threads while collecting 2021-06-21 12:26:01 +00:00
Elena Lepilkina 7c45154fc5 [K/N] Added copy array benchmark 2021-06-21 12:23:25 +00:00
Jinseong Jeon bc09d94717 FIR UAST: running resolve API tests for both plugins 2021-06-21 13:49:47 +03:00
Jinseong Jeon 610b68c29d FIR/UAST: commonize expressions with label 2021-06-21 13:49:46 +03:00
Jinseong Jeon fa613a32b2 FIR/UAST: commonize safe qualified expression 2021-06-21 13:49:45 +03:00
Jinseong Jeon 2999d0bd4b FIR/UAST: commonize double colon expressions 2021-06-21 13:49:44 +03:00
Jinseong Jeon 77e8aed995 FIR/UAST: move multi resolve utils/APIs to the base module/service 2021-06-21 13:49:42 +03:00
Jinseong Jeon e870bf7399 FIR/UAST: commonize simple reference expression 2021-06-21 13:49:41 +03:00
Jinseong Jeon 4ec745abd7 FIR: relax simple type requirement in AbstractTypeMapper
The counterparts in old FE don't have such restriction, so it can
map a type that has a flexible type as a type argument to JVM type,
e.g., Stream<String..String?>
2021-06-21 13:49:40 +03:00
Jinseong Jeon 08e486d1a7 FIR/UAST: commonize dot qualified expression 2021-06-21 13:49:39 +03:00
Ilya Kirillov 8f70ef41f0 FIR IDE: consider resolve inside completion candidate checker 2021-06-21 13:43:49 +03:00
Ilya Kirillov 9d07832175 fix "FIR IDE: implement completion for variables with functional types with receivers" 2021-06-21 13:43:48 +03:00
Ilya Kirillov 0ebb9cc4a6 FIR IDE: extract completion groups to object 2021-06-21 13:43:47 +03:00
Ilya Kirillov 20f2e4f313 FIR IDE: introduce basic weighting for completion based by groups 2021-06-21 13:43:46 +03:00
Ilya Kirillov a5edbd531b FIR IDE: add ::class/::class.java to callable references completion 2021-06-21 13:43:45 +03:00
Ilya Kirillov 915c8b7996 FIR IDE: implement completion for variables with functional types with receivers 2021-06-21 13:43:44 +03:00
Ilya Kirillov 167917cf07 FIR IDE: ignore attributes in completion tests 2021-06-21 13:43:43 +03:00
Ilya Kirillov 72e26771d8 FIR IDE: do not require resolve bodies toc check candidates for completion 2021-06-21 13:43:41 +03:00
Ilya Kirillov b8248f0197 FIR IDE: do not ignore parameters for extension applicability for completion 2021-06-21 13:43:40 +03:00
Ilya Kirillov ae9ac33f0f FIR IDE: implement completion for infix functions 2021-06-21 13:43:39 +03:00
Ilya Kirillov 2ffc7ad0a0 FIR IDE: implement completion for callable references 2021-06-21 13:43:38 +03:00
Dmitriy Novozhilov a42e9c236a [FIR] Fix PSI types of some diagnostics 2021-06-21 13:13:18 +03:00
Dmitriy Novozhilov b218573bb3 [FIR] Add pretty toString to FirDiagnosticFactory 2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov 3564db4f7b [FIR] Add assertion which checks that diagnostic is reported on proper PSI element 2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov a288b8b00e [FIR] Remove useless type parameters from classes related to diagnostics
Generics removed from:
 - FirPsiSourceElement
 - FirDiagnostic
 - FirDiagnosticRenderer
 - FirDiagnosticFactory
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov 386f6d9331 [FIR] Safe KClass of PSI type in diagnostic factory 2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov 399b7aceef [FIR] Fix reporting diagnostics in CLI which was broken in previous commit
Note: reporting properly works only for PSI
2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov d807ac2f05 [FIR] Don't inherit FIR diagnostics from FE 1.0 diagnostics 2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov 3d544be655 [FIR] Add ability to specify custom position strategy for specific diagnostic 2021-06-21 13:13:17 +03:00
Dmitriy Novozhilov 9ef712c096 [FIR] Prohibit using FirDiagnosticFactory.on for creating diagnostics
In most cases it's better to use `FirDiagnosticReporter.reportOn`, so
  `on` methods now marked as opt in
2021-06-21 13:13:16 +03:00
Andrei Klunnyi 89801a1ac7 KT-44841 Move sealed: no warning on splitting hierarchy (JPS)
To provide similar behavior for both Gradle and JPS projects target and
source directories are now taken into account.

Prior to this commit AbstractMoveTest.kt contained a hack allowing not
to create empty target directories. It breaks updated logic of the move
check and therefore is removed.
To commit empty target directories under 'before' to git one needs to
put something in them (git ignores dirs otherwise). Hence .gitignore-s.

^KT-44841 Fixed
2021-06-21 09:51:17 +00:00
Svyatoslav Scherbina b961812efd Native: fix thread state when calling ObjC completion for Kotlin suspend 2021-06-21 09:37:25 +00:00
Ilya Kirillov 87c6ab493b FIR IDE: mute some highlighting tests
They may fail if they run separately
2021-06-21 04:15:37 +02:00
Ilya Kirillov bbefc064a9 FIR IDE: fix EntityWasGarbageCollectedException for KtType 2021-06-21 03:38:25 +02:00
Ilya Kirillov f00170eb31 FIR IDE: add missing runtime dependencies for tests 2021-06-21 02:50:11 +02:00
Ilya Kirillov caf4eba2df FIR IDE: do not run tests from idea-fir module in parallel 2021-06-21 02:19:23 +02:00
Ilya Kirillov dd0a91cc15 FIR IDE: invalidate caches between lightclasses tests 2021-06-21 00:51:31 +02:00
Ilya Kirillov c2ae434737 Remove // FIR_IDE_IGNORE directive from passing tests 2021-06-21 00:51:31 +02:00
Ilya Kirillov 822590a62b FIR IDE: temporary disable AbstractFirLazyDeclarationResolveTest.kt 2021-06-21 00:51:31 +02:00
Ilya Kirillov 90f6d458b5 FIR IDE: fix test task name 2021-06-21 00:51:31 +02:00
Ilya Kirillov f20dd8b673 FIR IDE: fixes after rebase 2021-06-21 00:51:30 +02:00
Ilya Kirillov cf04be5207 FIR IDE: temp mute failing light class test 2021-06-21 00:51:30 +02:00
Ilya Kirillov e9d1fb7c40 FIR IDE: mute completion tests failing with "Class LinkedHashMap was not found" 2021-06-21 00:51:30 +02:00
Ilya Kirillov 3e42ae03a9 Move frontend api modules out of ide modules 2021-06-20 22:07:49 +02:00
Ilya Kirillov 495a5136bb extract frontendApiTests to separate gradle task 2021-06-20 22:07:49 +02:00
Ilya Kirillov d5cd4955cc FIR IDE: temporary update testdata of lazy resovle test 2021-06-20 22:07:46 +02:00
Ilya Kirillov 72b8593240 FIR IDE: do not use IJ test infrastructure in frontend-api-fir tests 2021-06-20 22:07:31 +02:00
Ilya Kirillov 606c3c136c FIR IDE: remove dependency to IDEA from low-level-api fir impl module 2021-06-20 22:07:28 +02:00