Commit Graph

57120 Commits

Author SHA1 Message Date
Alexander Udalov fec8dbf6df JVM IR: do not use AsmUtil.putJavaLangClassInstance
To get rid of the last external usage of IrTypeMapper.kotlinTypeMapper
2019-08-27 19:27:46 +02:00
Alexander Udalov 23eb6daae9 JVM IR: remove MethodSignatureMapper.mapImplementationOwner 2019-08-27 19:27:46 +02:00
Alexander Udalov aea9642ea0 JVM IR: implement MethodSignatureMapper.mapToCallableMethod directly
Instead of calling enormously complicated
KotlinTypeMapper.mapToCallableMethod, where most of special cases are
handled in the IR backend via lowerings.
2019-08-27 19:27:46 +02:00
Alexander Udalov e0823e20c7 JVM IR: do not use AsmUtil.genToString
AsmUtil.genToString requires an instance of KotlinTypeMapper and calls
KotlinTypeMapper.mapToCallableMethod inside, which (in subsequent
commits) we're getting rid of in the IR backend
2019-08-27 19:27:46 +02:00
Alexander Udalov bf40b72451 JVM IR: remove unneeded usages of MethodSignatureMapper.mapToCallableMethod 2019-08-27 19:27:46 +02:00
Alexander Udalov 0f1a15daf1 JVM IR: add lowering to remove calls to KFunction{n}.invoke 2019-08-27 19:27:46 +02:00
Alexander Udalov 2b4424b564 JVM IR: replace function accesses in multi-file parts
Any access to a function from a multi-file part needs to be replaced
with the access to the corresponding public method (if it exists) from
the facade class. Note that this has no immediate effect because we use
KotlinTypeMapper for mapping calls, and it understands that a call to a
function from the part must actually be generated into a call to the
function from the facade in the bytecode. This commit merely changes the
IR to better reflect what's generated in the final bytecode, and to be
able to use simplified IR-based method signature mapping instead of the
legacy KotlinTypeMapper in the future.
2019-08-27 19:27:45 +02:00
Zalim Bashorov 21b2487290 Minor: add an additional message for further investigation EA-141821 2019-08-27 18:19:18 +03:00
Simon Ogorodnik b78ba71224 [FIR] Set mem-limit 8g 2019-08-27 17:24:56 +03:00
Simon Ogorodnik 6a9fb46985 [FIR] Make fir modularized test depends on dist 2019-08-27 17:24:45 +03:00
Simon Ogorodnik 5ef4a01a45 [FIR] Fix module qualified names 2019-08-27 17:24:35 +03:00
Simon Ogorodnik 9338a3c086 [FIR] Filter out common modules 2019-08-27 17:23:40 +03:00
Simon Ogorodnik b99d9e0e0b [FIR] Disambiguate module names 2019-08-27 17:23:03 +03:00
Simon Ogorodnik 9530389583 [FIR] Group multiple pass logs into one 2019-08-27 17:23:01 +03:00
Simon Ogorodnik 4c246faddb [FIR] Fix redeclaration 2019-08-27 17:23:00 +03:00
Simon Ogorodnik 8c31a0be07 [FIR] Add filter param 2019-08-27 17:22:59 +03:00
Simon Ogorodnik 2ca1e5c8c7 [FIR] Pass properties to test 2019-08-27 17:22:58 +03:00
Simon Ogorodnik 96627fc1ae [FIR] Add parameters to modularized tests 2019-08-27 17:22:57 +03:00
Dmitry Gridin e9b2e74b15 escapeXML: fix bunch for 183 2019-08-27 18:06:06 +07:00
Dmitry Gridin ea02d0c632 ExpectActualUtils: repairSuperTypeList should consider type parameters 2019-08-27 17:26:11 +07:00
Dmitry Gridin 03141be11e ExpectActualUtils: update repairAnnotationEntries for more cases with annotations 2019-08-27 17:26:11 +07:00
Dmitry Gridin ba0ba3422d CreateExpectedFix: rename isCorrectAndHaveNonPrivate to isCorrectAndHaveNonPrivateModifier 2019-08-27 17:26:10 +07:00
Dmitry Gridin 3c6da0bfe6 TypeAccessibilityChecker: rename existingFqNames to existingTypeNames and add comments 2019-08-27 17:26:10 +07:00
Dmitry Gridin 531f695404 CreateExpectedFix: remove recursive call from findAndApplyExistingClasses 2019-08-27 17:26:10 +07:00
Dmitry Gridin 35d64f85f8 TypeAccessibilityCheckerImpl: explicitParameters change return type to Sequence 2019-08-27 17:26:10 +07:00
Dmitry Gridin aa135bc505 TypeAccessibilityCheckerImpl: move visibility check for KtNamedDeclaration to outside 2019-08-27 17:26:10 +07:00
Dmitry Gridin eaa28fd4ed CreateExpect: fix build for a33 2019-08-27 17:26:10 +07:00
Dmitry Gridin 27d7ee8518 TypeAccessibilityChecker: move to idea-analysis module 2019-08-27 17:26:10 +07:00
Dmitry Gridin 56a7445660 CreateExpect: should prefer type aliases
#KT-32571 Fixed
2019-08-27 17:26:10 +07:00
Dmitry Gridin 5928a36fa2 CreateExpect: should save receiver annotations
#KT-32694 Fixed
2019-08-27 17:26:09 +07:00
Dmitry Gridin 42ef9d634a ExpectActualUtils: merge generateFunction with generateProperty to generateCallable & remove old checker 2019-08-27 17:26:09 +07:00
Dmitry Gridin 90b82c96eb TypeAccessibilityChecker: fix incorrectTypes for descriptor 2019-08-27 17:26:09 +07:00
Dmitry Gridin 1c98cb763e addRemoveModifier: shouldn't add extra new line
#KT-26635 Fixed
2019-08-27 17:26:09 +07:00
Dmitry Gridin 0458a22f78 TypeAccessibilityChecker: fix case with unresolved type params 2019-08-27 17:26:09 +07:00
Dmitry Gridin 4ed56908af CreateExpect: add actual modifier to original class if needed 2019-08-27 17:26:09 +07:00
Dmitry Gridin 73ae993d81 TypeAccessibilityChecker: add more tests 2019-08-27 17:26:09 +07:00
Dmitry Gridin 84d167b7bd TypeAccessibilityChecker: add logs for tests 2019-08-27 17:26:08 +07:00
Dmitry Gridin 7c850e44d2 CreateExpectedFix: add escaping for error text 2019-08-27 17:26:08 +07:00
Dmitry Gridin 3617f3d247 TypeAccessibilityChecker: fix callable with upper bound 2019-08-27 17:26:08 +07:00
Dmitry Gridin 46fefde09c ExpectActualUtils: introduce TypeAccessibilityChecker
#KT-28537 Fixed
#KT-28538 Fixed
#KT-28549 Fixed
#KT-28620 Fixed
#KT-31433 Fixed
#KT-31475 Fixed
#KT-32642 Fixed
#KT-32768 Fixed
#KT-33150 Fixed
2019-08-27 17:26:08 +07:00
Dmitry Gridin d1b33485a4 ExpectActualUtils: rename checkTypeInSequence to incorrectTypesInSequence & change return type 2019-08-27 17:26:08 +07:00
Dmitry Gridin 18f0bbe8f1 QuickFixMultiModule: change tests structure 2019-08-27 17:26:08 +07:00
Dmitry Gridin 02fd137cec SimpleTestClassModel: add deep field 2019-08-27 17:26:08 +07:00
Dmitry Gridin 65ce4aed1a TestGenerationDSL: cleanup code 2019-08-27 17:26:07 +07:00
Dmitry Gridin bddf768d59 CreateExpect: fix case with parameters in constructor without var/val 2019-08-27 17:26:07 +07:00
Dmitry Gridin 1b718761b2 AbstractQuickFixMultiModuleTest: support multiline errors SHOULD_FAIL_WITH 2019-08-27 17:26:07 +07:00
Dmitry Gridin 3f7c983f04 CreateExpectFix: fix selection for primary constructor 2019-08-27 17:26:07 +07:00
Dmitry Gridin 4a049b9b01 GenerateTests: cleanup code 2019-08-27 17:26:07 +07:00
Dmitry Gridin 1748906d9a ExpectActualUtils: should add annotations 2019-08-27 17:22:16 +07:00
Dmitry Gridin 5e60ea2272 ExpectActualUtils: should remove override 2019-08-27 17:22:16 +07:00