Toshiaki Kameyama
849d18669b
Replace assert boolean with assert equality: do not report when arguments type are not subtype
...
#KT-30761 Fixed
2019-04-11 18:36:50 +03:00
Toshiaki Kameyama
93d854362b
Convert to anonymous function: do not name argument when lambda is Java method
...
#KT-30613 Fixed
2019-04-11 18:34:24 +03:00
Dmitriy Novozhilov
033d7262a2
[NI] Fix reporting smartcast diagnostics for intersection types
...
#KT-30826 Fixed
2019-04-11 18:10:59 +03:00
Toshiaki Kameyama
47b1ea7fa4
SimplifiableCallChainInspection: replace .sorted().first() with .min()
...
#KT-30725 Fixed
2019-04-11 18:07:06 +03:00
Toshiaki Kameyama
e4b10a156e
SimplifiableCallChainInspection: fix tests
2019-04-11 18:07:06 +03:00
Alexander Gorshenev
ce6cda631d
IrDelegatedProperty and IrDelegatedPropertyReference were missing from the serialization
2019-04-11 17:50:53 +03:00
Yan Zhulanow
e07821ca75
Debugger: Assume a class name from the coroutine metadata may be invalid (KT-30934)
2019-04-11 17:46:21 +03:00
Georgios Andrianakis
f11c5a335a
KT-30343 Add new Quarkus preset to all-open compiler plugin
2019-04-11 17:46:21 +03:00
Yan Zhulanow
7ecd88aae3
AllOpen: Allow to specify presets in the Gradle plugin
2019-04-11 17:46:20 +03:00
Ting-Yuan Huang
4f64a52d33
Kapt: Fix NPE on JDK 10-11 (KT-26203)
...
Gradle worker throws NPE when the parameter to the runnable is null.
This patch works that around by passing URL spec as String instead of
File?
2019-04-11 17:46:19 +03:00
Yan Zhulanow
2314ca7a94
Debugger: Fix evaluation of lambda arguments (KT-10636)
2019-04-11 17:46:19 +03:00
Yan Zhulanow
fa5705cc68
Debugger: Fix missing read action in error reporting
2019-04-11 17:46:18 +03:00
Yan Zhulanow
4f6c8d2323
Fix type renderers for Kotlin (KT-18263, KT-18247)
2019-04-11 17:46:18 +03:00
Yan Zhulanow
15db1c8a8f
Debugger: Do not validate line breakpoints for irrelevant classes (KT-30714)
2019-04-11 17:46:17 +03:00
Yan Zhulanow
2c5e8dab23
Debugger: Do not require a SourcePosition to exist
2019-04-11 17:46:16 +03:00
Yan Zhulanow
81a7f73db5
Refactoring: Inline getInvokePolicy()
2019-04-11 17:46:16 +03:00
Yan Zhulanow
b26f746514
Minor: Rename KotlinEvaluatorBuilder to match the superclass name
2019-04-11 17:46:15 +03:00
Yan Zhulanow
e31f195716
Minor: Remove unnecessary '!!'
2019-04-11 17:46:15 +03:00
Yan Zhulanow
fb3efd2d78
Debugger: Fix completion for synthetic '_field' extension properties (KT-23586)
2019-04-11 17:46:14 +03:00
Yan Zhulanow
0d04dc6f99
Debugger: Allow to touch experimental stuff from evaluator (KT-30216)
2019-04-11 17:46:13 +03:00
Yan Zhulanow
b7ea4ccc7e
Debugger: Hide call-site 'this' in inline functions in Kotlin variables mode (KT-30610)
2019-04-11 17:46:13 +03:00
Yan Zhulanow
6dcaa64793
Pill: Fix platform source file location
2019-04-11 17:46:12 +03:00
Yan Zhulanow
9e99bca322
Pill: Fix artifact generation
2019-04-11 17:46:12 +03:00
Mikhael Bogdanov
5b49043939
Delete KotlinTestUtils.java.as32 and KtParsingTestCase.java.as32
2019-04-11 13:26:06 +02:00
Caleb Brinkman
c84c33cbd6
KT-30816 BasicJvmScriptEvaluator incorrect arg order
...
https://youtrack.jetbrains.com/issue/KT-30816
Change BasicJvmScriptEvaluator to pass constructor parameters in the
correct order, include tests for scripts w/ provided properties, and
implicit receiver, and both.
2019-04-11 10:17:55 +00:00
Dmitry Gridin
31ce6e1800
Minor: remove redundant qualifier names in QuickFixRegistrar
2019-04-11 15:13:17 +07:00
Dmitry Gridin
86a3daa302
Fix "Remove redundant qualifier name" for KtUserType with type parameter
...
#KT-30916 Fixed
2019-04-11 15:13:17 +07:00
Dmitry Gridin
f3faae7bb4
Fix 'Redundant qualifier name' warnings & refactoring in idea
2019-04-11 15:13:17 +07:00
Dmitry Gridin
646f325f57
Fix false positive "Redundant qualifier name" for functions with a receiver
...
#KT-30879 Fixed
2019-04-11 15:13:17 +07:00
Mark Punzalan
1b703448d3
Handle reversed() in ForLoopsLowering.
...
We get the info for the underlying progression and invert it. For
progressions whose last bound was open (e.g., `until` loop), the
reversed version will have an open first bound and so the induction
variable must be incremented first.
Also unified the way of extracting HeaderInfo out of changed calls
(e.g., `indices.reversed()`), and fixed declaration parents in
ForLoopsLowering.
2019-04-11 08:54:55 +02:00
Mikhael Bogdanov
3d1b6fb83c
Minor. Fix AS32 compilation
2019-04-10 21:16:42 +02:00
pyos
b24690b35b
Remove a redundant field
2019-04-10 20:51:46 +02:00
pyos
73bd683af1
Store InstructionAdapter, not ExpressionCodegen, in PromisedValue
2019-04-10 20:51:46 +02:00
pyos
96e2eb6fa1
Move PromisedValue to a separate file
2019-04-10 20:51:46 +02:00
pyos
e249c3c594
Return a stripped version of StackValue from ExpressionCodegen
2019-04-10 20:51:46 +02:00
pyos
c5f6be4282
Remove import of StackValue.* to better see use sites
2019-04-10 20:51:46 +02:00
pyos
a9bece9baa
Allow intrinsics to be partial
...
Also, add an overridable invoke() method that skips the Callable step.
2019-04-10 20:51:46 +02:00
pyos
6e44b22340
Remove an unused non-IR IntrinsicMethod.toCallable
2019-04-10 20:51:46 +02:00
pyos
31eb542476
Return an immaterial value from Boolean.not
2019-04-10 20:51:46 +02:00
pyos
31c7183781
Return immaterial values from comparison intrinsics
2019-04-10 20:51:46 +02:00
pyos
9aff1cefb4
Make materialization of StackValues explicit
2019-04-10 20:51:46 +02:00
pyos
2356f72fd4
Make ExpressionCodegen a bit shorter in general
2019-04-10 20:51:46 +02:00
pyos
89cb31c387
Refactor try-catch covering computation
2019-04-10 20:51:46 +02:00
Mads Ager
a8e2893494
JVM_IR: Output EnclosingMethod attribute.
...
This works in many cases, however, it is incomplete since there
are cases where classes are extracted to top-level and therefore
reparented. Therefore, we lose the information about the function
class are nested inside.
2019-04-10 20:50:03 +02:00
Ilya Kirillov
8a94c66ce7
KT-29568, KT-26550: show "Convert Java File to Kotlin File" only for Java files
...
#KT-29568 fixed
#KT-26550 fixed
2019-04-10 21:29:18 +03:00
Ilya Kirillov
c7e08f9e5d
New J2K: Fix existing test data
2019-04-10 21:29:18 +03:00
Ilya Kirillov
ae3920d535
New J2K: Finish DefaultArgumentsConversion
2019-04-10 21:29:18 +03:00
Ilya Kirillov
008e7a5add
New J2K: do not use some keyword removing processings due to incorrect formatting after it
2019-04-10 21:29:18 +03:00
Ilya Kirillov
54d6fc846b
New J2K: Add file range support for nullability analysis
2019-04-10 21:29:18 +03:00
Ilya Kirillov
33a42733f5
New J2K: make function parameters which is used as spread value argument to be not null
2019-04-10 21:29:18 +03:00