Mikhail Glukhikh
53ea5a2dbb
Minor refactoring: if then to elvis
2016-10-28 15:00:55 +03:00
Mikhail Glukhikh
f3c25c728e
If then to elvis: no more allowed for if expressions with Unit result
2016-10-28 15:00:50 +03:00
Mikhail Glukhikh
8edd33ee92
If then to elvis: applied in IDEA, front-end & J2K modules
2016-10-28 15:00:21 +03:00
Mikhail Glukhikh
e7cef79709
If then to elvis: now not applicable for is with type unrelated to original #KT-14520 Fixed
2016-10-28 15:00:09 +03:00
Mikhail Glukhikh
87d265dc1b
If then to elvis: now not applicable for is with nullable type #KT-14545 Fixed
2016-10-28 15:00:04 +03:00
Mikhail Glukhikh
89e908dab5
If then to elvis: now not applicable for calls with nullable result #KT-14542 Fixed
2016-10-28 14:59:58 +03:00
Mikhail Glukhikh
f390b9159a
Minor refactoring: if then to elvis
2016-10-28 14:59:53 +03:00
Mikhail Glukhikh
7b316f72dc
Lambda to reference: correct handling of named arguments using resolved call #KT-14550 Fixed
2016-10-28 14:59:48 +03:00
Mikhail Glukhikh
7d242c5c77
Minor: surround with null check: partial analysis
2016-10-28 14:59:42 +03:00
Valentin Kipyatkov
046c55a7ac
Caching for PARTIAL_FOR_COMPLETION resolve too (because it's used not only in completion)
2016-10-28 09:47:27 +03:00
Valentin Kipyatkov
13ca110430
Refactoring
2016-10-28 09:47:26 +03:00
Valentin Kipyatkov
0fbbf1a340
Performance fix for postfix completion: 1. Don't use PARTIAL_FOR_COMPLETION resolve mode 2. Attempt to use resolve in physical file instead of synthetic one
2016-10-28 09:42:47 +03:00
Valentin Kipyatkov
8c99b0e64c
Performance fix for Import Member
2016-10-28 09:42:47 +03:00
Nikolay Krasko
d9ef8aa96f
Do nothing for disposed projects
2016-10-27 23:36:54 +02:00
Ilya Chernikov
2e03a6f1fd
Add script dependencies modification tracker, some optimizations
2016-10-27 23:36:54 +02:00
Simon Ogorodnik
3382ab3d9c
Fix for KT-14141: Go to Symbol shows Kotlin extensions from Java's point of view
2016-10-27 20:38:05 +03:00
Simon Ogorodnik
0462a3d3b6
Workaround KT-14531, Partial fix for KT-13600, KT-11620 J2K: Invalid conversion context on plain text pasting
...
For detailed info see KT-14531
2016-10-27 20:02:27 +03:00
Simon Ogorodnik
f8b7ce1011
Fix for KT-13695, KT-13159 J2K: Invalid conversion context setup for plain text pastes
...
Extending, Implementing, imports from paste target file previously not implemented
2016-10-27 20:02:26 +03:00
Simon Ogorodnik
b802ca0af5
Fix for non-resolving of KtReference, which getTargetDescriptors returning multiple descriptors to same element
2016-10-27 20:02:25 +03:00
Simon Ogorodnik
7c8fdc42b4
Fix for KT-12892 J2K: Wrong placing of comments when constructor converted to primary constructor & init
2016-10-27 20:02:24 +03:00
Simon Ogorodnik
b51f5c5bd9
Fix for KT-14248 J2K: Invalid constructor formatting after conversion
...
Caused by `\n\n long mLong = 0;` leading line breaks
2016-10-27 20:02:23 +03:00
Simon Ogorodnik
f1c371143c
Fix for KT-5312 J2K: Correct bit operations priority after conversion
...
Now `PolyadicExpression` breaks down to BinaryExpression`s
2016-10-27 20:02:23 +03:00
Simon Ogorodnik
1069257e95
Fix for KT-5410 J2K: someObject + "someString" should be converted to someObject.toString() + "someString"
...
Otherwise `+` operator will not resolve
2016-10-27 20:02:21 +03:00
Simon Ogorodnik
0cebcc9f3c
Fix for KT-12677. J2K: Invalid SAM constructor redundancy detection
...
Now all J2kPostProcessing's executing in fixed order, dependent on it index in J2kPostProcessingRegistrar._processings
2016-10-27 20:02:20 +03:00
shiraji
0b57d8eb49
Do not use "Remove redundant '.let' call" when receiver is used #KT-14390 Fixed
2016-10-27 19:10:14 +03:00
Anton Bannykh
6a1b0b9cbc
withNonLocalReturn.kt was disabled for a wrong reason; reported the actual issue and fixed the comment
2016-10-27 17:27:03 +03:00
Michael Bogdanov
fd2655fd4a
Bridge support
2016-10-27 16:43:02 +03:00
Michael Bogdanov
7989a0ff25
Use original descriptor on delegating to DefaultImpls
2016-10-27 16:43:01 +03:00
Michael Bogdanov
4cbc5cc958
Remove variables from frame on block leaving
2016-10-27 16:43:00 +03:00
Michael Bogdanov
afe0b8a0b6
Switch to general codegen in 'Bytecode tool window'
2016-10-27 16:41:15 +03:00
Mikhail Glukhikh
2130164d9b
EXTERNAL_DECLARATION_CANNOT_BE_ABSTRACT is now reported on property if accessor is external #KT-9297 Fixed
...
Also fixes EA-89227
2016-10-27 16:25:43 +03:00
Nikolay Krasko
e053b77ede
Test for "Code folding doesn't work in kotlin lambdas after some declatation" (KT-14411)
...
Fixed in previous commit
#KT-14411 Fixed
2016-10-27 14:26:12 +03:00
Nikolay Krasko
08d628537c
Assign trailing and preceding whitespaces to lambda block until the last comment in parser
2016-10-27 14:26:10 +03:00
Nikolay Krasko
0261385681
Report file name for getDefaultPlatform() information
2016-10-27 14:26:07 +03:00
Anton Bannykh
7ee3baa020
Replaced when appropriate 'TARGET_BACKEND: JVM' -> 'IGNORE_BACKEND: JS'. Enabled some succesfully working decompiledText tests.
2016-10-27 14:17:25 +03:00
Anton Bannykh
dc151c1d84
Implemented specifying specific ignored backend (e.g. '// IGNORE_BACKEND: JS' instead of '// TARGET_BACKEND: JVM')
2016-10-27 14:17:25 +03:00
Dmitry Jemerov
38a448ebbd
use a non-deprecated API
2016-10-27 12:50:39 +02:00
Michael Bogdanov
0910f166a5
Make default methods for inlineOnly and reified functions package private
2016-10-27 11:03:35 +03:00
Alexander Udalov
455fef90c0
Fix codefen test case by adding stdlib
2016-10-27 10:44:33 +03:00
Ilya Gorbunov
a6783534f0
Add required *.kotlin_builtins to classpath for stdlib tests
2016-10-26 21:41:54 +03:00
Alexander Udalov
c49c019250
Add option to restore fallback to compiler built-ins + resurrect Maven build
2016-10-26 19:02:31 +03:00
Anton Bannykh
a3566174d6
Support destructuring in lambda parameters (KT-14422) and skipping some components in a destructuring declaration (KT-14507).
2016-10-26 18:29:13 +03:00
Ilya Gorbunov
1c7196a1fb
Allow to reference internal API in stdlib tests
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
8d76617094
Merge ReversedViews tests in one file as they can all run now in JS.
...
Make SynchronizedLazyValTest jvm-only.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
badbcd08de
Annotate explicitly stdlib tests, which must be excluded from JS stdlib tests with @JvmVersion, do not use file naming convention, use preprocessor instead.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
baccac30fb
Annotate explicitly stdlib sources, which must be excluded from JS stdlib with @JvmVersion, do not use file naming convention.
2016-10-26 17:47:15 +03:00
Ilya Gorbunov
98f7c61333
Reuse JVM box tests for binary operations in JS, excluding those that can't pass now.
2016-10-26 16:36:09 +03:00
Ilya Gorbunov
19922135fd
JS: Add intrinsics for bitwise ops. #KT-13554
2016-10-26 16:36:07 +03:00
Ilya Gorbunov
62fb47d137
Introduce bitwise operations and/or/xor/inv for Byte and Short. #KT-13554
...
Annotate new bitwise operations with SinceKotlin.
2016-10-26 16:35:46 +03:00
Alexander Udalov
7f86ce0a20
Introduce fallback option to add built-ins in position manager test
...
In AbstractPositionManagerTest, built-ins could no longer be resolved because
JvmIDEVirtualFileFinder is used in IDE tests (even when the compilation is
called through JvmResolveUtil/GenerationUtils as in compiler tests), which is
not yet able to locate .kotlin_builtins files
2016-10-26 16:31:09 +03:00