Commit Graph

1449 Commits

Author SHA1 Message Date
Nikolay Krasko c50804a3f3 Add spaces after ) and around 'else' in 'if' 2013-11-13 19:08:51 +04:00
Andrey Breslav c4ecb9663a Basic utility for rendering DataFlowValues 2013-11-13 14:36:34 +04:00
Pavel V. Talanov f9a2b09a4e Add(Remove)ParameterQuickFix is not available for unmodifiable files 2013-11-12 14:15:57 +04:00
Pavel V. Talanov 3e97203f85 Check that target functions can be modified in JetChangeSignature 2013-11-12 14:15:56 +04:00
Pavel V. Talanov 959ab2b20c Enum class objects values and valueOf functions have kind SYNTHESIZED 2013-11-12 14:15:51 +04:00
Pavel V. Talanov 66cc9b2cc7 Show error hint when trying to refactor synthesized function 2013-11-12 14:15:48 +04:00
Pavel V. Talanov f032b6e236 Eliminate redundant descriptorToDeclaration call from factory for "Change signature" quick fixes 2013-11-12 14:15:47 +04:00
Pavel V. Talanov 8c95884ad2 Add new functionality to "Change signature" refactoring
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter)
Change signature now affects overriding functions as well
Ask the user whether he wants to refactor base function(s) or the selected one if appropiate
Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler
Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
2013-11-12 14:15:46 +04:00
Valentin Kipyatkov a7f11e6852 Very initial implementation of smart completion 2013-11-11 21:46:05 +04:00
Alexey Sedunov 1b8205273b Search constructor-declared properties together with class declarations 2013-11-07 20:44:25 +04:00
Alexey Sedunov 52ffd52a4e Implement "Find Usages" for value/type parameters 2013-11-07 20:44:25 +04:00
Andrey Breslav fd73dc3dce Fix tests after stdlib rearrangement 2013-11-07 13:56:17 +04:00
Alexey Sedunov f40fb623a6 FindUsagesTest: Add overriding property without accessors 2013-11-06 14:26:38 +04:00
Alexey Sedunov 78a7afe70e FindUsagesTest: Add usages of extensions for functions declared in objects 2013-11-06 14:26:36 +04:00
Alexey Sedunov bc9b2bf657 Add "Find Usages" tests for nested/inner classes and objects 2013-11-06 14:26:34 +04:00
Alexey Sedunov f99e6e6765 Fix usage type detection for static members of Java classes and members of nested classes 2013-11-06 14:26:33 +04:00
Alexey Sedunov 40900ac16c Reuse Java usage types 2013-11-06 14:26:32 +04:00
Alexey Sedunov a0e90f38a2 "Find Usages": add tests for Kotlin usages of Java declarations 2013-11-06 14:26:30 +04:00
Alexey Sedunov f41cfa2b8b "Find Usages": separate Kotlin and Java tests 2013-11-06 14:26:29 +04:00
Alexey Sedunov f1a7d707a0 Implement "Find usages" using UsagesSearch (classes, functions, properties) 2013-11-06 14:26:27 +04:00
Alexey Sedunov 6502f21144 JetUsageTypeProvider: Eliminate SELECTOR type, replace class with object 2013-11-06 14:26:25 +04:00
Erokhin Stanislav bb6fd90bd9 JS backend: move StringBuilder to java.lang. Fix append return type. 2013-11-05 20:55:49 +04:00
Pavel V. Talanov 3e205d162e Formatting: exactly one space after if keyword 2013-10-29 21:03:39 +04:00
Pavel V. Talanov 77d316902c Formatting: exactly one space after for keyword 2013-10-29 21:03:38 +04:00
Natalia Ukhorskaya 3287744415 Add common JetElement for imports: JetImportList 2013-10-25 13:55:40 +04:00
Natalia Ukhorskaya 796dad5798 Do not expand imports after optimizing 2013-10-25 11:05:02 +04:00
Alexey Sedunov 93e906ef5f Filter usages in import directives 2013-10-23 23:00:30 +04:00
Alexey Sedunov c3c0925de1 Add support of local declarations 2013-10-23 23:00:28 +04:00
Alexey Sedunov 46b14784e1 Fixed KT-4105: Can't find usages of private function 2013-10-23 23:00:27 +04:00
Nikolay Krasko 669104538d Tests for shadowing and redeclaration 2013-10-23 20:43:38 +04:00
Alexey Sedunov cf8555349e Fix detection of constructor calls and delegates in supertype specifiers 2013-10-23 14:19:47 +04:00
Alexey Sedunov 12a460a145 KT-4043 "Find usages ignores class names usages as class objects" 2013-10-21 17:18:46 +04:00
Svetlana Isakova 14cff91fed improved diagnostic message test
added ability to denote required message type (text or html)
2013-10-16 20:41:25 +04:00
Svetlana Isakova 2f02427c57 changed DiagnosticMessageTest
added test arguments to test data
2013-10-16 20:41:23 +04:00
Svetlana Isakova 4666b0f50c refactoring: removed logic of rendering 'expected type mismatch' error from constraint system 2013-10-16 19:51:53 +04:00
Svetlana Isakova 731efd0781 added declared bound constraints directly to constraint system
added status 'hasViolatedUpperBound'
class TypeConstraintsImpl now stores constraint position for each constraint,
so we can filter out bound constraints and find out if the system is successful without them
2013-10-16 19:51:53 +04:00
Nikolay Krasko 0c49b91098 Complete functions with single parameter on typing '{'
For KT-4049 When completing a function that takes a lambda and immediately typing '{', swallow the '{'
 #KT-4049 Fixed
2013-10-16 18:56:51 +04:00
Alexey Sedunov 71a0d4cc45 KT-4018 When moving members move comments too 2013-10-15 18:44:00 +04:00
Alexey Sedunov 28b3db53fe Fix irregular PSI structure for classes without body 2013-10-15 18:43:59 +04:00
Alexey Sedunov bdc908d45f Fix search of package-level function/property usages in Java code 2013-10-15 18:43:57 +04:00
Andrey Breslav f05f3f5686 Let the user know that class object bounds are not supported
KT-4080 Code analisys show all good, but got compile error

#KT-4080 Fixed
2013-10-15 14:45:22 +04:00
Andrey Breslav 60425b15e6 Support circular dependencies
We generate a module script with information on all modules in the chunk, then build the whole chunk as "one big module"
2013-10-14 14:42:24 +04:00
Alexey Sedunov eff62bfd83 KT-4008 'Replace if with when' is available but does not work 2013-10-11 17:24:07 +04:00
Alexander Udalov 102ced153c Remove binary test data from completion tests
Delete CompileBinaryTestData script, since there are no tests with binary test
data left in the repository
2013-10-10 20:28:22 +04:00
Alexander Udalov a2c74d4324 Refactor OverrideImplementWithLibTest
Use JdkAndMockLibraryProjectDescriptor instead of a jar file, which needs to be
regenerated every time binary format changes
2013-10-10 20:28:21 +04:00
Andrey Breslav d4a89d04d7 Each module carries its output directory 2013-10-10 17:49:17 +04:00
Pavel V. Talanov 91336a888c Fix invalid usage of getOverriddenDescriptors in JetLineMarkerProvider 2013-10-07 20:50:37 +04:00
Pavel V. Talanov 4a217d8cde Fix invalid usage of descriptorToDeclaration in GotoSuperActionHandler 2013-10-07 20:50:36 +04:00
Nikolay Krasko d0e4245112 Add test for enum highlighting 2013-10-03 23:35:54 +04:00
Nikolay Krasko f09ba64234 Refactoring: Use generators for highlighting tests
- Store options for test in file
- Change default for namesHighlightingTest
- Combine highlighting and deprecated tests
2013-10-03 23:35:53 +04:00