Ilya Kirillov
879abdafc2
Preserve comments in shorten references processor for qualified expressions
2019-05-31 00:25:52 +03:00
Ilya Kirillov
39dfa631bf
New J2K: do not ignore long expressions in LiftReturnOrAssignmentInspection in post-processing
2019-05-31 00:25:52 +03:00
Ilya Kirillov
8fa9b9923f
Allow removing trivial property accessor body when the accessor can not be fully deleted in redundant getter/setter inspections
2019-05-31 00:25:52 +03:00
Ilya Kirillov
95a6f59c62
New J2K: preserve declarations order & place init sections to the end
2019-05-31 00:25:52 +03:00
Ilya Kirillov
ab26061b5e
New J2K: fix testData
2019-05-31 00:25:52 +03:00
Ilya Kirillov
3a98b49556
New J2K: fix type in ast conversion name
2019-05-31 00:25:51 +03:00
Ilya Kirillov
621ae80f1d
New J2K: rewrite getters and setters conversion in post-processing
...
KT-31700 fixed
2019-05-31 00:25:51 +03:00
Ilya Kirillov
63434fc46c
New J2K: separate inspection like processings from others & remove boilerplate code in processings
2019-05-31 00:25:51 +03:00
Ilya Kirillov
d6e07ca693
New J2K: calculate type correctly for vararg parameter in nullability analysis
2019-05-31 00:25:51 +03:00
Ilya Kirillov
419f6c80de
New J2K: filter out noinspection comments in resulted code
2019-05-31 00:25:51 +03:00
Ilya Kirillov
e04c984e48
New J2K: move all literal conversion stuff to LiteralConversion & add octal literals conversion
2019-05-31 00:25:51 +03:00
Ilya Kirillov
60b2b81e9c
New J2K: preserve comments in DefaultArgumentsConversion
2019-05-31 00:25:51 +03:00
Ilya Kirillov
eed55a11ca
New J2K: preserve comments in BuiltinMembersConversion
2019-05-31 00:25:51 +03:00
Alexander Udalov
ceecbfdcea
Minor, fix kapt test data on comments
...
ClassFileToSourceStubConverter relies on JvmDeclarationOrigin which is
used in the codegen, and that origin has slightly changed for the
synthetic '$annotations' method (see
`MemberCodegen.generateSyntheticAnnotationsMethod`) in e9b50157
2019-05-30 19:30:46 +02:00
Ting-Yuan Huang
74e8c7c1c5
JVM_IR: generate default constructor
...
Quoted from https://kotlinlang.org/docs/reference/classes.html
"On the JVM, if all of the parameters of the primary constructor have
default values, the compiler will generate an additional parameterless
constructor which will use the default values. This makes it easier to
use Kotlin with libraries such as Jackson or JPA that create class
instances through parameterless constructors."
2019-05-30 18:53:27 +02:00
Georgy Bronnikov
440f327e74
JVM_IR: fix a typo in EnumWhenLowering
2019-05-30 19:04:31 +03:00
Georgy Bronnikov
d7dacef9af
JVM_IR: correct RetentionPolicy annotation generation
2019-05-30 19:04:31 +03:00
Dmitry Savvinov
4f6d0ca1d1
Update missed tesdata
...
Was missed after 7daf12fa6d
2019-05-30 18:58:12 +03:00
Mikhail Zarechenskiy
0bc4022242
Revert "Temporary remove failing test for new inference about SAM conversions"
...
This reverts commit 5bcd974944 .
Fixed in 7c4101e2
#KT-29561 Obsolete
2019-05-30 16:45:31 +03:00
Nikolay Krasko
465d21e6c5
Don't process invalid files in ReturnHintLinePainter (EA-141914)
2019-05-30 16:37:16 +03:00
Nikolay Krasko
7d00106813
Allow resolve on collecting reference data in copy-paste
2019-05-30 16:37:16 +03:00
Nikolay Krasko
a9329c5284
Minor refactoring in ModuleData tracker
2019-05-30 16:37:16 +03:00
Alexander Udalov
e72388895b
JVM IR: invoke codegen after lowering all files in the module
...
Inspired by discussion in #2316
2019-05-30 13:28:31 +02:00
Igor Chevdar
b060acf01d
KotlinMangler: added IrType.isInlined
...
Added possibility to specify when IrType corresponds to an inline class
2019-05-30 14:12:03 +03:00
Dmitry Savvinov
8e579855f2
[Testing] Support test roots in dependencies.txt
2019-05-30 12:32:39 +03:00
Dmitry Savvinov
f011c21c94
[Testing] Introduce ProjectResolveModel and parsing it from txt
2019-05-30 12:32:39 +03:00
Dmitry Savvinov
a59daafbb4
[Testing] Add more flexiblity to AbstractMultiModuleTest
...
- Preserve root names
- Provide an ability to transform copied file
- Allow passing several implemented modules in AbstractMultiModuleTest
2019-05-30 12:32:39 +03:00
Dmitry Savvinov
7daf12fa6d
[Testing] Remove duplicate logic, clean-up CheckerTestUtil
2019-05-30 12:32:39 +03:00
Dmitriy Novozhilov
bcbbf4aba3
[NI] Fix replacing original in PropertyDescriptor
2019-05-30 11:01:10 +03:00
Simon Ogorodnik
88a9349f32
Use intersection of star projection type-param bounds instead of type
2019-05-30 09:52:02 +03:00
Yan Zhulanow
b48e0a89c5
Debugger: Hide synthetic '$completion' variable in Kotlin variables mode
2019-05-30 15:27:11 +09:00
Yan Zhulanow
bfb1d53ddf
Debugger: Run control flow on code fragments (KT-30120)
2019-05-30 15:27:11 +09:00
Yan Zhulanow
35c63db9bc
Debugger: Support coroutineContext for suspend functions without suspend calls (KT-24829)
2019-05-30 15:27:11 +09:00
Yan Zhulanow
b5f5149fc0
Add tooltip for Kotlin variables mode button (KT-30730)
2019-05-30 15:27:11 +09:00
Yan Zhulanow
c17c15db42
Debugger: Fix memory leak in conditional breakpoints (KT-31195)
2019-05-30 15:27:10 +09:00
Yan Zhulanow
999d5ce3bb
Debugger: Fix VariableAsFunctionResolvedCall evaluation
2019-05-30 15:27:10 +09:00
Yan Zhulanow
4a90e9d0ab
Debugger: Handle exceptions in async stack trace handler more gracefully (EA-141924)
2019-05-30 15:27:10 +09:00
Yan Zhulanow
0a6a811c57
Debugger: Fix lvalue evaluation (KT-11663, KT-19980)
2019-05-30 15:27:10 +09:00
Yan Zhulanow
bb0bc8a38a
Debugger: Fix toTypedArray() evaluation (KT-8579)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
9ae8a8abf1
Debugger: Fix method evaluation on arrays (KT-11706)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
38dba20e24
Debugger: Allow super calls (KT-20560)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
cbbb3c35da
Debugger: Fix evaluation for local extension functions (KT-13188)
2019-05-30 15:27:09 +09:00
Yan Zhulanow
8b3c22cea6
Debugger: Support hypothetical synchronized methods in the main class
2019-05-30 15:27:08 +09:00
Yan Zhulanow
ee0daae2ab
Debugger: Support synchronized blocks and functions in evaluator (KT-11888)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
55bbcc4601
Generate line numbers for closing '}' in 'init {}' blocks (KT-12787)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
a385b4d9d0
Debugger: Fix evaluation on value parameter name position (KT-30976)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
577b3e096f
Debugger: Fix test (lines were changed because of the updated copyright)
2019-05-30 15:27:08 +09:00
Yan Zhulanow
ae7550c5af
Move out JVM debugger functionality
2019-05-30 15:27:07 +09:00
Dmitriy Novozhilov
5843336d42
Fix compiler errors in nj2k detected after changes in NI
2019-05-29 16:55:07 +03:00
Mads Ager
dc5f4ab240
Add annotation to static methods on DefaultImpls.
2019-05-29 15:37:09 +02:00