Vyacheslav Gerasimov
543f59bf54
Add new quickfix for CanBePrimaryConstructorPropertyInspection
...
MovePropertyToConstructorIntention is used as quick fix
2017-03-24 17:38:52 +03:00
Mikhail Glukhikh
b5aa529901
Make inspection "lambda->reference" off by default #KT-17002 Fixed
2017-03-24 16:20:07 +03:00
Mikhail Glukhikh
b121990368
Don't suggest 'remove let' when 'it' is used multiple times
...
So #KT-16857 Fixed
2017-03-24 16:20:00 +03:00
Mikhail Glukhikh
4687a867c3
Anti-KNPE refactoring of RedundantSamConstructorInspection
...
So EA-84354 fixed
2017-03-24 16:19:47 +03:00
Mikhail Glukhikh
6f4ae2585b
Fix "surround with null check": place check correctly for unsafe call
...
So #KT-16928 Fixed
2017-03-24 16:19:32 +03:00
Mikhail Glukhikh
bbdcf19123
Fix "secondary constructor -> primary" in case of implicit super call
...
So #KT-16903 Fixed
2017-03-24 16:19:18 +03:00
Mikhail Glukhikh
0baae16601
Don't apply "object->lambda" if 'this' is used inside #KT-15250 Fixed
2017-03-24 16:19:04 +03:00
Mikhail Glukhikh
ca92ec0b7b
Fix "Specify explicit lambda signature" when no parameters exists
...
So #KT-15075 Fixed
2017-03-24 16:18:56 +03:00
Vyacheslav Gerasimov
f60a7ffab0
Add intentions to move property from/to primary constructor
...
#KT-4578 Fixed
2017-03-24 15:22:50 +03:00
Nikolay Krasko
5405c81106
Minor: remove warnings in KotlinDebuggerTestBase
2017-03-23 21:01:42 +03:00
Nikolay Krasko
dfd7b0f388
Delegate step into command to kotlin command provider first
2017-03-23 21:01:42 +03:00
Nikolay Krasko
2c4f702d50
Remove stored contexts in tests to avoid leaks
2017-03-23 21:01:42 +03:00
Nikolay Krasko
2aa1b19ec9
Replace CompilingEvaluatorUtils methods with ClassLoadingUtils
2017-03-23 21:01:42 +03:00
Ilya Chernikov
e59f6741c4
Move GradleScriptTemplatesProvider to the optional gradle part of "plugin.xml"
...
Fixes #KT-16649
2017-03-23 18:11:37 +01:00
Dmitry Jemerov
b24ce04dea
Convert IntentionTestGenerated to light fixture test case
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
5af423f1b4
Allow configuring kotlin.test in KotlinLightCodeInsightFixtureTestCase
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
036b87a001
KotlinJdkAndLibraryProjectDescriptor: J2K
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
1435f11a9f
KotlinJdkAndLibraryProjectDescriptor: rename to .kt
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
24bdf994a9
AbstractIntentionTest: J2K
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
68ec8b3077
AbstractIntentionTest: rename to .kt
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
199ce6706b
Convert AbstractConcatenatedStringGeneratorTest to light test case
...
Remove explicit library configuration; rely on
getProjectDescriptorFromFileDirective() instead.
2017-03-23 15:48:33 +01:00
Mikhail Glukhikh
1780f7c9a2
Put not-null original type as last possible smart cast target
...
This fixes muted tests testSmartCast (IDE highlighting) and
testNestedSealed (Diagnostics).
Together with commit 555b3f12 this makes #KT-15901 Fixed
2017-03-23 17:17:37 +03:00
Ilya Gorbunov
1cb4580380
Refactor: rename 'check' helper function with more descriptive name, remove 'var result'
2017-03-23 16:48:38 +03:00
Ilya Gorbunov
dce0da68c6
Cleanup: post-cleanup after deprecation cleanup in compiler
...
Replace `takeIf { !expr }` with `takeUnless { expr }`.
Cleanup redundant parethesis as in `listOf((expr))`.
Replace `listOf(expr)` with `expr.let(::listOf)` where the former caused significant indentation change.
2017-03-23 16:48:38 +03:00
Nikolay Krasko
e599688733
"Go to Type Declaration" for extension receiver and 'it' (KT-13013)
...
#KT-13013 Fixed
2017-03-23 13:37:06 +03:00
Nikolay Krasko
daaa59a1ad
Navigate to receiver from this in extension function (KT-16991)
...
#KT-16991 Fixed
#KT-13013 In Progress
2017-03-23 13:37:05 +03:00
Nikolay Krasko
9dfc92c55e
Navigate to lambda declaration from generated 'it' (KT-16992)
...
#KT-16992 Fixed
#KT-13013 In Progress
2017-03-23 13:37:05 +03:00
Nikolay Krasko
c976c3d909
Refactoring: extract common function (some usages were slightly changed)
2017-03-23 13:37:05 +03:00
Nikolay Krasko
84c473d800
Speed up debugger tests by replacing base output preprocessor
...
Avoid calling InetAddress.getLocalHost() that can be very slow.
Exact connection or disconnection string isn't relevant for tests
anyway.
2017-03-23 00:31:43 +03:00
Nikolay Krasko
9ad705a60a
Remove all allFiles*.out from debugger output
2017-03-23 00:31:42 +03:00
Yan Zhulanow
9d8adc1882
Minor: Execute kapt in IDEA tests
2017-03-22 22:03:20 +03:00
Alexander Udalov
579238c3be
Remove deprecated declarations from project code, cleanup usages
2017-03-22 20:25:54 +03:00
Alexey Sedunov
56d22277b7
Move: Filter out ConflictUsageInfo instances before running the refactoring
...
#KT-16556 Fixed
2017-03-22 13:36:19 +03:00
Alexey Sedunov
2f136dae1c
Move: KT-8955
...
Fix NPE on moving directory where at least one Kotlin file
contains package directive unmatched by the containing directory
#KT-8955 Fixed
2017-03-22 13:36:18 +03:00
Alexey Sedunov
d1857d68bc
Move: Fix element listener retrieval
...
Get element listener before original declaration is invalidated by the refactoring
2017-03-22 13:36:17 +03:00
Alexey Sedunov
1a8aa6091a
Move: Fix incorrect FqName when moving declaration to default package
...
#KT-15586 Fixed
2017-03-22 13:36:16 +03:00
Alexey Sedunov
1331922963
Move: Fix file rename of move
...
Avoid temporary file rename if the current name doesn't conflict
with other files in the target directory.
Improve protection against exceptions during the refactoring
which may prevent final rename
2017-03-22 13:36:15 +03:00
Alexey Sedunov
92fbca452d
Move: Do not report conflict on usages of inherited protected members
...
#KT-15190 Fixed
2017-03-22 13:36:14 +03:00
Alexey Sedunov
e82b256640
Move: Implement conflict checking for internal members
...
#KT-13190 Fixed
2017-03-22 13:36:13 +03:00
Alexey Sedunov
6f5249ecc7
Move: Fix processing of references to non-real members of companion object
...
#KT-15559 Fixed
2017-03-22 13:36:12 +03:00
Alexey Sedunov
bab762b761
Implement post-refactoring optimization of unused imports
...
#KT-15822 Fixed
#KT-13755 Fixed
2017-03-22 13:36:11 +03:00
Alexey Sedunov
7d185349c8
Move: Fix broken tests
...
Check that constructor call corresponds to class being moved before
transforming outer instance to argument
2017-03-22 13:36:10 +03:00
Alexey Sedunov
13de9aea81
Move: Fix processing of conflicting usages
...
Exclude conflict-associated usages from refactoring.
Move search of file internal usages to MoveKotlinDeclarationsProcessor
2017-03-22 13:36:09 +03:00
Alexey Sedunov
a21f19d613
Move: Use Kotlin declaration mover to handle KtFile
...
IDEA-provided file mover does not process conflicts
#KT-13911 Fixed
2017-03-22 13:36:08 +03:00
Alexey Sedunov
9a3ace423a
Move: Update test data for tests with conflicts
...
Check refactoring result for the case when conflicts are ignored.
Fix move destination when moving to another source root
2017-03-22 13:36:07 +03:00
Alexey Sedunov
38f9e99d91
Kotlin Facet: Fix argument merging
...
#KT-16982 Fixed
2017-03-22 13:36:06 +03:00
Alexey Sedunov
7c7e41592a
Kotlin Facet: KT-16980
...
Avoid reinitialization of module-level settings on each run of
the analyzer in the absence of Kotlin facet
#KT-16980 Fixed
2017-03-22 13:36:05 +03:00
Mikhail Glukhikh
23848fa728
Suggest bound references in "Lambda --> Reference" for 1.1+ only
2017-03-21 20:32:15 +03:00
Simon Ogorodnik
439e158fb2
Fix failing test after migration to IDEA 171
...
BasicCompletionWeigherTestGenerated$ExpectedInfo.testPreferMatchingThis
Looks like IDEA now rearranges elements with same weight by length and
then alphabetically
2017-03-21 16:47:16 +03:00
Pavel V. Talanov
a03e9d340e
Wrap sourceScope() and binaryScope() using sourceFilterScope
...
To avoid having to wrap at call site
2017-03-21 16:20:02 +03:00