Ilya Kirillov
d311fe21f8
FIR IDE: add additional tests for expression types
2021-03-07 19:48:08 +01:00
Ilya Kirillov
8a28175302
FIR IDE: fix CCE in getKtExpressionType on loops
2021-03-07 19:48:08 +01:00
Ilya Kirillov
0130ecd21d
FIR IDE: fix CCE in getKtExpressionType on assignment target
2021-03-07 19:48:08 +01:00
Andrey Uskov
b7e13d677d
Fixed loading Gradle script templates located on WSL2
...
#KT-45042 Fixed
2021-03-07 19:40:13 +03:00
Andrey Uskov
63925ee018
Implemented collecting projectId from Gradle
...
#KT-45337 Fixed
2021-03-07 19:40:08 +03:00
Abduqodiri Qurbonzoda
4401589974
[K/N] Fix @SinceKotlin in Common titlecase and titlecaseChar functions
2021-03-07 07:38:05 +03:00
Abduqodiri Qurbonzoda
e7a45bba91
Fix @SinceKotlin in Common titlecase and titlecaseChar functions
2021-03-07 07:38:04 +03:00
Abduqodiri Qurbonzoda
aa5874e073
[K/N] Mark with @SinceKotlin("1.5") the Common char category API
2021-03-07 07:37:47 +03:00
Abduqodiri Qurbonzoda
10b0d147af
Mark with @SinceKotlin("1.5") the Common char category API
2021-03-07 07:37:46 +03:00
Yahor Berdnikau
5db71209b2
Run Gradle advanced tests against 7.0-milestone-2 Gradle release.
...
^KT-44949 Fixed
2021-03-06 19:43:50 +01:00
Yahor Berdnikau
58564a7b89
Distinguish outputs of JS IR tasks.
...
Now JS IR link and sync tasks will output produced artifacts based on
compilation name, binary name and binary mode. This will remove
Gradle 7 error about missing task dependencies, which should not depend
on each other.
^KT-44949 In Progress
2021-03-06 19:43:50 +01:00
Yahor Berdnikau
2e1c1cd154
Fix test expects slightly different variant selection error message.
...
Error message was slightly changed on Gradle 7.
^KT-44949 In Progress
2021-03-06 19:43:50 +01:00
Yahor Berdnikau
c96c50a73c
Update AGP tests.
...
Bump AGP version in some tests and ignore AGP 3.4 tests on Gradle 7.
AGP 3.4 is not compatible with Gradle 7.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
e17aa5efaa
Change source jar duplication error to warning.
...
For now Gradle 7 will print warnings on publishing sources jar containing
duplicate files.
Duplicates are coming from SourceSets SourceSet added to sources jar
task depends on. Such approach should be rethought.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
c072c8200b
Fix test was using removed publication plugin.
...
Replace usage of removed 'maven' plugin with 'maven-publish'.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
2042508df0
Fix test project uses removed configuration for dependencies.
...
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
d78f579a42
Link task producing jar with sources to dukat tasks.
...
This required by Gradle 7 task validation.
Though in some cases sourcesJar task should not depend in some cases on Dukat tasks.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
2a8e2613a2
Split klib and cinterop outputs.
...
So Gradle 7 will not complain that some tasks using klib or cinterop
should depend on both tasks producing klib and cinterop, while they
don't need both.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
2ed98ee732
Fix test was using old KMM dependency notation.
...
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Yahor Berdnikau
db2d6c7e0a
Ensure compilation task depends on friend artifact producer task.
...
Without it Gradle 7.0 tasks dependency validation will fail.
Fix JS tasks are not cacheable due to friends inputs change.
^KT-44949 In Progress
2021-03-06 19:43:49 +01:00
Cedric Champeau
0340a89045
Fix File as input of an artifact transform
...
Using `File` as input of an artifact transform was deprecated.
With Gradle 7, this becomes an error. This commit fixes the
problem by using the proper replacement:
Provider<FileSystemLocation>
2021-03-06 15:46:07 +03:00
scaventz
9a7ef11043
Report a readable diagnostic on empty -J argument in CLI
2021-03-06 03:14:11 -08:00
scaventz
81a495b494
Fix the NullPointerException when pathname does not name a parent.
2021-03-06 01:50:40 -08:00
Abduqodiri Qurbonzoda
1c1492da3d
Optimize K/N ArrayList.toArray #KT-42720
2021-03-06 11:15:08 +03:00
Abduqodiri Qurbonzoda
421cb6971d
Optimized toArray method for ArrayDeque and ListBuilder #KT-42720
2021-03-06 11:14:50 +03:00
Abduqodiri Qurbonzoda
c2f6a2cb96
[K/N] Commonize and generalize JVM-only String.contentEquals #KT-42840
2021-03-06 11:14:32 +03:00
Abduqodiri Qurbonzoda
ed57bcb3b1
Commonize and generalize JVM-only String.contentEquals #KT-42840
2021-03-06 11:14:30 +03:00
Mikhail Glukhikh
037505d9f2
FIR IDE: regenerate diagnostics
2021-03-06 09:22:35 +03:00
Mikhail Glukhikh
7eb9b1188f
FIR: implement helpers for diagnostic suppression on elements children
2021-03-06 09:22:35 +03:00
Mikhail Glukhikh
15c3269e38
FIR: don't report error on inline nested classes
2021-03-06 09:22:35 +03:00
Mikhail Glukhikh
1e4d7ff690
Fix LightTreePositioningStrategies.DECLARATION_NAME
2021-03-06 09:22:35 +03:00
eugenpolytechnic
f6e564ffa6
FIR: introduce inline classes checks
2021-03-06 09:22:34 +03:00
Ilya Gorbunov
9cc8f44390
Support mod and floorDiv extensions in constant evaluator
...
Ignore evaluation tests for floorDiv and mod with FIR for now.
2021-03-05 23:46:57 +03:00
Ilya Gorbunov
58e6f775bb
Rename test of rem operator evaluation
2021-03-05 23:46:57 +03:00
Ilya Gorbunov
3da3f0e653
Advance bootstrap to 1.5.20-dev-2378
2021-03-05 23:46:56 +03:00
Mads Ager
e5631addf3
[IR] Move annotations from original to new constructor declarations.
...
LocalDeclarationsLowering did not move annotations when creating
a new constructor declaration, thereby losing the annotations.
Fixes KT-45298
2021-03-05 12:24:38 -08:00
Mads Ager
965c118521
[JVM IR] Make upper bounds check recursive for ieee Equals.
...
Fixes KT-44402
2021-03-05 12:22:54 -08:00
Alexander Udalov
566f97ae3e
JVM IR: remove dependency of 'backend.jvm' on 'psi2ir', 'ir.serialization.jvm'
...
Add a new module 'backend.jvm.entrypoint' which depends on psi2ir and
contains code that runs psi2ir + JVM IR backend with serialization
implementations.
Hopefully this will allow to compile these modules in parallel and
reduce the build time.
2021-03-05 20:46:33 +01:00
Alexander Udalov
5e0860ca14
IR: move PsiSourceManager, PsiErrorBuilder to ir.backend.common
2021-03-05 20:46:33 +01:00
Alexander Udalov
bec4d1903b
IR: move PsiFileEntry to ir.tree, rename to PsiIrFileEntry
2021-03-05 20:46:33 +01:00
Alexander Udalov
1f8de46b3c
JVM IR: do not depend on StubGeneratorExtensions in backend
...
Move most of the implementation from JvmGeneratorExtensions to
JvmGeneratorExtensionsImpl. The latter implements
StubGeneratorExtensions from psi2ir, and doing so helps to remove direct
dependency on this part of psi2ir from backend.
2021-03-05 20:46:33 +01:00
Alexander Udalov
22d269a0a8
Minor, rename JvmGeneratorExtensions.kt -> JvmGeneratorExtensionsImpl.kt
...
To keep git history for this file after the subsequent commit, where
most of the implementation is moved to JvmGeneratorExtensionsImpl.
2021-03-05 20:46:33 +01:00
Alexander Udalov
f332192de8
IR: remove SourceManager, make PsiSourceManager a singleton
2021-03-05 20:46:33 +01:00
Mikhael Bogdanov
8ff0b1e243
Reports warning on super calls in public-api inline functions
2021-03-05 18:45:07 +00:00
Alexander Udalov
027df41740
Add test which runs Kotlin compiler in parallel
...
This will be useful in diagnosing issues like KT-45007 in the future.
#KT-45007
2021-03-05 17:58:42 +01:00
Alexander Udalov
e7e17cdaa9
Revert "Fix KotlinCoreEnvironment projectCount disposable"
...
This reverts commit 99a6bdeec7 .
#KT-45007 Fixed
2021-03-05 17:40:39 +01:00
Vladimir Dolzhenko
36ff952a0f
Ignore when failed to get file text
...
Relates to #KTIJ-706
2021-03-05 17:12:56 +01:00
Andrei Klunnyi
a0b901b23a
Revert "[FIR]: sealed hierarchy processor for IDE"
...
This reverts commit e6ccdff2
2021-03-05 16:37:47 +01:00
Dmitriy Novozhilov
4ed341b152
Advance bootstrap to 1.5.20-dev-1608
2021-03-05 17:23:29 +03:00
Ilya Kirillov
1d42c70056
FIR IDE: generate diagnostics
2021-03-05 15:04:07 +01:00