127 Commits

Author SHA1 Message Date
Alexander Udalov
baaa3ef50a Remove KotlinSignature annotations from project code 2015-10-13 20:29:16 +03:00
Valentin Kipyatkov
00dcbd4d93 Initial implementation of KT-4046 Support 'Create constructor matching superclass'
#KT-4046 Fixed
2015-05-14 01:09:21 +03:00
Natalia Ukhorskaya
2f931f36c8 Implement extra variables for debugger 2015-02-06 11:21:17 +03:00
Valentin Kipyatkov
ead2dea10d Corrected annotations: ExtendWordSelectionHandler CAN return null 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
c2d37805be Converted code to Kotlin 2014-12-18 19:02:15 +03:00
Valentin Kipyatkov
9dd4b5598e Comments binding (not complete yet) 2014-10-31 21:07:44 +03:00
Valentin Kipyatkov
a84b32af98 KT-5492 J2K: convert field with getter/setter to property
#KT-5492 Fixed
2014-10-14 21:23:24 +04:00
Alexey Sedunov
ff082be524 File Move: Fix update of extension references. Reuse MoveKotlinTopLevelDeclarationsProcessor 2014-10-14 01:59:53 +04:00
Nikolay Krasko
b06b3ab4c4 Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Pavel V. Talanov
1e9718f55b Do not try to copy references in dumb mode
#KT-4766 Fixed
2014-10-07 16:43:32 +04:00
Zalim Bashorov
d986b0e565 Ant buildtools: added base class for Kotlin compiler ant tasks.
As side effect:
 - used cli compiler in both ant tasks.
 - got the ability to use custom args in JS ant task too.
2014-10-07 16:32:07 +04:00
Natalia Ukhorskaya
824d79c934 Android-support: implement OutputParser 2014-10-07 12:15:52 +04:00
Valentin Kipyatkov
879f0d201e Converted JetDeclarationJoinLinesHandler to Kotlin 2014-10-02 18:26:06 +04:00
Nikolay Krasko
260f9fb634 Rewrite to Kotlin: rewrite methods for markers on overridden declarations 2014-10-01 18:02:58 +04:00
Pavel V. Talanov
691068c0c2 Implement LibraryDependenciesCache 2014-09-30 21:58:59 +04:00
Pavel V. Talanov
4370577457 Minor: Convert PackageIndexUtil to Kotlin 2014-09-26 18:21:10 +04:00
Valentin Kipyatkov
0462d152eb Smart completion: prefer items matching by name 2014-09-25 17:10:27 +04:00
Pavel V. Talanov
fe136b500a Libraries cache drops only on roots change 2014-09-23 15:56:34 +04:00
Alexey Sedunov
da004cf104 Minor: Add @NotNull annotation 2014-09-23 12:50:47 +04:00
Alexey Sedunov
735fd6c626 Move: Fix detection of imported declarations and processing of extension usages
#KT-5787 Fixed
 #KT-4959 Fixed
2014-09-23 12:50:46 +04:00
Alexey Sedunov
741e5f61e9 Extract Function: Implement duplicate search 2014-09-18 13:28:30 +04:00
Alexey Sedunov
a3758f9fa3 PSI Pattern Matching: Implement expression unifier 2014-09-18 13:28:24 +04:00
Natalia Ukhorskaya
3dcfae4a81 Debugger: delegated property should be visible in debugger
#KT-4699 In Progress
 #KT-3582 Fixed
2014-09-17 13:59:53 +04:00
Pavel V. Talanov
88b262faf1 Make test source module a friend of production source module 2014-09-12 13:08:31 +04:00
Pavel V. Talanov
10666d777d Split ModuleSourceInfo into ModuleProductionSourceInfo and ModuleTestSourceInfo 2014-09-12 13:08:29 +04:00
Natalia Ukhorskaya
5c0c22d087 Stepping: do not step into kotlin standard library
#KT-2076 Fixed
2014-08-29 15:17:13 +04:00
Natalia Ukhorskaya
741f55d89c Debugger: Add filter for Kotlin specific classes
#KT-2076 Fixed
2014-08-29 15:17:12 +04:00
Valentin Kipyatkov
ced2abb860 Converted AutoImportFix to Kotlin 2014-08-27 19:07:38 +04:00
Evgeny Gerashchenko
75ffc0f5ff Converted KotlinBuilder from Java to Kotlin 2014-08-27 16:35:06 +04:00
Pavel V. Talanov
db5303c019 Implement modules in IDE
IDE:
Rewrite AnalyzerFacade and implementations for JS and JVM to support creating separate analyzers for each module
Introduce ModuleInfo which is an intermediate entity between configuration (tests or idea modules) and ModuleDescriptor
Implement IdeaModuleInfos which represent IDEA modules, sdks and libraries
Add (somewhat thin) test checking their behaviour
Implement getModuleInfo() - utility to obtain IdeaModuleInfo for PsiElement
Drop Project.getLazyResolveSession() - not possible to obtain resolve session for the whole project any more
Adjust JavaResolveExtension accordingly
KotlinSignature Intention/Marker - make sure that analyzed element is cls element (he's not in resolve scope otherwise)

LightClasses:
Create separate package light classes for each module
Java code can only reference light class from the first module among it's dependencies
Duplicate jvm signature is only reported on package declarations inside one module

Injectors:
Receive GlobalSearchScope as paramer for VirtualFileFinder and JavaClassFinder
which allows to narrow analyzer scope

JDR:
Introduce ModuleClassResolver resolves java classes in correct java descriptor resolver (corresponding ModuleDescriptor)
Add test checking that java classes belong to correct module

Debugger:
Provide context to analyze files created by debugger in

Converter:
Postprocessor now needs a context to analyze resulting code in

JetPsiFactory:
Add verification that files created by psi factory are not analyzed without context (that is almost never a good idea)

Other:
Use new API in various tests, utilities, run configuration producers and builtin serializers
Various "TODO: (module refactoring)" which mark the unfinished parts
2014-08-22 22:58:54 +04:00
Alexey Sedunov
67606c55e7 Rename: Initial support of naming conventions 2014-08-08 18:59:49 +04:00
Alexey Sedunov
d226a11c8e Find Usages: Add support of naming conventions
#KT-1356 Fixed
2014-08-08 18:59:47 +04:00
Valentin Kipyatkov
620c018b54 Converted more completion code to Kotlin 2014-08-07 21:55:13 +04:00
Valentin Kipyatkov
7219a521d7 Converted more completion code to Kotlin 2014-08-07 21:55:13 +04:00
Valentin Kipyatkov
3f62a96028 Converting completion code to Kotlin 2014-08-07 21:55:13 +04:00
Valentin Kipyatkov
a2fa5bc536 J2K: more correct set of annotations to drop 2014-07-25 16:54:23 +04:00
Pavel V. Talanov
7269e383cf Rewrite JetPsiFactory to kotlin, make project a property
Instead of passing to every function
All static methods are now member functions
2014-07-15 16:41:12 +04:00
Alexey Sedunov
f1445ba635 Extract Function: Improve container selection UI 2014-07-11 19:13:43 +04:00
Alexey Sedunov
ac17594f67 Extract Function: Capitalize conflict messages 2014-07-11 19:13:33 +04:00
Valentin Kipyatkov
acc58173da Java to Kotlin converter: added auto-conversion run of Kotlin analyzer. Implemented first fix with it - redundant !! removal 2014-07-10 23:20:39 +04:00
Valentin Kipyatkov
d3a1fa6b9a KT-5405 J2K: convert for's through indices of some list or array into use of ".indices" + fixed a bug in for-statement conversion
#KT-5405 Fixed
2014-07-10 23:20:38 +04:00
Valentin Kipyatkov
a99f6f3774 Java to Kotlin converter: honor external Nullable/NotNull annotations 2014-07-10 23:20:32 +04:00
Nikolay Krasko
a2fdfc714f Update to idea 138.777 2014-06-26 16:43:13 +04:00
Nikolay Krasko
a0e45e9a12 Merge master into idea14
Conflicts:
	.idea/runConfigurations/All_Tests.xml
	idea/src/org/jetbrains/jet/plugin/conversion/copy/ConvertJavaCopyPastePostProcessor.kt
	idea/tests/org/jetbrains/jet/plugin/refactoring/introduce/introduceVariable/AbstractJetExtractionTest.kt
	idea/tests/org/jetbrains/jet/shortenRefs/AbstractShortenRefsTest.kt
2014-06-25 16:26:01 +04:00
Nikolay Krasko
693080acfc Smart enter for if statement
#KT-3600 In Progress
2014-06-25 14:22:56 +04:00
Alexey Sedunov
5be7eb8a5c Shorten References: Do not optimize imports until shortening is finished
#KT-5227 Fixed
2014-06-23 19:32:27 +04:00
Nikolay Krasko
90f3996dd3 Idea 138: Add custom kotlin search for kotlin properties 2014-06-20 17:14:44 +04:00
Nikolay Krasko
1e3270a050 Idea 138: Update to Idea 138.515 2014-06-20 17:14:28 +04:00
Alexey Sedunov
a980086b54 Pseudocode: Add explicit type predicates to magic instructions 2014-06-19 22:04:41 +04:00
Alexey Sedunov
eabe2fcc8a Pseudocode: Translate instruction classes to Kotlin 2014-06-19 22:04:34 +04:00