Ilya Kirillov
c899f6dae3
[LL FIR] fix lazy resolution of member property statuses for anonymous objects
...
Previously, statuses of superclass which are not local was not ignored
Sometimes it worked in the IDE by calling lazyResolveToPhase
which is a violation of the lazy resolution contract
^KT-54890
2022-12-05 17:27:42 +01:00
Ilya Kirillov
c66fbf5c0e
[LL FIR] fix lazy resolution of member-property statuses for local classes
...
Previously, statuses of superclass which are not local was not ignored
Sometimes it worked in the IDE by calling lazyResolveToPhase
which is a violation of the lazy resolution contract
^KT-54890
2022-12-05 17:27:42 +01:00
Andrey Uskov
1550a37b17
Cleanup: remove deprecated methods from Kotlin daemon
2022-12-05 16:02:04 +00:00
Andrey Uskov
c9e0100214
Remove experimental implementation of Kotlin Compiler Daemon
...
#KT-50846 Fixed
2022-12-05 16:02:03 +00:00
Pavel Kirpichenkov
94f690a10e
[MPP] fix misconfigured project in test
...
JVM + linux project shouldn't have a JVM-only dependency in common
KT-54975
2022-12-05 14:55:46 +00:00
Yan Zhulanow
bcf1389ae5
[LL API] Fix enum value lazy analysis (KTIJ-23833)
...
^KTIJ-23833 Fixed
2022-12-05 11:44:15 +00:00
Jaebaek Seo
a637626601
Handle context receiver in KtModifierListOwner.addModifierList()
...
The existing `KtModifierListOwner.addModifierList(newModifierList)`
function adds a visibility keyword (e.g., `private`) in front of the
`context(..)` modifier, which generates wrong code. This commit fixes
it.
^KTIJ-23728 fixed
2022-12-05 11:20:03 +01:00
Simon Ogorodnik
9856204925
KTI-1046. Tests Replace XmlParser with JDOM in tests-spec
...
Fix test behaviour with two artifacts of spec on teamcity
2022-12-05 07:30:24 +00:00
Andrey Uskov
41ff283856
Don't call File.getCanonicalPath in KGP
...
Relates to KT-54579.
2022-12-04 18:49:30 +00:00
Andrey Uskov
ca8f234f28
Improve performance of KAPT on JDK 17
...
Getting canonical path is expensive on JDK 17, thus check, whether
file is belongs to some folder becomes expensive.
In this commit implementation was replaced to a new one based on
File.getParent. It gives profit 49seconds-> 500 ms/100k files.
Note! Now if there are present two files which are actually links of the
same file, they are treated as two different files.
#KT-54579 Fixed
2022-12-04 18:49:30 +00:00
Pavel Kirpichenkov
cba90c73e6
[MPP] Add stdlib-common filter, extend platform dependency resolution
...
KT-54975
2022-12-04 16:15:09 +02:00
Pavel Kirpichenkov
13d1f0eab0
Minor: fix typo
2022-12-04 16:14:38 +02:00
Steven Schäfer
21fef70367
Standardize context receiver parameter names
...
Previously, FIR used `_context_receiver_n` while FE10 used `<this>` for
all context receiver parameters. This commit changes the code in FE10
to follow the convention from FIR.
2022-12-03 00:11:38 +01:00
Mikhail Glukhikh
5cf1a88c42
FE: move delegate name functions to NameUtils
2022-12-02 21:54:18 +00:00
Steven Schäfer
a7ba081d22
FIR: Fix interface delegation ABI
...
- Unifies the name of the `$$delegate_<n>` field between K1 and K2.
- Make the `$$delegate_<n>` field private
2022-12-02 21:54:18 +00:00
Vyacheslav Karpukhin
91749737f8
[Gradle] Workaround KT-55222 via reflection to make the project compilable
2022-12-02 21:44:36 +01:00
Vladimir Dolzhenko
ebf24c2d24
Add default impl of getCanonicalText
...
#KTIJ-11270
2022-12-02 18:28:41 +00:00
Vladislav Grechko
cb93e9d408
Get rid of redundant boxing of unsigned operands of infix 'compareTo'
...
^KT-48759: Fixed
2022-12-02 18:25:52 +00:00
Ilya Kirillov
7423b35741
[Low Level FIR] explicitly specify all phases in LazyTransformerFactory
...
so when the new phase is added, lazy transformer for it is not missed
2022-12-02 17:08:34 +00:00
Ilya Kirillov
9dd398dc77
[FIR] do not consider FirDefaultPropertyBackingField to be always resolved to BODY_RESOLVE
...
Otherwise, lazy resolve will never resolve it
2022-12-02 17:08:34 +00:00
Ilya Kirillov
500f5b48f8
[Low Level FIR] reformat code
2022-12-02 17:08:33 +00:00
Ilya Kirillov
fb500fd521
[Low Level FIR] do not try to lazy resolve FirBackingField
2022-12-02 17:08:33 +00:00
Ilya Kirillov
317bb0122f
[Low Level FIR] encapsulate the work with lazy transformers to a class
2022-12-02 17:08:32 +00:00
Ilya Kirillov
52a88f7858
[Low Level FIR] do not use the same LLFirModuleLazyDeclarationResolver for the supertype computation
...
LLFirModuleLazyDeclarationResolver is bound to module, and should be taken from corrsponding FirSession
2022-12-02 17:08:32 +00:00
Ilya Kirillov
522aa1b3bb
[Low Level FIR] remove usages of ResolveTreeBuilder as it complicates the code but unused
2022-12-02 17:08:31 +00:00
nataliya.valtman
70fb18e160
KT-54941: Use Debug level for process launch fallback reason
2022-12-02 17:42:23 +01:00
Alexander Likhachev
063dcea2e2
[Gradle] Access MppTestReportHelper factory directly instead of providers
...
Workaround for KT-55241
2022-12-02 16:37:37 +00:00
Alexander Likhachev
cb53d0c388
[Gradle] Migrate AndroidDependencyResolver to the new variants selection API
...
#KT-55222 Fixed
Co-authored-by: Vyacheslav Karpukhin <vyacheslav.karpukhin@jetbrains.com >
2022-12-02 16:37:37 +00:00
Alexander Likhachev
6bbc577942
[Gradle] Introduce MppTestReportHelper to handle differences in internal Gradle testing API
...
#KT-54634 Fixed
2022-12-02 16:37:36 +00:00
Alexander Likhachev
b7ebe77399
[Gradle] Workaround KT-55222 via reflection to make the project compilable
2022-12-02 16:37:36 +00:00
Alexander Likhachev
9bbdee7817
[Gradle] Update Gradle API for the common sourceset to 7.6
...
The project isn't compilable at the moment
#KT-54634 In Progress
2022-12-02 16:37:36 +00:00
Alexander Likhachev
857f704a09
[Gradle] Add test for KT-54634
2022-12-02 16:37:35 +00:00
Alexander Likhachev
f839d5d4c2
[Gradle] Add Gradle 7.6+ variant
...
#KT-54634 In Progress
2022-12-02 16:37:35 +00:00
Mikhail Glukhikh
900a3e59ff
AndroidPackage...Extension: make createLazyValue result not null
2022-12-02 15:42:37 +00:00
Alexander Korepanov
d8ab9498ab
[JS IR] Fix inline functions call graph in IC
...
Add a dependency for inline function references,
because in some cases the references may be inlined.
^KT-55144 Fixed
2022-12-02 13:50:37 +00:00
Alexander Korepanov
c31705240a
[JS IR] Support a module friendship in IC infrastructure
...
^KT-55097 Fixed
2022-12-02 13:50:36 +00:00
Artem Kobzar
76e629340f
[K/JS] Add miss LazyIr into klib Ir generation process
2022-12-02 13:28:18 +00:00
Dmitrii Gridin
35ca45a608
[SLC] fix IDE test
2022-12-02 11:59:29 +01:00
Ilya Kirillov
264198fb51
[LL FIR] add more tests for ValueWithPostCompute
2022-12-02 09:03:30 +01:00
Ilya Kirillov
bd3959894b
[LL FIR] fix race in ValueWithPostCompute which happened then the computation finished with a non-recoverable exception
2022-12-02 09:03:30 +01:00
Ilya Kirillov
2218651d6c
[LL FIR] fix race in ValueWithPostCompute then the computation finished with a recoverable exception
...
^KTIJ-23773 fixed
2022-12-02 09:02:37 +01:00
Sebastian Sellmair
adf6516986
[Gradle] Make 'isIdeaProjectLevel' opt-out instead of opt-in
...
KT-55218
2022-12-02 07:47:33 +00:00
Sebastian Sellmair
ba68977f52
[Gradle] Remove HasExtras delegates in favor of new ExtrasProperty
...
KT-55189
2022-12-02 07:47:33 +00:00
Sebastian Sellmair
4ea77f7836
[Gradle] Update kotlin-gradle-plugin-idea.api and kotlin-tooling-core.api
...
KT-55189
2022-12-02 07:47:32 +00:00
Sebastian Sellmair
c17daecca5
[Gradle] Mark InternalKotlinSourceSet as HasMutableExtras
...
KT-55189
2022-12-02 07:47:32 +00:00
Sebastian Sellmair
4d3880879d
[Gradle] Use ExtrasProperty
...
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair
a23e4a1048
[kotlin-tooling-core] Implement ExtrasProperty
...
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair
02ec4cb1b5
[Gradle] Fixup assertions
...
KT-55189
2022-12-02 07:47:31 +00:00
Sebastian Sellmair
61c2c0680f
[Gradle] Update kotlin-gradle-plugin-idea.api
...
KT-55189
2022-12-02 07:47:30 +00:00
Sebastian Sellmair
734b0a80e1
[CODEOWNERS] Add mpp team to kotlin-tooling-core and kotlin-tooling-metadata
...
KT-55189
2022-12-02 07:47:30 +00:00