Nikolay Krasko
db89c3fc3f
Refactoring: extract ResolutionFacadeImpl to separate file
2016-07-26 17:17:06 +03:00
Nikolay Krasko
57f3a86686
Debug string for project resolution facade
2016-07-26 17:17:06 +03:00
Nikolay Krasko
3c8e35fa3a
Remove psi modification tracker from pooled threads (EA-86038, KT-13163)
...
IDEA 163 explicitly forbids such tricks with exceptions.
#KT-13163 Fixed
2016-07-26 17:17:06 +03:00
Nikolay Krasko
a0226f3fd8
Run SafeDeleteFix without run action to avoid "Refactorings should not be started inside write action" (KT-13207)
...
#KT-13207 Fixed
2016-07-26 13:38:24 +03:00
Nikolay Krasko
6ea5171f60
Add "Studio" as version separator (KT-13184)
...
#KT-13184 Fixed
2016-07-26 13:38:24 +03:00
Pavel V. Talanov
8a9de2a00f
Show all Kotlin annotations when browsing hierarchy of "java.lang.Annotation"
2016-07-26 11:42:09 +03:00
Pavel V. Talanov
84dae76bd9
Index enum classes as if they have "Enum" in supertypes
...
#KT-13057 Fixed
2016-07-26 11:42:08 +03:00
Pavel V. Talanov
8f006bd4aa
Add test for KT-13057 with infrastructure
2016-07-26 11:42:08 +03:00
Alexander Udalov
d945c33d5e
Move some members from OverrideResolver to OverridingUtil
2016-07-25 15:55:31 +03:00
Alexander Udalov
191f532675
Remove OverrideResolver#filterOutOverriding, simplify the only usage
2016-07-25 15:55:31 +03:00
Alexander Udalov
89c5799155
Move utilities used in IDE from OverrideResolver to descriptorUtils.kt
2016-07-25 15:55:31 +03:00
Alexey Sedunov
0a8490a068
Introduce Type Alias: Suggest initial name based on extracted type
2016-07-25 12:44:30 +03:00
Alexey Sedunov
0769d47f4b
Introduce Type Alias: Support type constructor extraction
2016-07-25 12:44:28 +03:00
Alexey Sedunov
b5828a5fa1
Refactoring: Allow multiple ElementKinds when choosing element to refactor
2016-07-25 12:44:26 +03:00
Alexey Sedunov
09d36291de
Misc: Update function/type alias signature preview upon changing checkbox state
2016-07-25 12:44:24 +03:00
Mikhail Glukhikh
30b0875b26
Merge pull request #906 from cypressious/make_val_private
...
Quickfix "Make primary constructor parameter a val" makes the val private now #KT-13187 Fixed
2016-07-25 09:46:42 +03:00
Mikhail Glukhikh
299097d112
KT-10903 Lambda to callable reference: use named arguments if needed, lift restriction about parameter default values
...
(cherry picked from commit 5232af5)
2016-07-25 09:40:34 +03:00
Dmitry Jemerov
a979c7e1d7
ugly fix for failing tests. without the string template, KotlinFilePathReferenceContributor injects a file reference into the string literal, and an unrelated intention (AddAnnotationIntention) tries to resolve it. resolving the reference caches the default contexts in FIleReferenceSet, which caches the order entries of a module in an OrderRootsCache. this creates VirtualFilePointers which are for some reason not disposed properly.
2016-07-23 21:18:26 +02:00
Kirill Rakhman
ce80f94830
Quickfix "Make primary constructor parameter a val" makes the val private now
...
Fixes #KT-13187
2016-07-23 14:32:25 +02:00
Yoshinori Isogai
8aaf28e240
KT-12887 Extend selection should select call's invoked expression ( #904 )
...
#KT-12887 fixed
2016-07-22 21:23:42 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
b6b2303aa7
Improve error message for inaccessible invisible_fake members
...
#KT-8989 Fixed
2016-07-22 18:13:40 +03:00
Alexander Udalov
9be219b69c
Check presence of dispatch receiver parameter in modifier checks
...
Also fix typo in "inapplicable infix" diagnostic message
2016-07-22 18:13:39 +03:00
Alexander Udalov
2a390155a9
Fix quotes in diagnostic messages
...
See 8316953259
2016-07-22 18:13:38 +03:00
Kirill Rakhman
5948b69679
AddConstModifierIntention: handle more edge cases #KT-13173 Fixed
...
(cherry picked from commit 4755596)
2016-07-22 18:07:14 +03:00
Nikolay Krasko
adbb07f30b
Do not fail on adding sources to libraries that can't be recognized (EA-73238)
...
It's valid situation when user in Gradle project had created ordinal Java module and wants to configure
it with Kotlin. We should add Gradle library to dependency but there's no need to configure sources for it.
2016-07-22 15:21:27 +03:00
Nikolay Krasko
0f4319de8e
Minor: fix warning
2016-07-22 15:21:27 +03:00
Nikolay Krasko
95d0604339
Evaluate getting text under read action (EA-82155, EA-82587)
2016-07-22 15:21:27 +03:00
Nikolay Krasko
3d0cfdf585
Don't fail if there's no modules in combobox with unconfigured modules (EA-76203)
...
Confirmed reproduction steps:
1. Open Kotlin gradle project (or do the sync) - it will be considered unconfigured until synchronisation is finished
2. Click configure and see Choose Configuration popup
3. Wait sync is finished
4. Click proposed configurator in popup
As all projects are considered configured now, single module selection will be empty
2016-07-22 15:21:27 +03:00
Alexander Udalov
6baf3ae737
Minor, inline LexicalScope.Companion.empty
2016-07-22 11:05:19 +03:00
Alexander Udalov
969ff43152
Merge CallableReferencesResolutionUtils.kt into DoubleColonExpressionResolver
2016-07-22 11:05:19 +03:00
Alexander Udalov
2fcd4e955a
Simplify code in callable reference resolution
2016-07-22 11:05:19 +03:00
Alexander Udalov
5a6237b357
Refactor resolution of double colon expression LHS
...
Try resolving the LHS only when it looks (PSI-wise) like it could represent a
type element. This, for example, allows "illegal selector" error to be reported
on weird expressions like '""?.""::class'.
Also remove expression text from the "illegal selector" diagnostic, it's not
needed and can screw up the error message if the text is too big
2016-07-22 11:05:19 +03:00
Mikhail Glukhikh
90c6868f9b
renderDataFlowValue() moved to test from completion
2016-07-21 21:15:31 +03:00
Mikhail Glukhikh
9001b9bcc0
DataFlowValue & DataFlowValueFactory major refactoring, get rid of DataFlowValue.id : Any?
...
Instead, DataFlowValue now requires IdentifierInfo implementation to be created
DataFlowValue is compared using IdentifierInfo
2016-07-21 21:15:05 +03:00
Mikhail Glukhikh
17a2a971c4
A pair of "Suppress" changed from CAST_NEVER_SUCCEEDS to UNCHECKED_CAST
...
(cherry picked from commit 2ac8a66)
2016-07-21 20:16:15 +03:00
Mikhail Glukhikh
82e69d9587
Remove setter parameter type inspection #KT-5771 Fixed
...
(cherry picked from commit 731a670)
2016-07-21 20:15:44 +03:00
Stanislav Erokhin
6556cde329
Introduce new type checker.
2016-07-21 16:07:16 +03:00
Stanislav Erokhin
8193032ffb
Refactoring. Separate KotlinTypeChecker to interface & Impl class.
2016-07-21 16:07:14 +03:00
Alexey Sedunov
e232905614
Fix compilation
2016-07-20 17:01:07 +03:00
Alexey Sedunov
ae06f01c95
Create from Usage: Approximate unresolvable types
...
#KT-7722 Fixed
(cherry picked from commit 917cd22)
2016-07-20 16:36:12 +03:00
Alexey Sedunov
a1e86e8bfa
Create from Usage: Show target class name in the text of "Create member" quick fix
...
(cherry picked from commit a51d3fc)
2016-07-20 15:39:19 +03:00
Alexey Sedunov
82bdd1e42b
Minor: Convert CallablePlacement to sealed class
...
(cherry picked from commit 47073b5)
2016-07-20 15:39:16 +03:00
Alexey Sedunov
e1f58c554d
Rename: Fix exception on property rename preview
...
(cherry picked from commit 7b54ad0)
2016-07-20 15:39:15 +03:00
Alexey Sedunov
1a13c21377
Create from Usage: Show receiver type in the text of "Create extension" quick fix
...
(cherry picked from commit c0d5df1)
2016-07-20 15:39:13 +03:00
Alexey Sedunov
79f73d3cc2
Minor: Fix compilation
...
(cherry picked from commit 5397e11)
2016-07-20 15:39:11 +03:00
Alexey Sedunov
2abcd17713
Create from Usage: Support "Create member/extension" corresponding to the extension receiver of enclosing function
...
#KT-10668 Fixed
(cherry picked from commit bc4c013)
2016-07-20 15:39:09 +03:00
Alexey Sedunov
49b6811b44
Create from Usage: Support "Create abstract function/property" inside an abstract class
...
#KT-7492 Fixed
(cherry picked from commit 75f6b7f)
2016-07-20 15:39:07 +03:00
Alexey Sedunov
3ba776fffa
Code Insight: Format generated declarations
...
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
2016-07-20 15:39:05 +03:00
Alexey Sedunov
a33f946c14
Override/Implement Members: Implement Members: Fix base member detection when abstract and non-abstract members with matching signatures are inherited from an interface
...
#KT-11115 Fixed
(cherry picked from commit a3a2e57)
2016-07-20 15:39:01 +03:00