Mikhael Bogdanov
903defdf30
Use IDEA ASM in kapt module
2021-02-10 12:23:47 +01:00
Dmitriy Dolovov
154a768a3a
[Commonizer] Minor. Remove unused import
2021-02-10 14:18:14 +03:00
Dmitriy Dolovov
ac966ad1d2
[Commonizer] Add getParentEntityId() method to CirEntityId
2021-02-10 14:18:14 +03:00
Dmitriy Dolovov
4bab505c3a
[Commonizer] Introduce CIR entities for representing various flavors of names
...
- CirName - simple name
- CirPackageName - fully-qualified name of the package
- CirEntityName - fully-qualified name of some entity, ex: Class, TypeAlias
2021-02-10 14:18:14 +03:00
Dmitriy Dolovov
f8c5244a39
[Commonizer] Use CirConstantValue class to represent constant values
2021-02-10 14:18:13 +03:00
Dmitriy Dolovov
25df25ccc6
[Commonizer] Minor. Extract common module names from CommonizerParameters
2021-02-10 14:18:13 +03:00
Dmitriy Dolovov
97000b1285
[Commonizer] Drop CirContainingClassdetails in favor of CirClass entity
2021-02-10 14:18:13 +03:00
Dmitriy Dolovov
054b59198b
[Commonizer] Don't keep fqName inside of CirPackageNode
2021-02-10 14:18:13 +03:00
Dmitriy Dolovov
5d19ac16d5
[Commonizer] Drop useless CirPackageNode.moduleName property
2021-02-10 14:18:12 +03:00
Dmitriy Dolovov
c6756762e5
[Commonizer] Refactoring: Clean-up in CirTreeMerger
2021-02-10 14:18:12 +03:00
Dmitriy Novozhilov
671ebc6819
[FIR] Fix detecting that if in then branch of outer if used as expression
2021-02-10 14:17:38 +03:00
Alexander Udalov
e6588ee8a4
CLI: include META-INF/services/ from kotlin-reflect with -include-runtime
...
This is an addition to bd205317aa where we
started to add the contents of kotlin-reflect into the resulting jar if
-include-runtime is specified. Apparently kotlin-reflect doesn't work
without some services in META-INF/services/, which didn't satisfy the
condition for inclusion. The existing test didn't catch that because
loading class annotations does not always lead to those services being
loaded.
2021-02-10 12:05:36 +01:00
Alexander Udalov
3dfd2a95fa
Minor, do not output "Not changed" for generated FIR checkers on each build
2021-02-10 12:04:40 +01:00
Dmitriy Novozhilov
1216b33593
[Test] Move extracting JVM_TARGET to provideConfigurationKeys
2021-02-10 13:02:07 +03:00
Dmitriy Novozhilov
606ae45f5f
[Test] Replace remaining KOTLIN_CONFIGURATION_FLAGS directives with specific ones
2021-02-10 13:02:06 +03:00
Dmitriy Novozhilov
3ee5665746
Parse compiler configuration for android tests using new test infrastructure
2021-02-10 13:02:05 +03:00
Dmitriy Novozhilov
a0007bf244
Add analysisFlags of LanguageVersionSettings to toString() method
2021-02-10 13:02:04 +03:00
Dmitriy Novozhilov
7e59e083d3
[Test] Make some functions of environment configurators public
...
This is needed for using those methods from android tests
2021-02-10 13:02:03 +03:00
Dmitriy Novozhilov
24d6853ead
[Test] Cleanup JvmEnvironmentConfigurator
2021-02-10 13:02:01 +03:00
Dmitriy Novozhilov
a932f69b8a
[Test] Don't pass MockProject to environment configurators
2021-02-10 13:02:00 +03:00
Jinseong Jeon
bd37badf29
FIR checker: add diagnostics for backing fields
2021-02-10 12:29:34 +03:00
Mikhail Glukhikh
a88b82d8ff
Rewrite nasty code with if without else in elvis RHS
2021-02-10 12:19:59 +03:00
Yahor Berdnikau
7a9315e6b6
Fix KaptWithoutKotlincTask task tries to get wrong properties.
2021-02-10 10:15:58 +01:00
Andrey Zinovyev
48ec227aaf
[KAPT] Suppress resolve error in annotation procssing
...
#KT-33223
2021-02-10 10:59:46 +03:00
Ilya Chernikov
d64f7dd8c7
Revert "Add :kotlin-scripting-compiler.test to modules with disabled -Werror flag"
...
This reverts commit 21f022de
2021-02-10 08:33:15 +01:00
Ilya Chernikov
79b4b18e25
[minor] fix warnings in the script compiler and tests
2021-02-10 08:32:11 +01:00
Dmitry Petrov
d0f26abd18
JVM_IR KT-44798 don't generate multiple stubs with same signature
2021-02-10 09:09:28 +03:00
Vladimir Dolzhenko
9afe8a0a39
Make checker tests independent of plugin version
...
Relates to #KT-37702 #KTI-433
2021-02-09 22:52:17 +01:00
Ilya Chernikov
09ea4116e4
Implement forced script configuration reloading API for plugins
...
#KT-43288 fixed
2021-02-09 20:33:18 +00:00
Mikhael Bogdanov
2673261b10
Use proper jvmArgs syntax, remove -FailOverToOldVerifier from last configurations
...
`FailOverToOldVerifier` support is removed from JDK 16
2021-02-09 18:51:26 +01:00
Ilya Kirillov
c54354f348
FIR: fix memory leak from ConeIntegerLiteralTypeImpl via static NUMBER_TYPE
...
ConeClassLikeType has a cachedExpanded type which has a strong ref to FirSession
2021-02-09 17:15:46 +01:00
Ilya Kirillov
ede5fef39c
FIR IDE: fix memory leak in symbols by firBuilder
2021-02-09 17:15:45 +01:00
Ilya Kirillov
cf3defbc9c
FIR IDE: add more KDoc to HLApplicator stuff
2021-02-09 17:15:44 +01:00
Ilya Kirillov
2554065ae9
FIR IDE: forbid resolve in HLApplicator/HLApplicabilityRange/HLPresentation
2021-02-09 17:15:43 +01:00
Ilya Kirillov
7ab9583102
FIR IDE: add KDoc for HLApplicabilityRange
2021-02-09 17:15:42 +01:00
Ilya Kirillov
91e135888d
FIR IDE: introduce HLSpecifyExplicitTypeForCallableDeclarationIntention and HLRedundantUnitReturnTypeInspection
2021-02-09 17:15:41 +01:00
Ilya Kirillov
a6f76399e2
FIR IDE: introduce infrastructure for HL based inspections & intentions
2021-02-09 17:15:40 +01:00
Ilya Kirillov
5cefad1ab3
FIR: use GeneratorsFileUtil for checkers-component-generator
2021-02-09 17:15:38 +01:00
Ilya Kirillov
4cf863e054
FIR: simplify PositioningStrategy checkers generator
2021-02-09 17:15:38 +01:00
Ilya Kirillov
21ac83aba0
FIR: rename Diagnostic to DiagnosticData in checkers generators to avoid conflict with existing Diagnostic class
2021-02-09 17:15:37 +01:00
Ilya Kirillov
cf56c59ca2
Fix binary incompatibility of createRemoveModifierFromListOwnerFactory
2021-02-09 17:15:35 +01:00
Ilya Kirillov
8fc6e50dd1
FIR IDE: allow specify position to insert directive in IgnoreTests
2021-02-09 17:15:35 +01:00
Ilya Kirillov
b2d51dc455
FIR: Update diagnostics list after rebase
2021-02-09 17:15:34 +01:00
Ilya Kirillov
fe9c0e584f
FIR IDE: update test data
2021-02-09 17:15:33 +01:00
Ilya Kirillov
e269b1d19d
FIR IDE: temporary mute failing tests
2021-02-09 17:15:32 +01:00
Ilya Kirillov
d72a2d39da
FIR IDE: ignore not passing quickfixes tests
2021-02-09 17:15:31 +01:00
Ilya Kirillov
6c81d9848d
FIR IDE: introduce ChangeReturnTypeOnOverrideQuickFix
2021-02-09 17:15:31 +01:00
Ilya Kirillov
9304056901
FIR IDE: add quick fix tests
2021-02-09 17:15:30 +01:00
Ilya Kirillov
5d32cb0daf
FIR IDE: add remove modifier quick fixes
2021-02-09 17:15:29 +01:00
Ilya Kirillov
c87e6c6a87
FIR IDE: fix finding containing declaration for constructor param
2021-02-09 17:15:29 +01:00