Dmitry Petrov
ae7f60a96e
Update IR testData after rebase on master
2018-02-28 10:35:13 +03:00
Dmitry Petrov
b206bf199f
Add type operand symbol for type operator expression
2018-02-28 10:35:13 +03:00
Dmitry Petrov
e89047d2cc
Generate super classes and overridden functions in proper scope
...
Such references require proper scope so that local symbols are bound.
Example:
```
fun <T> outer() {
abstract class ALocal<S : T> {
abstract fun bar()
}
class Local<S : T> : ALocal<S>() {
override fun bar() {}
}
}
```
Here local classes have type parameters with upper bounds depending on
function type parameters, and members overriding members in other local
classes.
2018-02-28 10:35:13 +03:00
Dmitry Petrov
8fef0f0535
Make IrDeclaration#parent a var
2018-02-28 10:35:13 +03:00
Dmitry Petrov
02f01efaac
Update testData
2018-02-28 10:35:13 +03:00
Dmitry Petrov
d29a47ec7f
Generate references to superclasses
2018-02-28 10:35:13 +03:00
Dmitry Petrov
e5295d0f78
Generate references to overridden declarations as a separate pass
...
NB currently it relies on overriddenDescriptors in a FunctionDescriptor,
thus maybe incorrect for transformed declarations.
2018-02-28 10:35:13 +03:00
Dmitry Petrov
9570b64953
Add 'parent' to IrDeclaration, initialize it with a hack (for migration)
2018-02-28 10:35:13 +03:00
Mikhail Glukhikh
24622c0139
Fix two broken tests (missing actions)
2018-02-28 10:31:27 +03:00
Mikhail Glukhikh
dd106cb65c
Add braces: use CommentSaver to save/restore comments
...
Related to KT-16332
2018-02-27 18:25:38 +03:00
Toshiaki Kameyama
4726b44371
Add braces to 'if' statement: save/restore comments correctly
...
So #KT-16332 Fixed
2018-02-27 18:25:22 +03:00
Mikhail Glukhikh
b436ee6e19
Replace some of RESOLVED_CALL & REFERENCE_TARGET usages to resolveToCall
2018-02-27 18:24:55 +03:00
Anton Bannykh
a7d980a890
JS: use Mocha + NodeJs instead of Karma + PhantomJs to run stdlib tests (again)
2018-02-27 16:41:00 +03:00
Mikhail Glukhikh
a3f88165cd
Make add / remove labeled return: extract 'getParentLambdaLabelName'
...
Related to KT-20439
2018-02-27 14:47:11 +03:00
Mikhail Glukhikh
86e6f3c5e3
Make add / remove labeled return working for hierarchical blocks
...
Related to KT-20439
2018-02-27 14:47:10 +03:00
shiraji
59f6dc07cf
Implement intention to add labeled return to last expression in a lambda
...
So #KT-20439 Fixed
2018-02-27 14:47:04 +03:00
shiraji
769e28519e
Implement intention to remove labeled return from last lambda expression
...
So #KT-20439 Fixed
2018-02-27 14:46:50 +03:00
Nicolay Mitropolsky
35ce30aedc
Uast: better reports for failed method conversions in KotlinUClass
2018-02-27 11:23:04 +03:00
Nicolay Mitropolsky
795516269d
Uast: don't run resolve if not inside KtFile
2018-02-27 11:22:40 +03:00
Dmitry Petrov
8fbdf52d34
Chars are not promoted to Int on comparisons
2018-02-27 10:09:17 +03:00
Dmitry Petrov
4bb6c61a5a
Don't generate enum entry initializers for 'expect enum class'
2018-02-27 10:08:12 +03:00
Nikolay Krasko
4c7e46cbf8
Support prefix and suffix in Kotlin injection with comments and annotations (KT-23005)
...
#KT-23005 Fixed
2018-02-26 18:42:59 +03:00
Nikolay Krasko
9026582352
Minor: rename file
2018-02-26 18:42:58 +03:00
Nikolay Krasko
c5fc195754
Refactoring: move collectAllModuleInfosFromIdeaModel function
2018-02-26 18:42:58 +03:00
Nikolay Krasko
60af145170
Refactoring: move package ../caches/resolve/lightClasses -> ../caches/lightClasses
2018-02-26 18:42:58 +03:00
Nikolay Krasko
08a46c1396
Refactoring: move idea source modules classes to caches/project package
2018-02-26 18:42:58 +03:00
Nikolay Krasko
287ad512fb
Refactoring: extract project structure caches to separate package
2018-02-26 18:42:57 +03:00
Nikolay Krasko
a67ae0bf9f
Refactoring: remove defaults values
2018-02-26 18:42:57 +03:00
Nikolay Krasko
9b8e550f3b
Refactoring: move util files
2018-02-26 18:42:57 +03:00
Nikolay Krasko
931dec9cd8
Refactoring: move MapPsiToAsmDesc.kt to lightClasses package
2018-02-26 18:42:57 +03:00
Nikolay Krasko
47f4c79204
Reformat caches package
2018-02-26 18:42:57 +03:00
Stanislav Erokhin
77b146a51a
Minor. Fixed output path for builtIns generator
2018-02-26 17:58:06 +03:00
Ilya Gorbunov
0f828a5107
Update paths of the moved sources for building the documentation
2018-02-26 17:11:12 +03:00
Ilya Gorbunov
5c0cc5f799
Move deprecated kotlin-runtime and reduced runtime for tests into stdlib
...
Rename mock-runtime-for-test project to kotlin-stdlib:jvm-minimal-for-test
2018-02-26 17:11:11 +03:00
Ilya Gorbunov
c796e5338b
Move runtime.jvm sources to stdlib/jvm/runtime
...
Update path in kotlin-runtime
Update path in kotlin-mock-runtime-for-tests
2018-02-26 17:11:10 +03:00
Ilya Gorbunov
00b23a0fe9
Rearrange kotlin-stdlib-js library sources
...
Move kotlin.* api inside kotlin directory.
Update copyright paths.
2018-02-26 17:11:08 +03:00
Simon Ogorodnik
57e47d1830
Propose convert to string template as inspection more frequent
2018-02-26 12:11:18 +03:00
Zalim Bashorov
4c15642e2c
Add missed references to license/README.md
2018-02-26 12:09:28 +03:00
Nicolay Mitropolsky
be961b458d
make "IDEA Ultimate" run-configuration use -P intellijUltimateEnabled
2018-02-26 11:21:38 +03:00
Pavel V. Talanov
cf6fd4da81
Completion: prevent lookup elements from being duplicated correctly
...
This code prevents completion items from being submitted several times for the same descriptors
But some contributors actually do contribute extra items for already processed descriptors
Fixes a problem introduced in 1796d40118
2018-02-22 20:32:54 +01:00
Pavel V. Talanov
10f6d65e03
IdeStubIndexService: do not index annotations without name
...
Fixes NPE after changes introduced in 8f8cbfcfa5
2018-02-22 20:29:00 +01:00
Alexey Tsvetkov
d7644559eb
Perform a test lookup before build
...
#KT-22535 fixed
#KT-22995 fixed
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov
7c9412a0b3
Avoid instanciating LookupStorage when clearing it
...
#KT-22535
#KT-22995
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov
140ba0681a
Throw BuildDataCorruptedException when lookup operation cannot be performed
...
That is expected to force a rebuild (but it does not seem to be the case
in case of parallel build).
#KT-22535
#KT-22995
2018-02-22 18:21:37 +03:00
Alexey Tsvetkov
8ab9366ae5
Synchronize access to lookup storage in JPS
...
Storage operations are synchronized already,
but BuildDataManager.getStorage is not synchronized,
so maybe it is possible to create multiple LookupStorage
instances.
#KT-22535
#KT-22995
2018-02-22 18:21:37 +03:00
Nicolay Mitropolsky
3a609a9472
Assertions to catch EA-114080
2018-02-22 12:51:50 +03:00
Denis Zharkov
5a591be25f
Convert SwitchCodegen to Kotlin, prettify and optimize codegen
2018-02-22 11:42:18 +03:00
Natalia Selezneva
806faf86b7
Tests: allow file modification during highlighting for scripts
2018-02-22 10:00:21 +03:00
Natalia Selezneva
de76d75f03
Drop caches for synthetic files when dependencies changed
2018-02-22 10:00:15 +03:00
Natalia Selezneva
8367aea624
Run update dependencies task in background
2018-02-22 10:00:10 +03:00