Dmitriy Novozhilov
ed0e5adce7
[FIR] Make FirAnalyzerFacade returns diagnostics grouped by fir file
2020-11-13 16:19:29 +03:00
Dmitriy Novozhilov
dabc259ae8
[FIR] Make diagnostics collectors returns List instead of Iterable
2020-11-13 16:19:29 +03:00
Dmitriy Novozhilov
20453bf0d8
[FIR] Get rid of FirSessionProvider.project property
2020-11-13 16:19:29 +03:00
Dmitriy Novozhilov
82a2ecfe14
[FIR] Cleanup creating sessions in CLI FIR compiler
2020-11-13 16:19:29 +03:00
Dmitriy Novozhilov
3aa8b09e31
[FIR] Add configurable language version settings to FirSessionFactories
2020-11-13 16:19:29 +03:00
Dmitry Petrov
5d76df6e1a
KT-43045 mangle function name for fake override with default impl
2020-11-13 16:15:29 +03:00
Mads Ager
1ecf5943ab
[JVM_IR] Determine correct type of empty varargs array.
...
When calling vararg methods with a generic vararg type without
passing explicit parameters, we have to allocate an empty array
of the right type. We failed to do so previously, as we did
not take the type arguments for the dispatch receiver into
account.
2020-11-13 12:13:53 +01:00
Georgy Bronnikov
ffc003c051
IR: copy IrProperty's attributes in deepCopyWithSymbols
2020-11-13 11:44:35 +03:00
Yan Zhulanow
7b98876475
Parcelize: Fix typo in diagnostic message (KT-43290)
2020-11-13 17:37:21 +09:00
Dmitriy Novozhilov
e3bfb9245c
[FIR] Rename nested directory with testdata to innerClasses
...
This is needed to avoid clashing name of generated test class (`Nested`)
with annotation @Nested from JUnit 5
2020-11-13 10:36:39 +03:00
Dmitriy Novozhilov
419f54259c
[TEST] Change semantics of CHECK_TYPE directive and update testdata
...
Previously helpers from checkType.kt was in special package, and
if directive was enabled then test runner (`AbstractDiagnosticTest`)
injected additional imports to test files and removed them after test
was completed.
It's very hard to support such behavior in new test infrastructure so
there was a decision about changing `CHECK_TYPE`:
1. All helpers from `checkType.kt` now stays in default package
2. `CHECK_TYPE` only adds `checkType.kt` to set of analyzed files
and don't modify their content
For test which are written in default package (most of tests actually)
there are no changes. On the other hand if there is a test where dev
want to use checkType functions in testfile with some package then he
should explicitly import functions which he needed (`checkSubtype`,
`checkType`, `_`)
2020-11-13 10:36:12 +03:00
Dmitry Petrov
653b26174b
KT-43006 don't generate no-arg constructor with inline class parameters
2020-11-13 09:59:34 +03:00
Georgy Bronnikov
364773bf0f
IR: fix IrClassSymbol.starProjectedType
2020-11-12 21:49:11 +03:00
Dmitriy Dolovov
f5329b6f1d
[Commonizer] Don't publish sources and javadocs
2020-11-12 17:23:52 +03:00
Dmitriy Novozhilov
15cc979378
[FIR] Add enter contract node as exit for exceptional path to avoid compiler crashing
...
This fixes crashing test
`FirDiagnosticsTestSpecGenerated.NotLinked.Contracts.Declarations.ContractBuilder.Common.Neg.test17`
2020-11-12 14:46:39 +03:00
Dmitriy Novozhilov
87380d1913
[FIR] Don't assume that exit lambda node is target for exceptional exit for inplace lambdas
...
#KT-39709 Fixed
#KT-43156 Fixed
2020-11-12 14:46:38 +03:00
Jinseong Jeon
440cf78884
FIR CFG: add more uncaught exception paths
2020-11-12 14:46:37 +03:00
Jinseong Jeon
7b06885348
FIR checker: reproduce KT-43156
2020-11-12 14:46:36 +03:00
Dmitriy Novozhilov
f4347a60c2
[FIR] Fix typo
2020-11-12 14:46:35 +03:00
Mikhail Glukhikh
3c48f2eb68
[FIR] Handle isProp/setProp synthetic pair properly in Java use-site scope
2020-11-12 13:37:38 +03:00
Mikhail Glukhikh
2725930460
[FIR] Code cleanup in JavaClassUseSiteMemberScope
2020-11-12 13:37:37 +03:00
Mikhail Glukhikh
fb961f7070
[FIR] Copy also synthetic setter during fake override generation
2020-11-12 13:37:37 +03:00
Mikhail Glukhikh
22fb620344
[FIR Java] Copy also synthetic setter during enhancement
2020-11-12 13:37:37 +03:00
Mikhail Glukhikh
e0abf3a62c
[FIR Java] More precise synthetic setter search in use-site scope
...
In this commit we detect both Java void & Kotlin Unit return types
2020-11-12 13:37:37 +03:00
Mikhail Glukhikh
c515af4373
Fir2IrDeclarationStorage: extract common getIrCallableSymbol
2020-11-12 13:37:37 +03:00
Mikhail Glukhikh
b90391ced4
[FIR2IR] Implement getIrConstructorSymbol like getIrFunctionSymbol
2020-11-12 13:37:36 +03:00
Mikhail Glukhikh
0cc57fc90c
Fir2IrDeclarationStorage: reorder functions slightly
2020-11-12 13:37:36 +03:00
Mikhail Glukhikh
90f135dc3e
[FIR2IR] Use computeDeclarationOrigin in getIrPropertySymbol
2020-11-12 13:37:36 +03:00
Mikhail Glukhikh
6c1f5a4513
[FIR2IR] Cache functions/properties both by symbol & signature
2020-11-12 13:37:36 +03:00
Mikhail Glukhikh
92840b8ec5
FirTypeIntersectionScope: fix typo in name
2020-11-12 13:37:35 +03:00
Mikhail Glukhikh
5b947144d4
FirTypeIntersectionScope: don't create in no-supertypes situation
2020-11-12 13:37:35 +03:00
Mikhail Glukhikh
8ace0d9ad1
[FIR] Replace local types with Any in deserializer
2020-11-12 13:37:35 +03:00
Mikhail Glukhikh
744918fb47
[FIR] Cleanup ConeIntegerLiteralTypeImpl
2020-11-12 13:37:35 +03:00
Mikhail Glukhikh
0d03e5f235
[FIR] Simplify constructStarProjectedType
2020-11-12 13:37:34 +03:00
Mikhail Glukhikh
af52232058
[FIR2IR] Use proper lookup tags in data class member generator
2020-11-12 13:37:34 +03:00
Mikhail Glukhikh
7905bc8632
Forbid creation of local ConeClassLikeLookupTagImpl
2020-11-12 13:37:34 +03:00
Bingran
5dc7964137
Optimize the way of enabling "--warning-mode=fail"
...
Make sure project directory is cleaned up after testing
This change is a "follow-up" PR of
https://github.com/JetBrains/kotlin/pull/3804 .
2020-11-12 11:13:56 +03:00
Dmitriy Dolovov
e5539b9a9e
Gradle, Native: Log raw and transformed args in KotlinToolRunner, p.2
2020-11-12 10:40:33 +03:00
Ilya Gorbunov
4767696840
Qualify replacement expression with receiver to workaround KT-42874
2020-11-12 05:29:39 +03:00
Andrey Uskov
e0655b2f96
Unmute fixed android importing tests in platform 202
2020-11-12 00:24:50 +03:00
Andrey Uskov
a0d5af8dd1
Execute gutters calculation in read action in tests
2020-11-12 00:24:44 +03:00
Andrey Uskov
e5be9601e6
Disable indexation ExternalSystem tests
2020-11-12 00:24:43 +03:00
Andrey Uskov
9318d401f7
Fix test runtime dependencies in NativeImportingTests
2020-11-12 00:24:42 +03:00
Andrey Uskov
dea383460e
Add dependency on platform-images in tests
2020-11-12 00:24:41 +03:00
Yan Zhulanow
5f7d7ff9c7
Parcelize: Activate checkers only when the plugin is enabled for module (KT-43291)
2020-11-12 05:38:27 +09:00
Ilya Kirillov
9d207c2cf5
FIR IDE: temporary mute some not passing tests
2020-11-11 21:02:34 +03:00
Ilya Kirillov
3e43efb93e
FIR IDE: fix working with copied file in completion
2020-11-11 21:02:33 +03:00
Igor Yakovlev
0d59656532
FIR IDE: Add resolving KtParameter in FirLazyDeclarationResolver
2020-11-11 21:02:31 +03:00
Dmitriy Novozhilov
345a0d3f89
[FIR] Implement writeGenericType in FirJvmTypeMapper
2020-11-11 21:02:31 +03:00
Ilya Kirillov
9350f7aff9
FIR IDE: remove unused method in light classes with compilation error
2020-11-11 21:02:29 +03:00