Valentin Kipyatkov
53e3a67a7f
Better formatting in some cases
2016-08-16 17:38:02 +03:00
Valentin Kipyatkov
fe7ddbcc0d
More informative intention action text
2016-08-16 17:38:02 +03:00
Valentin Kipyatkov
bbb6ef4fbc
Check that "break" and "continue" do not produce false errors when using analyzeInContext
2016-08-16 17:38:02 +03:00
Valentin Kipyatkov
49f2c5f657
Sometimes shorter code with filterTo, mapTo and flatMapTo
2016-08-16 17:38:01 +03:00
Valentin Kipyatkov
744186402d
One more case when mapTo can be generated
2016-08-16 17:38:01 +03:00
Valentin Kipyatkov
db0028c11e
AddToCollectionTransformation checks that the result collection type cannot be changed
2016-08-16 17:38:01 +03:00
Valentin Kipyatkov
f51c5a19dd
Basic support for "add" to collection used inside the loop
2016-08-16 17:38:01 +03:00
Valentin Kipyatkov
d3721e9462
flatMapTo supported
2016-08-16 17:38:00 +03:00
Valentin Kipyatkov
f3c760607b
Consistent use of term "input variable" instead of "working variable"
2016-08-16 17:38:00 +03:00
Valentin Kipyatkov
df08493337
Moved check about old working variable not needed into common place
2016-08-16 17:38:00 +03:00
Valentin Kipyatkov
22fb397662
Initial support for "+=", filterTo and mapTo for collections
2016-08-16 17:38:00 +03:00
Valentin Kipyatkov
ac46684592
Supported initialization with assignment instead of declaration
2016-08-16 17:37:59 +03:00
Valentin Kipyatkov
1fe84b8a25
Refactoring
2016-08-16 17:37:59 +03:00
Valentin Kipyatkov
bd6b38962d
Elvis operator supported for all cases of find
2016-08-16 17:37:59 +03:00
Valentin Kipyatkov
79800492a9
firstOrNull() ?: ... supported
2016-08-16 17:37:59 +03:00
Valentin Kipyatkov
14ef93a797
More relaxed checks for any() with return
2016-08-16 17:37:58 +03:00
Valentin Kipyatkov
ff0bb4fbb8
Generating more simple construct instead of "let" in some cases
2016-08-16 17:37:58 +03:00
Valentin Kipyatkov
a760ef3665
Generating "firstOrNull()?.let {...}"
2016-08-16 17:37:58 +03:00
Valentin Kipyatkov
fba9b123dd
More cases supported for "any"
2016-08-16 17:37:58 +03:00
Valentin Kipyatkov
c0f3ab59ab
Supported "lastOrNull" and "any" without break in the loop
2016-08-16 17:37:57 +03:00
Valentin Kipyatkov
0243efd8b5
Added comments
2016-08-16 17:37:57 +03:00
Valentin Kipyatkov
fcbf68617e
Merging subsequent .filter()'s
2016-08-16 17:37:57 +03:00
Valentin Kipyatkov
6dbd9c944a
Refactored API to allow merging ResultTransformation with any kind of previous transformation
2016-08-16 17:37:57 +03:00
Valentin Kipyatkov
d7762778a2
Cannot transform to flatMap if old working variable used in the nested loop
2016-08-16 17:37:56 +03:00
Valentin Kipyatkov
50bd766992
Minor changes after code review
2016-08-16 17:37:56 +03:00
Valentin Kipyatkov
863040700e
Check for continue-statement of the inner loop!
2016-08-16 17:37:56 +03:00
Valentin Kipyatkov
8c498af3d8
Checking that smart casts will not be broken by conversion
2016-08-16 17:37:56 +03:00
Valentin Kipyatkov
978fc468fa
Temporary fix
2016-08-16 17:37:55 +03:00
Valentin Kipyatkov
12b1a99a6a
Initial implementation of loop-to-call-chain intention
2016-08-16 17:37:55 +03:00
Valentin Kipyatkov
c50cf13611
KtExpression.analyzeInContext uses correct context when analyzing return's
2016-08-16 17:37:55 +03:00
Pavel V. Talanov
340fe82fa0
Minor, KotlinScriptConfigurationManager: add TODO
2016-08-16 16:49:09 +03:00
Pavel V. Talanov
10660f35d7
Add tests for script configuration machinery, namely ScriptTemplateProvider EP
...
Test highlighting and navigation depending on provided script definition
2016-08-16 16:45:59 +03:00
Pavel V. Talanov
b4cb4f9191
KotlinLanguageInjector: only run for project or library source
2016-08-16 16:45:58 +03:00
Kirill Rakhman
e6d76a9b71
Allow suppressing warnings for secondary constructor (KT-12627)
...
(cherry picked from commit 41cf868)
#KT-12627 Fixed
2016-08-16 13:04:42 +03:00
Nikolay Krasko
7a4d20b4cf
Make quick evaluate work on receiver in qualified expressions (KT-13269)
...
(cherry picked from commit 970ac5a)
#KT-13269 Fixed
2016-08-16 13:04:41 +03:00
Michael Bogdanov
7325baa06a
Fix for KT-13374: CompilationException: Inline function call with anonymous object implementing an interface by delegation
...
#KT-13374 Fixed
2016-08-16 10:47:01 +03:00
Natalia Ukhorskaya
fca5834557
Eval4J: loadClass should return prepared class, otherwise ClassNotPreparedException fails in invokeMethod
...
#KT-12641 Fixed
2016-08-16 09:08:34 +03:00
Natalia Ukhorskaya
f6bb70aad1
Debugger: allow to evaluate 'this' and fields in java files
2016-08-16 09:08:34 +03:00
Alexander Udalov
18887f8bec
Rename CompanionObjectMapping.hasMappingToObject -> isMappedIntrinsicCompanionObject
2016-08-15 19:41:47 +03:00
Alexander Udalov
7b8ee5fba1
Add test case for obsolete issue
...
#KT-13172 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov
bd88b0941d
Fix incorrect unsupported error on synthetic extension call on LHS of ::
...
#KT-13271 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov
9dc7e90e12
Disable some reflection tests on Android
2016-08-15 19:41:47 +03:00
Alexander Udalov
4e8f88d580
Refactor comments in SpecialFiles
2016-08-15 19:41:47 +03:00
Alexander Udalov
5b1ee13db8
Make KClasses for primitives equal to KClasses for wrapper types
...
Both primitive int and wrapper type java.lang.Integer are represented by the
single type kotlin.Int in Kotlin, so inequality between the corresponding
KClasses was confusing here. To keep the old behavior, one may call 'k1.java ==
k2.java' instead of `k1 == k2`
#KT-13462 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov
3efa738bc0
Fix NPE on .companionObjectInstance for built-in classes
...
#KT-13370 Fixed
2016-08-15 19:41:47 +03:00
Alexander Udalov
611899e9d3
Minor, make CompanionObjectMapping a singleton
2016-08-15 19:41:47 +03:00
Stanislav Erokhin
85a951db52
Fixed exception AssertionError: Illegal resolved call to variable with invoke
...
#KT-13330 Fixed
#KT-13349 Fixed
2016-08-15 19:24:17 +03:00
Kirill Rakhman
926deebff5
Format spaces around !is and !in (KT-13314)
...
#KT-13314 Fixed
2016-08-15 16:21:01 +03:00
Mikhail Glukhikh
b53cb91e88
Do not suggest "Replace infix with safe call" inside conditions or binary / unary expressions #KT-13328 Fixed
2016-08-15 15:42:27 +03:00
shiraji
42969271ab
Fix problem with appending literal to variable omitting braces #KT-13336 Fixed
2016-08-15 15:13:40 +03:00