Nikolay Lunyak
ed8935899c
[FIR] Relax incompatibleEnumAndUnrelatedInterface
2023-10-30 06:58:40 +00:00
Nikolay Lunyak
8ec7d128f5
[FIR] Add one more missed case
2023-10-30 06:58:40 +00:00
Nikolay Lunyak
3fb7407ca1
[FIR] Make FirEqualityCompatibilityChecker a bit more readable
2023-10-30 06:58:40 +00:00
Nikolay Lunyak
c6bec2fa75
[FIR] Relax incompatibleEnumAndUnrelatedInterfaceThroughTypeParameter
2023-10-30 06:58:40 +00:00
Nikolay Lunyak
3058f2eaff
[FIR] Relax incompatibleEnumComparisonWithTypeParameters
2023-10-30 06:58:40 +00:00
Nikolay Lunyak
ae521524d6
[FIR] Add tests highlighting false errors in K2 regarding equalities
...
Some overlooked corner-cases found by Denis.
2023-10-30 06:58:39 +00:00
Anastasia.Nekrasova
86e175bbf1
[K2] Disappeared KCLASS_WITH_NULLABLE_TYPE_PARAMETER_IN_SIGNATURE
...
^KT-59992
2023-10-30 06:42:00 +00:00
Ilya Chernikov
1d461684ae
LT: make where clause with errors parsing same as with PSI
...
- do not fail on the missing terms
- propagate invalid name to avoid reporting dangling constraints
#KT-58455 fixed
2023-10-27 18:22:28 +00:00
Kirill Rakhman
87563f3aea
[FIR] Rename diagnostic renderers that insert quotes and fix some messages
...
#KT-62386
2023-10-27 13:27:35 +00:00
Kirill Rakhman
2613a337ae
[FIR] Improve symbol rendering in *_NOT_IMPLEMENTED diagnostics
2023-10-27 13:27:35 +00:00
Kirill Rakhman
44a4498ee5
[FIR] Report ABSTRACT_MEMBER_NOT_IMPLEMENTED_BY_ENUM_ENTRY on enum entries with initializer
...
#KT-59577 Fixed
2023-10-27 13:27:35 +00:00
Kirill Rakhman
ef78d4b95a
[FIR] Fix deserialization of generic context receivers
...
We need to pass the local deserialization context so that generic
type parameters can be referenced.
#KT-62607 Fixed
2023-10-27 11:35:22 +00:00
Dmitrii Krasnov
45a1cc1a4a
[Gradle IT] Fixed prepareNativeBundleForGradleIT with k/n disabled
...
#KT-45978
2023-10-27 10:29:15 +00:00
Dmitriy Dolovov
e18a2d0a2e
[KLIB tool] Add tests for dumping metadata signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
88a297b022
[KLIB tool] Run tests for 'dump-metadata' with & without signatures
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
aa9b901926
[KLIB tool] Migrate 'dump-metadata' tests to K/N test infra
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
57e004e2b0
[KLIB tool] Respect '-signature-version' in 'dump-metadata' and 'dump-ir' commands
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
c34e334550
[KLIB tool] Rename "signatures" to "dump-metadata-signatures"
...
To make KLIB tool command names more uniform.
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
8f141e5dc6
[KLIB tool] Minor. Update usage info
2023-10-27 09:28:00 +00:00
Dmitriy Dolovov
93506bcb95
[KLIB tool] Add tests for dumping IR signatures
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
a49723e35c
[KLIB tool] Minor. Rename ir() to dumpIr()
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
02f52371c1
[KLIB tool] Rename "contents" to "dump-metadata"
...
To make KLIB tool command names more uniform.
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
d8d95fdf4b
[KLIB tool] Deprecate usage of KLIB repositories
...
^KT-61098
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
5961710db3
[KLIB tool] Don't print stack trace on trivial errors
...
1. Don't need to print stack trace on trivial errors such as invalid
CLI argument or incompatible library version.
2. Re-organization of `logWarning()` & `logError()` calls inside
the klib tool.
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
8ca62ad656
[KLIB tool] Fail with an adequate error message on IR-less KLIBs
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
f276fe6506
[KLIB] Add a reliable mechanism to check if KLIB has IR inside
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
4b2776e126
[KLIB tool] Introduce new command: dump-ir-signatures
...
^KT-62341
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
447b0eddac
[KLIB tool] Drop useless arg: -target
2023-10-27 09:27:59 +00:00
Dmitriy Dolovov
b0c1cbff32
[KLIB tool] Minor. Reformat usage info
2023-10-27 09:27:59 +00:00
Bart van Helvert
f31c93132e
[AA] Fall back on fir building when getting type from reference
...
#KTIJ-26215 Fixed
2023-10-27 09:17:12 +00:00
Roman Golyshev
ece43fe9c6
KT-62859 [LL FIR] Compute origin per declaration in StubBasedFirDeserializedSymbolProvider
...
Since `createStubBasedFirSymbolProviderForClassFiles` works for
builtins (after 866368cf ), the provider sometimes has to handle
declarations from builtins (`Any?.toString()` or `arrayOf`, for example)
To provide correct origin for such declarations, we have to compute
the origin on the per-declaration basis instead of always setting
`Library` or `BuiltIn` origin
Providing correct origins should improve the consistency of
deserialized fir declarations
To reduce duplication, `getContainerSource` now also uses
`getDeclarationOriginFor`
2023-10-27 08:28:30 +00:00
Roman Golyshev
16608c8a1f
KT-62859 [LL FIR] Introduce JvmStubDeserializedBuiltInsContainerSource
...
If deserialized declarations from built-ins have a container source
which implements `FacadeSource`, it might cause different problems
during IR compilation.
For example, IR lowering of `Any?.toString()` function call was broken
because IR assumed that this declaration belonged to a facade class
"kotlin.kotlin", which does not exist.
We introduce a special kind of container source for the built-ins
declarations, and there are in fact no real facade classes for such
declarations.
Also, `LLFirModuleWithDependenciesSymbolProvider` is modified to
correctly handle such sources. Previously it only handled
`FacadeSource`s, and now it knows about our special source for
built-ins.
^KT-62859 Fixed
2023-10-27 08:28:30 +00:00
Dmitrii Krasnov
1a9cd81a85
[KGP] Changed type of determining maturity version for k/n
...
#KT-62927 Fixed
Merge-request: KT-MR-12742
Merged-by: Dmitrii Krasnov <Dmitrii.Krasnov@jetbrains.com >
2023-10-27 08:20:44 +00:00
Kirill Rakhman
8821f8d1a4
[FIR] Expand type alias when checking for type parameters from outer declaration
...
This fixes a false positive OUTER_CLASS_ARGUMENTS_REQUIRED when
referring to an inner class of a supertype that is extended using a
typealias.
#KT-62099 Fixed
2023-10-27 08:05:58 +00:00
Kirill Rakhman
907ebb36d0
[FIR] Filter out SAM constructors from MemberScopeTowerLevel
...
This tower level is for calls on a dispatch receiver, and it's not
allowed to call SAM constructors on a dispatch receiver.
#KT-60983 Fixed
2023-10-27 08:03:00 +00:00
Marco Pennekamp
576d8d1c10
[AA] Allow declaration provider package set computation to return null
...
- This is in line with the API of `FirSymbolNamesProvider`. It only
makes sense to compute package sets for source and library modules.
Also, source module package set computation in the IDE is currently
broken, so it's good to be able to return `null` in the meantime.
- This also allows the removal of the workaround for source modules in
`LLFirProviderHelper`, as the IDE declaration provider can now return
`null` itself in this case.
^KTIJ-27411
2023-10-26 21:07:28 +00:00
Marco Pennekamp
5c091f611e
[LL] Pass contextual module to stub-based Kotlin declaration providers
...
- This will allow the Kotlin declaration provider to compute package
sets based on the library module associated with the stub-based symbol
provider.
^KTIJ-27411
2023-10-26 21:07:28 +00:00
Marco Pennekamp
485a4cebb2
[AA] createDeclarationProvider: Document usages of the contextual module
...
^KTIJ-27411
2023-10-26 21:07:28 +00:00
Marco Pennekamp
2e5ee28681
[LL] Remove unused declaration provider from LLFirIdePredicateBasedProvider
2023-10-26 21:07:28 +00:00
Marco Pennekamp
2ec77822e2
[AA] createDeclarationProvider: Rename module to contextualModule
...
^KTIJ-27411
2023-10-26 21:07:28 +00:00
Evgeniy.Zhelenskiy
a77349edb4
[FIR] Report INAPPLICABLE_INFIX_MODIFIER on vararg parameter, position INAPPLICABLE_INFIX_MODIFIER on infix keyword
...
#KT-59974
2023-10-26 20:07:50 +00:00
Vladimir Sukharev
aebbdeaf92
[K/N] Fix OS file handles leak in DependencyProcessor
...
Merge-request: KT-MR-12705
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-10-26 20:03:34 +00:00
Mikhail Glukhikh
f82c3c3bf7
K2: add test confirming finished migration in KT-33917
...
Related to KT-62918, KT-60086
2023-10-26 19:41:13 +00:00
Mikhail Glukhikh
dda7004d66
K2: add test to confirm behavior described in KT-62918
...
#KT-62918 Obsolete
Related to: KT-60086, KT-59920
2023-10-26 19:41:13 +00:00
Ilya Kirillov
a90562c0da
[Analysis API] support creating KtSymbol by K/JS dynamic scope
...
^KT-61257 fixed
2023-10-26 19:28:27 +00:00
Alexander Korepanov
91edbeb747
[JS IR] Add tests for checking constant inlining with JS IR IC
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
4ebfed04d3
[JS IR] Add tests for JS code KLIB diagnostics
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
261527939b
[JS IR] Fix JS code diagnostics tests according to new KLIB checks
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
04809a6b3b
[JS IR] Move tests for JS code diagnostics
...
^KT-62425
2023-10-26 19:22:14 +00:00
Alexander Korepanov
78aa34b3e8
[JS IR] Fix JS box tests
...
^KT-62425
2023-10-26 19:22:14 +00:00