Dmitry Savvinov
d6c27608ac
Minor: remove effectively unused test runner
2021-01-14 17:28:14 +03:00
Vyacheslav Karpukhin
71c71d8619
AndroidDependencyResolver: compatibility with AGP 7
2021-01-14 14:02:28 +01:00
Stanislav Erokhin
c1722350b6
Add constructors to KtScope
...
- KtClassLikeSymbol.primaryConstructor was removed
- Constructors were removed from getCallableMembers because
constructors has no name (or special name `<init>`) and previous
implementation was incorrect
- KtScope.getAllSymbols returns constructors as before. Before it was
like this because of the incorrect implementation of getCallableMembers
- getConstructors has sence only for class scope,
for the rest cases it is empty
2021-01-14 12:12:28 +01:00
Stanislav Erokhin
c5229291be
Add dispatchReceiver and extensionReceiver to relevant KtSymbols
2021-01-14 12:12:27 +01:00
Stanislav Erokhin
96b6efd401
Add type parameters to the KtConstructorSymbol
...
Yes, for kotlin classes there are not allowed. But unfortunately
they are for java classes
2021-01-14 12:12:27 +01:00
Stanislav Erokhin
732a997479
Use Variance instead of custom class in KtTypeArgumentWithVariance
2021-01-14 12:12:27 +01:00
Stanislav Erokhin
f6bf2f6b7b
Add variance and isReified into KtTypeParameterSymbol
2021-01-14 12:12:27 +01:00
Stanislav Erokhin
c17eee0085
Add data/inline/fun/isExternal flags to KtClassLikeSymbol
2021-01-14 12:12:26 +01:00
Stanislav Erokhin
7e4ba1a062
Remove unused Unknown modality from KtSymbolWithModality.
2021-01-14 12:12:26 +01:00
Stanislav Erokhin
e1e096b4ea
Add PRIVATE_TO_THIS visibility to KtSymbolWithVisibility
...
This visibility is used for some cases where it isn't allowed to access
to private members of the object from other instances of the same object
because of the type parameter variance.
For almost all clients this visibility is the same as PRIVATE
2021-01-14 12:12:26 +01:00
Stanislav Erokhin
d50a5e7517
Add ConstantValueKind to KtSimpleConstantValue
2021-01-14 12:12:25 +01:00
Stanislav Erokhin
d24331955e
Rename FirConstKind to ConstantValueKind and move it to compiler.common
2021-01-14 12:12:25 +01:00
Andrei Klunnyi
eed27906e3
KT-44043 [Sealed interfaces]: tests
...
So far, quick-fix tests infrastructure neither supports the check
for multiple files (several .before/.after pairs) nor multi module
structure. Provided tests are quite limited yet allow to make sure that
the fix in question appears in expected context and get activated.
^KT-44043 fixed
2021-01-14 10:25:34 +00:00
Andrei Klunnyi
43cc022613
KT-44043 [Sealed interfaces]: quickfix for nested -> to another file
2021-01-14 10:25:33 +00:00
Andrei Klunnyi
da98fc4b07
KT-44043 [Sealed interfaces]: quickfix for nested -> to upper level
2021-01-14 10:25:33 +00:00
Andrei Klunnyi
521bebee0f
KT-44043 [Sealed interfaces]: quickfix for top level abstractions
2021-01-14 10:25:32 +00:00
Alexander Udalov
a6b51da308
Fix compilation in the case of JDK_16 pointing to JDK 1.8
2021-01-13 21:47:23 +01:00
Alexander Udalov
3be62dfc89
Build: enable -Werror in stdlib/core/compiler/plugins modules
...
Exclude modules where there are still warnings in an explicitly declared
variable `tasksWithWarnings`.
Also remove "-progressive" from compiler arguments in modules which are
built with non-latest language version, as the warning about that leads
to an error with -Werror.
2021-01-13 19:34:24 +01:00
Alexander Udalov
cc90ff78fd
Build: output build time for tasks with --info
...
To minimize the amount of output during project build, to make it more
comfortable to work with the project in the terminal.
2021-01-13 19:34:24 +01:00
Alexander Udalov
07ce991b3f
Build: minor, remove extra newlines in log
2021-01-13 19:34:24 +01:00
Alexander Udalov
2a7a297399
Suppress "runtime JAR files version mismatch" warnings in some plugins
2021-01-13 19:34:24 +01:00
Alexander Udalov
0d8f909bda
Use ObsoleteTestInfrastructure instead of Deprecated in black box tests
2021-01-13 19:34:24 +01:00
Alexander Udalov
221f44da5f
Fix warnings in stdlib/compiler/plugins/test code
2021-01-13 19:18:20 +01:00
Alexander Udalov
b3d85e656e
Fix warnings after update to 202 platform
...
#KT-44069 Fixed
2021-01-13 19:17:22 +01:00
Alexander Udalov
ee7691f1ad
Fix IntArrayList deprecation warning in JvmDependenciesIndexImpl
...
Copy relevant parts of deprecated IntelliJ's IntArrayList to a new util
class. Also fix some minor IDE inspections.
2021-01-13 19:17:21 +01:00
Alexander Udalov
8ae19f5cd7
Fix deprecated Interner/StringInterner usages after update to 202
2021-01-13 19:17:21 +01:00
Alexander Udalov
f8c2f4a8d0
Fix incorrect code in AbstractJspecifyAnnotationsTest
...
There was a warning on line 78
(`diagnosticsToJspecifyMarksMap[diagnostic.name]`) which unconvered that
the map wasn't used in the same way in both call sites.
2021-01-13 19:17:21 +01:00
Alexander Udalov
d101f1b3a6
Minor, fix compiler warnings in kotlin-serialization-compiler
2021-01-13 19:17:21 +01:00
Alexander Udalov
e0363788f4
Remove some remaining tests on old coroutines
2021-01-13 19:16:31 +01:00
Mikhail Glukhikh
7953974f3d
[FIR] Make WRONG_IMPLIES_CONDITION warning instead of error
2021-01-13 18:14:26 +03:00
Simon Ogorodnik
7c8a67b20b
Make useFir build property set -Xuse-fir flag
2021-01-13 18:14:21 +03:00
sebastian.sellmair
bfbb6afee5
Add sourcesJar from metadata target to root multiplatform publication
...
^KT-44298 fixed
2021-01-13 15:07:35 +00:00
Ivan Gavrilovic
dfdd107fc0
Update KAPT stubs for tests
...
Update expected outputs so they match
the new sorting rules.
2021-01-13 22:49:09 +09:00
Ivan Gavrilovic
3b2986f069
Apply consistent sorting for elements from the same position
...
There could be multiple elements originating from the same
position in the source file, so make sure to use name+desc to
sort those.
2021-01-13 22:49:09 +09:00
Ivan Gavrilovic
ad8517c19a
Add tests from the reverted commit
...
To ensure deterministic build outputs.
2021-01-13 22:49:09 +09:00
Ivan Gavrilovic
ecc0eee3cf
KT-44130: Sort fields and methods in generated stubs
...
Use the position in the source file if possible, and
only if the members are coming from other source files,
use their name and descriptor. This is necessary in order
to ensure deterministic output in clean and incremental
runs, while preserving the order of members in the sources.
2021-01-13 22:49:09 +09:00
Ivan Gavrilovic
a320152a03
Revert "Sort class members to ensure deterministic builds"
...
This reverts commit 4bf63a9539 .
2021-01-13 22:49:09 +09:00
Bingran
77f8c1e58f
Improve cacheability test coverage on kotlin compile, kapt tasks
...
This PR makes sure we have following cases covered for :compileKotlin,
:kaptKotlin, :kaptGenerateStubsKotlin tasks.
1. incremental change + input relocated
2. incremental change + input not relocated
2021-01-13 12:17:14 +03:00
Ivan Gavrilovic
1c8a25c106
KT-44020: Rename KAPT configuration used as task property
...
This is so AGP does not try to apply AndroidX substitution
to dependencies found in the annotation processor classpath.
AGP does this by checking if the configuration name starts
with "kapt".
Test: Kapt3Android42IT
2021-01-13 16:25:57 +09:00
Zalim Bashorov
47c4197098
[JS old] Revert fix made for KT-44221 in ab753625
...
And mute the test for old BE.
#KT-44221 Open
2021-01-13 01:22:17 +03:00
Alexander Udalov
0d6c5dd2bc
Fix incorrect generation of Ant task tests, restore tests
2021-01-12 22:18:32 +01:00
Dmitriy Novozhilov
0e62cd9998
Regenerate tests
2021-01-12 18:35:41 +03:00
Dmitriy Novozhilov
e3066a166e
[Test] Migrate AbstractFirBlackBoxCodegenTest to new infrastructure
2021-01-12 18:35:40 +03:00
Dmitriy Novozhilov
af5a635f85
[Test] Ignore error diagnostics from FIR in some BB tests
2021-01-12 18:35:39 +03:00
Dmitriy Novozhilov
2eeed1281c
[Test] Mute failing FIR BB tests related to MPP
2021-01-12 18:35:37 +03:00
Dmitriy Novozhilov
5329a6ce8e
[Test] Properly dispose class loader for running BB tests
2021-01-12 18:35:36 +03:00
Dmitriy Novozhilov
e6fd74f368
[Test] Add ability to remove default directives in test configuration
2021-01-12 18:35:35 +03:00
Dmitriy Novozhilov
e3c7bd5f85
[Test] Migrate AbstractIrBlackBoxCodegenTest to new infrastructure
2021-01-12 18:35:34 +03:00
Dmitriy Novozhilov
f1a2e66ba4
[Test] Setup proper jvm target for kotlinClassImplementsJavaInterface test
2021-01-12 18:35:33 +03:00
Dmitriy Novozhilov
93ce37319a
[Test] Drop BlackBoxCodegenTestGenerated from :compiler:tests-different:jdk
2021-01-12 18:35:32 +03:00