Sergey Mashkov
42de429565
IDL2K: add property to control deployment
2018-03-30 15:13:42 +03:00
Mikhail Zarechenskiy
0632bbbed0
Nullability of intersection type should be determined by supertypes
...
Intersection types cannot be nullable as is because of special rules for subtyping
2018-03-30 14:51:07 +03:00
Mikhail Zarechenskiy
aebcb61402
Resolve elements in chain of qualifier expression without expected type
...
Consider call chain `foo.bar.baz()` which has expected type `Int`
Elements `foo` and `bar` doesn't have expected type `Int`,
this is especially important in NI, because we use expected type for
candidate applicability
2018-03-30 14:51:07 +03:00
Natalia Selezneva
3d73786e98
Highlight scripts according to ScriptLocation annotation in ScriptDefinition
2018-03-30 14:43:17 +03:00
Natalia Selezneva
15914dac86
Add ScriptExpectedLocations annotation to script-runtime.
...
It describes where script file can be found.
2018-03-30 14:43:17 +03:00
Natalia Selezneva
27f1eb1e13
Do not reload dependencies for scripts that wasn't recently touched
2018-03-30 14:43:17 +03:00
Natalia Selezneva
f52441d64e
Do not show "Gradle Project needs to be imported" notification for gradle script if only spaces are added
2018-03-30 14:43:17 +03:00
Alexey Sedunov
b0a99c7945
Move Out Of Object Intention: Fix assertion error
...
#KT-22983 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
14b1bdf627
Rename: Fix renaming of backquoted property accessors
...
#KT-23298 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
2104a0fa2b
Extract Function: Drop extra space in modifier list
...
#KT-23274 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
0a0043a851
Convert Function to Property: Forbid for properties with both initializer and getter
...
#KT-23293 Fixed
2018-03-30 12:37:29 +03:00
Alexey Sedunov
43b4a496e3
Rename: Increase precedence of RenameSyntheticDeclarationByReferenceHandler
...
Otherwise it's not applicable references to Java declarations
#KT-20241 Fixed
2018-03-30 12:37:29 +03:00
Anton Bannykh
a514c0f515
JS IR: initial lowerings reuse
2018-03-29 20:32:10 +03:00
Nikolay Krasko
6adf7eaf04
Check stubs consistency in decompiler tests
2018-03-29 19:49:02 +03:00
Nikolay Krasko
dbab5bcc58
Delete bundled Kotlin plugin from different kind of AS jar/zip
2018-03-29 19:49:01 +03:00
Nikolay Krasko
70d236cb8d
Always configure "idea.home.path" system variable
...
When TestLoggerFactory is initialized in tests it checks that variable
and it it's not present uses classpath to search for logger configuration.
If this search is unsuccessful a lot of exceptions are written to log:
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:96)
at com.intellij.testFramework.TestLoggerFactory.reconfigure(TestLoggerFactory.java:67)
2018-03-29 19:49:00 +03:00
Alexander Udalov
5d9348eea1
Sanitize compiler version for version requirement checks
...
Strip everything after (and including) the first '-' character.
The previous approach of skipping the checks if "SNAPSHOT" is in the
version, is subsumed by the new one because "1.2-SNAPSHOT" now becomes
"1.2" with regards to the version requirement checks, which allows the
compiler to use the 1.2-only API
2018-03-29 17:12:18 +02:00
Alexander Podkhalyuzin
b78869ecfc
Fixed aliased imports cache #KT-23430 Fixed
2018-03-29 16:05:00 +02:00
Nikolay Krasko
6a71f5bd2c
Restore JUnit3RunnerWithInners version for JPS and delegate pill to it
2018-03-29 14:14:34 +03:00
Nikolay Krasko
9a831bf7dd
Collect statistics for inlay parameter options
2018-03-29 14:14:34 +03:00
Nikolay Krasko
8d4fa8f3e8
Stop running tests from inner classes in JUnit3RunnerWithInners (KT-23234)
...
Running tests as part of parent class produced test names on
TeamCity that were different from test names obtained when inner classes
were executed first. And it looks like test order execution in Gradle
depends on file walker and file system.
#KT-23234 Fixed
2018-03-29 14:14:34 +03:00
Nikolay Krasko
bf8c7075bc
Don't spam to error log from kapt3 successful tests
2018-03-29 14:14:33 +03:00
Dmitry Jemerov
9516c638ea
Use more efficient file type check (avoid identifying file type by file)
2018-03-29 13:11:37 +02:00
Dmitry Jemerov
85ebe97597
Avoid unnecessary collection copy (KT-23384)
2018-03-29 13:11:36 +02:00
Dmitry Jemerov
6f1881b9ff
Import reference at offset uses existing import fix (KT-23235)
...
If we have a valid autoimport fix at given offset, don't recalculate
variants; use existing ones
2018-03-29 13:11:36 +02:00
Dmitry Jemerov
5b04d99eeb
Return null script if stub tells us file is not a script
2018-03-29 13:11:36 +02:00
Roman Artemev
68e47a9d60
Implement basic IR -> JS class translation
2018-03-29 13:26:04 +03:00
Mikhail Zarechenskiy
e70162771d
[NI] Fix exception from IDE completion
...
Fake arguments that are created for completion might have missing PSI parts (see `DummyArgument`)
2018-03-29 13:13:39 +03:00
Mikhail Glukhikh
05db4b3ccf
Optimization: LeakingThisInspection
2018-03-29 11:39:10 +02:00
Mikhail Glukhikh
5e9ca6f466
Optimization: AddVarianceModifierInspection
2018-03-29 11:39:09 +02:00
Mikhail Glukhikh
34de241154
Add inspection to detect public API with implicit type
2018-03-29 11:39:01 +02:00
Dmitry Jemerov
6a619d0aa5
Ensure that multiplatform Gradle task runner runs first
...
In order to have effect, the runner needs to be registered before the
main Gradle runner, which also has order="first" in plugin.xml.
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
8f19e95bd0
Set SDK from JVM module when running JUnit tests for common module
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
6bee25cad2
Reformat
2018-03-29 09:50:34 +02:00
Dmitry Jemerov
20cd193030
Delete remains of external annotations support from compiler
2018-03-29 09:45:07 +02:00
Zalim Bashorov
9349b9bc67
[JS BE] Fix the crash on compound operations with a qualified call on left side
...
#KT-22001 Fixed
2018-03-28 22:49:09 +03:00
Alexander Udalov
c3b6abfb1f
Minor, add javadoc to KotlinBuiltIns.isBuiltIn
2018-03-28 19:48:50 +02:00
Zalim Bashorov
4d742c5266
Add more tests to JS IR whitelist and regenerate tests
2018-03-28 20:33:23 +03:00
Zalim Bashorov
0aa0ffc6fd
[JS IR BE] Add generating JS AST for more IR elements:
...
* string concat
* get local value
* set local variable
* block
* composite block
2018-03-28 20:33:22 +03:00
Zalim Bashorov
7ae28a806b
[JS IR BE] Add generating JS AST for "while" and "do-while"
2018-03-28 20:33:22 +03:00
Zalim Bashorov
52e2fb7a4e
[JS IR BE] Add generating JS AST for "when"
2018-03-28 20:33:22 +03:00
Zalim Bashorov
d46bba1521
[JS IR BE] Support must of kinds of constants except Long and Char
2018-03-28 20:33:22 +03:00
Mikhail Zarechenskiy
81ac3a4f2f
Add ability to enable new inference in the platform
2018-03-28 18:32:28 +03:00
Ilmir Usmanov
4070f13e26
Do not generate beforeInlineMarker on tailrec jump
...
Before this change, the codegen used to generate beforeInlineMarker
in order to spill variables later. However, since the tailrec call
is replaced with jump, no afterInlineMarker is generated, leading to
inconsistency of these markers. Thus, the spilling fails.
This change disables generating of beforeInlineMarker.
#KT-21521: Fixed
2018-03-28 15:50:24 +03:00
Ilmir Usmanov
58bac6882d
Fix transforming of coroutine's create when it is suspend lambda with receiver
...
Unlike ordinary lambdas suspend lambdas has create method which invokes
the constructor of the lambda object (continuation).
The inliner could not cope with this.
The previous change fixed the case of suspend lambda without receiver.
This change adds support of suspend lambdas with receiver.
#KT-21605: Fixed
2018-03-28 15:48:16 +03:00
Toshiaki Kameyama
e96b5f3117
Fix false positive in redundant companion reference #KT-23435 Fixed
2018-03-28 13:27:45 +02:00
Alexander Udalov
3bc7eefad9
Regenerate tests
2018-03-28 12:55:00 +02:00
Mikhail Glukhikh
7e711eaf30
Memory optimization: CanBeParameterInspection
2018-03-28 12:04:58 +02:00
Mikhail Glukhikh
491eeb3d6f
Optimization: OverridingDeprecatedMemberInspection
2018-03-28 12:04:56 +02:00
Mikhail Glukhikh
b8da1d67d5
Optimize UsePropertyAccessSyntaxInspection
2018-03-28 12:04:55 +02:00