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
Alexander Udalov
e0989caf46
Load built-ins from module dependencies in JVM compiler
...
Introduce a new method KotlinClassFinder#findBuiltInsData, which is only
implemented correctly in the JvmCliVirtualFileFinder because it's only used in
the compiler code at the moment.
Introduce JvmBuiltInsPackageFragmentProvider, the purpose of which is to look
for .kotlin_builtins files in the classpath and provide definitions of
built-ins from those files.
Also exclude script.runtime from compilation because, as other excluded
modules, it has no dependency on the stdlib and is no longer compilable from
the IDE now, because it cannot resolve built-ins from anywhere
2016-10-26 16:31:09 +03:00
Alexander Udalov
0b59c71340
Add mock runtime to KotlinJpsBuildTest test cases
...
To prevent test failures once the JVM compiler stops loading definitions of
built-in declarations from itself and starts to rely on their presence in the
library, that the compiled source code depends on
2016-10-26 16:31:07 +03:00
Alexander Udalov
88add3e06d
Get rid of some KotlinBuiltIns#getBuiltInsModule usages
...
There will be no separate module for built-ins soon, they will be resolved as
normal dependencies
2016-10-26 16:31:06 +03:00
Alexander Udalov
484b0e36fb
Add KotlinBuiltIns#isBuiltIn, use it instead of other utilities
2016-10-26 16:31:05 +03:00
Alexander Udalov
4effe42f1d
Use JvmResolveUtil#createContainer in KotlinOverloadTest and KotlinOverridingTest
2016-10-26 16:31:05 +03:00
Alexander Udalov
8a5c8da757
Simplify module configuration and built-ins dependency in some tests
...
- In tests on built-ins with no sources, just call
JvmResolve.analyze(environment) and inspect the resulting module
- In AbstractLocalClassProtoTest, create container via
TDAForJVM.createContainer
- Inline single module container creation into AbstractDiagnosticsTest
2016-10-26 16:31:04 +03:00
Alexander Udalov
2b34d62848
Extract superclass from FunctionClassScope and CloneableClassScope
2016-10-26 16:31:03 +03:00
Alexey Sedunov
416569c2d2
Introduce Type Parameter: Disable shortcut (to avoid interference with IntelliJ API Watcher plugin)
2016-10-26 15:03:45 +03:00
Alexey Sedunov
dc9c988287
Kotlin Facet: Fix serialization/deserialization
2016-10-26 15:03:44 +03:00
Alexey Sedunov
3fcdda2805
Kotlin Facet: Refactor TargetPlatform to sealed class. Move settings-related classes to top level
2016-10-26 15:03:43 +03:00
Alexey Sedunov
ea13456bba
Kotlin Facet: Add compiler settings to facet configuration
2016-10-26 15:03:42 +03:00
Alexey Sedunov
03f4d9f574
Kotlin Facet: Add extension point for compiler/stdlib version info with implementations for Maven and Gradle project models
2016-10-26 15:03:42 +03:00
Alexey Sedunov
e0285b9955
Kotlin Facet: Extract VersionInfo class and getVersionInfo() utility function
2016-10-26 15:03:41 +03:00
Alexey Sedunov
37286d5b06
Kotlin Facet: Add API version setting
2016-10-26 15:03:40 +03:00