Mikhail Glukhikh
2af9efa4a0
Fix failing test (related to KT-28381, KT-28382 commits)
2018-11-23 15:43:39 +03:00
Mikhail Glukhikh
d59ea4c087
Move member to companion object: reformat
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
88cea0a88c
Navigation to implementation: do not try to find expect enum inheritors
...
Before this commit, expect enum could find actual enum entries
as its implementation, now it cannot.
#KT-28206 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
5502d2de6a
Fix KNPE in "Move member to companion" for expect class #KT-28383 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
41b75346fe
Forbid "introduce backing property" for expect classes #KT-28382 Fixed
2018-11-23 15:35:19 +03:00
Mikhail Glukhikh
10cc4959cc
Forbid "move property to constructor" for expect classes #KT-28381 Fixed
2018-11-23 15:35:18 +03:00
Andrey Uskov
f960ed9a46
Fix gradle-api version in bunch 173 (KT-27337)
2018-11-23 13:43:52 +03:00
Andrey Uskov
8fc005d8fd
Versions of components were moved from versions.gradle.kts to versions.properties in order to avoid unnecessary buildscript recompilation
...
#KT-27337 Fixed
2018-11-23 13:26:12 +03:00
Nikolay Krasko
d2b0ccd341
Restrict index search to declarations visible from Java
...
Fix KotlinStdLibInJavaCompletionTestGenerated.testList
Regression after KotlinShortNamesCache rewrite.
2018-11-23 01:59:15 +03:00
Nikolay Krasko
b79f8ff8fa
Fix completion tests after "cast required" color change (KT-18089)
...
#KT-18089 Fixed
2018-11-23 01:59:14 +03:00
Toshiaki Kameyama
d06b04f025
Add intention to convert SAM lambda to anonymous object #KT-25718 Fixed
2018-11-23 01:05:42 +03:00
Andrey Uskov
eedb69b5e4
Improve diagnostics in GradleInspectionTest
2018-11-22 20:18:03 +03:00
Ilya Gorbunov
cff32e46bb
Provide expect declarations for String.startsWith/endWith overloads
...
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Mikhail Zarechenskiy
b48614df47
Add test for class literals on inline classes
...
#KT-28361 Obsolete
2018-11-22 18:10:41 +03:00
Mikhail Zarechenskiy
7a9fb3ca26
[NI] Fix coercion to Unit for explicitly specified type argument
...
#KT-25424 Fixed
2018-11-22 18:10:39 +03:00
Mikhail Zarechenskiy
c6712ff861
[NI] Correctly compute definitely not null type for intersection one
...
{ T : Any? & Foo & Bar? }!! -> { T!! & Foo & Bar }
Also, fix bug with loosing non-representative number type.
For example, for type { Byte & SomeType } we lost type `Byte` because
`getDefaultPrimitiveNumberType` returns null for it
Fixes #KT-28334 for NI
2018-11-22 18:10:37 +03:00
Mikhail Zarechenskiy
aa224558bd
Convert and simplify IntersectionTypeConstructor
2018-11-22 18:10:35 +03:00
Mikhail Zarechenskiy
8340bff113
Rename .java to .kt for IntersectionTypeConstructor
2018-11-22 18:08:30 +03:00
Toshiaki Kameyama
f1a0cefde0
Convert concatenation to template: remove 'toString()' call #KT-6025 Fixed
2018-11-22 15:55:32 +03:00
Toshiaki Kameyama
825d1d8b35
Extract 'isToString()' function to Utils
2018-11-22 15:55:32 +03:00
Nikolay Krasko
a0c25c7a87
Revert running AS in internal mode
...
Patch isn't needed anymore, because it was resolved in Android Studio.
Reverts: 11bcd84f57
2018-11-22 13:07:58 +03:00
Nikolay Krasko
dfa0ca1192
Some better colours for unmatched elements (KT-18089)
...
Platform requires a single color for both selected/not-selected item and
so colour selection isn't easy (see https://youtrack.jetbrains.com/issue/IDEA-191959
for details)
#IDEA-191959 Fixed
2018-11-22 13:07:57 +03:00
Mikhail Glukhikh
d50c4d7211
Fix failing IR tests because of CCE in WrappedValueParameterDescriptor
...
In previous commits, renderValueParameter began to calculate its
containing declaration. However, WrappedValueParameterDescriptor
assumes that parent of IrParameter is IrFunction, which is not true
for dispatch receiver parameters. The correct fix would be not to create
WrappedValueParameterDescriptor for dispatch receivers at all and use
WrappedReceiverParameterDescriptor instead. In this fix, I just moved
parameter' containing declaration calculation inside specific option
which is usually false, thus hiding the found problem.
2018-11-22 13:03:05 +03:00
Andrey Uskov
22830ebbf8
Disable irrelevant importing tests in AS 3.3 and 3.4
2018-11-22 12:52:04 +03:00
Andrey Uskov
ef6aae0f4a
Migrate importing tests to new configuration management
2018-11-22 12:51:47 +03:00
Andrey Uskov
903a048fcd
Enabled tests for gradle 4.9
2018-11-22 12:51:33 +03:00
Andrey Uskov
0fd9e06f8a
Fix import tests after KT-27832
2018-11-22 12:51:20 +03:00
Nikolay Krasko
9a79f43a50
Restore support for 173 branch
2018-11-22 11:25:56 +03:00
Nikolay Krasko
3e11fc1824
Extract common pattern in KotlinShortNamesCache and more arrays reuse
2018-11-22 11:25:55 +03:00
Nikolay Krasko
175ed533ee
Implement another method in KotlinShortNamesCache with processor
2018-11-22 11:25:53 +03:00
Nikolay Krasko
98c6b6837a
Rewrite fetching methods in KotlinShortNamesCache with processor
2018-11-22 11:25:50 +03:00
Nikolay Krasko
25fff006ef
Minor: rearrange and add regions in KotlinShortNamesCache
2018-11-22 11:25:48 +03:00
Nikolay Krasko
001d4875c8
Rewrite fetching fields in KotlinShortNamesCache with processor
2018-11-22 11:25:47 +03:00
Nikolay Krasko
21ea17b398
Rewrite processClassesWithName with processors
2018-11-22 11:25:45 +03:00
Nikolay Krasko
0ffec69d12
Use processors in KotlinShortNamesCache and remove deprecated methods
2018-11-22 11:07:05 +03:00
Dmitry Petrov
7dd906db44
KT-28324 More exact startOffset for function/constructor declarations
...
Function/constructor declaration start offset is the start offset of the
corresponding declaration token, if available.
2018-11-22 10:09:31 +03:00
Sergey Rostov
dfe662364d
JPS, minor: remove unused parameter
2018-11-22 08:40:32 +03:00
Sergey Rostov
f70d01f657
Fix updating complementary files map in case of compilation errors
...
#KT-27868 Fixed
Previously given dirtyFiles was removed from complementaryFilesMap
exactly on call of clearComplementaryFilesMapping. This causes fail
of next build in case of compilation error of previous build on JPS
(since complementary files not known on second build). The right way
to do it is removing (replacing) them only after successful
build.
This was working on Gradle since Gradle rebuilds whole module (project)
in case of build error.
2018-11-22 08:40:32 +03:00
Sergey Rostov
cc9892a27d
JPS: Add tests for mpp complementary files tracking after build error (KT-27868)
2018-11-22 08:40:32 +03:00
Sergey Rostov
84d6c1df5a
Add assertion for overwriting common sources flag
...
Wrong flag state causes compilation errors for optional expectation
(this flag is used to pass -Xcommon-sources)
2018-11-22 08:40:32 +03:00
Sergey Rostov
5a25d3ef58
Workaround for KT-28099 Duplicated dependency to common module
...
Duplicated dependencies causes duplicated source roots which in turns
causes duplicated files dirty state tracking.
2018-11-22 08:40:31 +03:00
Nicolay Mitropolsky
daef6f09b9
183: IdeaKotlinUastResolveProviderService.kt.183 compilation fix
2018-11-21 18:55:07 +03:00
Nicolay Mitropolsky
ebefcd476f
183: CliKotlinUastResolveProviderService.kt.183 compilation fix
2018-11-21 18:12:44 +03:00
Mikhail Glukhikh
914620fd1f
FIR: introduce status & status transformer (no override resolve)
...
So #KT-24021 Fixed
2018-11-21 18:04:15 +03:00
Mikhail Glukhikh
65d89a61bf
FIR: constructor refactoring, now there are callable members
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
a07b9a70f7
FIR builder: do not generate implicit types for getters
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
dadc028884
FIR: support delegated types in secondary constructors
...
So #KT-24088 Fixed
2018-11-21 18:04:14 +03:00
Mikhail Glukhikh
c06b0efdfa
FIR: add implicit primary constructors, add delegated types to them
...
So #KT-24088 In Progress
2018-11-21 18:04:14 +03:00
Simon Ogorodnik
1c6490a1be
FIR: Fix resolution of type parameter in ext property receiver
...
Also cleanup FirTypeResolveTransformer
2018-11-21 18:04:14 +03:00
Simon Ogorodnik
6bca2d1045
FIR: Get rid of delegation in resolved imports
...
This prevents strange visitors behaviour
2018-11-21 18:04:14 +03:00