Alexey Sedunov
f4ebd895ca
Change Signature: Reduce JetChangeSignatureUsageProcessor state to prevent
...
memory leaks. JetMethodDescriptor is stored in UsageInfo list
2015-07-27 17:29:02 +03:00
Alexey Sedunov
4f12dcc069
Move: Make MoveKotlinFileHandler stateless to prevent memory leaks. MoveKotlinTopLevelDeclarationsProcessor is made part of transient state, PackageNameInfo is recomputed based on file user data and container
2015-07-27 17:29:01 +03:00
Natalia Ukhorskaya
47b94326ec
Add NotNull assertions at project.getComponent
...
(cherry picked from commit 9b1167c)
2015-07-27 12:06:01 +03:00
Natalia Ukhorskaya
728290f99e
Fix compilation error in tests
...
(cherry picked from commit ea5b532)
2015-07-27 12:06:01 +03:00
Natalia Ukhorskaya
71bf9b1b30
LightProjectDescriptor is no longer an interface
...
(cherry picked from commit b99235b)
2015-07-27 12:06:00 +03:00
Valentin Kipyatkov
a58f249a01
KT-8576 Parameter name&type completion: don't auto-popup for the second time
...
#KT-8576
2015-07-27 10:37:12 +03:00
Valentin Kipyatkov
b9a62d0acf
Fixed parameter name&type auto-popup completion to insert "dynamic" on typing ": "
2015-07-27 10:37:11 +03:00
Alexey Sedunov
acb8c54902
Move: Get rid of MoveKotlinTopLevelDeclarationsOptions.sourceFile
2015-07-24 21:03:07 +03:00
Alexey Sedunov
9219f2214e
Move: Fix ClassCastException on attempt to move several classes (located in different files) to the same file
...
#KT-8437 Fixed
2015-07-24 21:03:06 +03:00
Alexey Sedunov
e74749eea1
Move: Reinitialize move context as MoveFileHandler.findUsages() can be bypassed
...
#KT-8436 Fixed
2015-07-24 21:03:05 +03:00
Alexey Sedunov
5179c10b4c
Move: Disable "Update package directive" check box when moving separate declarations instead of entire file
...
#KT-8414 Fixed
2015-07-24 21:03:04 +03:00
Alexey Sedunov
05fd4b75dd
Move: NPE fix
...
#KT-8410 Fixed
2015-07-24 21:03:03 +03:00
Alexey Sedunov
fc885dedc5
Move: Do not use "Search references" Java options when silently invoking Move refactoring for entire file. Default to true instead
2015-07-24 21:03:02 +03:00
Alexey Sedunov
cc13c157f6
Move: Forbind moving to non-Kotlin file
...
#KT-8500 Fixed
2015-07-24 21:03:01 +03:00
Alexey Sedunov
82a47a0f2d
Move: Fix "Update package directive" label
...
#KT-8546 Fixed
2015-07-24 21:03:00 +03:00
Sergey Mashkov
0453368990
Better main function recognition and tests
...
fix vararg main
2015-07-24 17:20:40 +03:00
Sergey Mashkov
8457b53f8b
Better main function recognition and tests
2015-07-24 17:20:40 +03:00
Valentin Kipyatkov
e677049d00
Test for no annotations rendered in parameter info
2015-07-23 22:02:06 +03:00
Valentin Kipyatkov
383a4da231
No annotations rendered in completion and other places
...
KT-5517 Completion shouldn't show inlineOptions annotation
#KT-5517 Fixed
2015-07-23 22:02:06 +03:00
Pavel V. Talanov
8cc9739f72
Refactor: Pass TargetPlatform instead of configurator, hide DynamicTypesSettings inside configurator
2015-07-23 16:15:38 +03:00
Pavel V. Talanov
84b8ed00c5
Refactor: Move TargetPlatform to frontend, make it expose platform dependant resolve services
...
AdditionalCheckerProvider -> PlatformConfigurator which operates directly on container
2015-07-23 16:15:35 +03:00
Pavel V. Talanov
3227ae5577
Inject non-context dependent CallCheckers instead of getting them from context
2015-07-23 16:15:28 +03:00
Pavel V. Talanov
2885da8993
Remove AdditionalTypeChecker from context, inject into points of usage
2015-07-23 16:15:18 +03:00
Pavel V. Talanov
985336d6cc
Remove SymbolUsageValidator from contexts
2015-07-23 16:15:10 +03:00
Natalia Ukhorskaya
ee49d13d89
Add tests on smart step into lambda
2015-07-23 11:54:43 +03:00
Natalia Ukhorskaya
c8f57e007c
Fix smart step into functions with expression body
2015-07-23 11:54:42 +03:00
Natalia Ukhorskaya
6c9da53414
Fix smart step into in libraries
2015-07-23 11:54:41 +03:00
Natalia Ukhorskaya
b76b251489
SmartStepInto: render kotlin functions properly
2015-07-23 11:54:40 +03:00
Natalia Ukhorskaya
346039d262
Stepping: do not use MockSourcePosition in production code
2015-07-23 11:54:39 +03:00
Natalia Ukhorskaya
d8e0d77b66
Rewrite smart step into kotlin functions, do not use MethodFilter for java because it doesn't work for libraries
2015-07-23 11:54:38 +03:00
Natalia Ukhorskaya
d75c21a5a7
Smart step into function literal
2015-07-23 11:54:37 +03:00
Natalia Ukhorskaya
f7e35fab42
Minor: extract class
2015-07-23 11:54:36 +03:00
Natalia Ukhorskaya
488a4b6680
Minor: move classes
2015-07-23 11:54:36 +03:00
Natalia Ukhorskaya
4f238a44c3
Minor: extract class to separate file
2015-07-23 11:54:35 +03:00
Natalia Ukhorskaya
bf4e3bdac9
Minor: fix warnings in KotlinSmartStepIntoHandler
2015-07-23 11:54:34 +03:00
Natalia Ukhorskaya
2121f707ab
Fix completion for codeFragments on functions with expression body
2015-07-23 11:54:33 +03:00
Natalia Ukhorskaya
86c7d11750
Debugger: do not create codeFragments with context of PsiFile
2015-07-23 11:54:32 +03:00
Alexander Udalov
74ed3b9562
Provide equals/hashCode for Kotlin light classes
...
KotlinLightClassForExplicitDeclaration already had equals/hashCode, but the
other three implementations of KotlinLightClass did not; this resulted in type
mismatch errors in Java code where the signatures of a super method and the
corresponding sub method wouldn't match because types of parameters were
different
#KT-8543 Fixed
2015-07-23 03:51:50 +03:00
Valentin Kipyatkov
153316c313
Changes on code review
2015-07-22 21:16:15 +03:00
Valentin Kipyatkov
851057a9ef
Highlighting duplicated and redandant *-imports as unused
2015-07-22 21:16:15 +03:00
Valentin Kipyatkov
feccee2c3e
Added quickfix to enable optimize imports on the fly
2015-07-22 21:16:14 +03:00
Valentin Kipyatkov
2f438d0722
Errors in import list do not prevent from on-the-fly optimization - unresolved imports can be removed automatically
2015-07-22 21:16:14 +03:00
Valentin Kipyatkov
9c03661ce5
Rewritten UnusedImportInspection to not use buildVisitor method and to not crash on non-Kotlin files
2015-07-22 21:16:13 +03:00
Valentin Kipyatkov
edcb330281
Corrected/removed tests related to on-the-fly import optimization
2015-07-22 21:16:13 +03:00
Valentin Kipyatkov
b612e7a6b0
On-the-fly import optimization
2015-07-22 21:16:12 +03:00
Valentin Kipyatkov
8793c6fb76
Lowered intention priority
2015-07-22 21:16:12 +03:00
Valentin Kipyatkov
1324ce5928
Added quickfix on unused import
2015-07-22 21:16:11 +03:00
Valentin Kipyatkov
af192698ed
Imports from current package are redundant too
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
68dec99ad7
KT-8389 Meaningless self-import insterted on "optimize imports"
...
#KT-8389 Fixed
2015-07-22 21:11:00 +03:00
Valentin Kipyatkov
344529a09a
Fixed test
2015-07-22 21:11:00 +03:00