Commit Graph

198 Commits

Author SHA1 Message Date
Alexey Sedunov 5f69317f1e Generate constructor light methods with origin set to Kotlin class/object declaration 2014-01-24 15:24:33 +04:00
Alexey Sedunov 89255b25b0 Make light parameters compatible with KotlinLightElement 2014-01-24 15:24:27 +04:00
Alexey Sedunov bb04c5fd95 Use light element origin instead of getNavigationElement() 2014-01-24 13:10:29 +04:00
Alexey Sedunov 9eac148555 Extract base interface for Kotlin light elements 2014-01-24 13:10:28 +04:00
Alexey Sedunov 5b2858ef26 Generate light type parameters for Kotlin light methods 2014-01-24 13:10:27 +04:00
Alexey Sedunov 75f67d5336 Add utility functions for conversion to light elements 2014-01-24 13:10:25 +04:00
Andrey Breslav 4936b66626 Do not hide annotations on light classes 2014-01-20 22:35:01 +04:00
Nikolay Krasko ff747c0e34 Refactoring: move inner class to package level 2014-01-17 17:28:11 +04:00
Nikolay Krasko b84c1a2113 Refactoring: remove warning 2014-01-17 17:28:08 +04:00
Nikolay Krasko db57a7f085 Minor: remove outdated todo comments 2014-01-17 17:28:05 +04:00
Alexey Sedunov 4ba01ee1d5 Extract methods for conversion between Kotlin declarations and light
methods
2014-01-15 16:49:37 +04:00
Evgeny Gerashchenko b41a3f8558 Got rid of "namespace" word in compiler code. 2014-01-14 18:06:50 +04:00
Evgeny Gerashchenko 4239f5bb18 Got rid of "namespace" word in backend. 2014-01-14 18:06:47 +04:00
Nikolay Krasko 217931622e Fix for IDEA complains when assigning Kotlin objects where java.lang.Object is expected
#KT-4355 Fixed
2013-12-27 15:03:59 +04:00
Nikolay Krasko b8ce52b995 Refactoring: remove warning 2013-12-27 15:03:58 +04:00
Valentin Kipyatkov b71020efc5 Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin) 2013-12-25 18:40:16 +04:00
Alexey Sedunov fbb03afc0f Remove unjustified assertions 2013-12-24 12:10:54 +04:00
Alexey Sedunov c20ee310d0 Add support of local classes/objects declared in class constructor parameters 2013-12-24 12:10:52 +04:00
Alexey Sedunov 34e80056eb Don't create PsiMethod wrapper when it's not necessary 2013-12-24 12:10:51 +04:00
Alexey Sedunov fffddc3e87 Minor: Restructured KotlinLightClassForExplicitDeclaration, removed assertions 2013-12-24 12:10:50 +04:00
Alexey Sedunov f381d97dc9 Provide fake enclosing PsiMembers for local light classes 2013-12-24 12:10:48 +04:00
Alexey Sedunov f547cd2471 Make anonymous light classes descendants of PsiAnonymousClass 2013-12-24 12:10:47 +04:00
Alexey Sedunov 1d03f9f151 Fix caching of light class data for nested classes 2013-12-24 12:10:46 +04:00
Evgeny Gerashchenko 3352d8a954 Minor. Renamed method. 2013-12-17 20:28:56 +04:00
Alexey Sedunov a802853ac6 Fix warnings 2013-12-12 17:30:58 +04:00
Alexey Sedunov 6913f42a97 Add support of light classes for local class/object declarations 2013-12-12 17:30:52 +04:00
Mikhael Bogdanov 8533fd64ff Compiler inline on/off flag 2013-12-02 18:30:42 +04:00
Nikolay Krasko 76562f9aa5 KT-3255 Add ability to rename kotlin classes from java
#KT-3255 Fixed
2013-11-26 19:19:59 +04:00
Nikolay Krasko 4348678cea Add light parameters for functions 2013-11-15 19:41:23 +04:00
Nikolay Krasko 3d3464d163 Wrap cls-methods with kotlin prototypes 2013-11-15 19:41:11 +04:00
Nikolay Krasko aa91ae6843 Common class for Kotlin light classes with returning light elements for methods and fields 2013-11-15 19:41:08 +04:00
Nikolay Krasko 6aeaceae8d Refactoring: Rename JetClsMethod -> JetPsiMethodWrapper
Source element in Kotlin mustn't be wrapped into read-only class-elements
2013-11-15 19:05:47 +04:00
Nikolay Krasko 8e1b4edd7c Refactoring: Remove class KotlinLightClassForPackageBase
FakeLightClassForFileOfPackage will use same code with delegating
2013-11-08 18:41:25 +04:00
Zalim Bashorov 4cea0a3de4 Fix build after change api 2013-11-08 18:14:21 +04:00
Zalim Bashorov 5dd4eb780e Extracted OutputFileFactory interface. 2013-11-08 18:14:20 +04:00
Alexey Sedunov cfaeca88bf Reuse property search for parameters 2013-11-07 20:44:23 +04:00
Zalim Bashorov 1c1c138046 Update to IDEA 132.839 EAP 2013-10-30 19:37:14 +04:00
Alexey Sedunov 46b14784e1 Fixed KT-4105: Can't find usages of private function 2013-10-23 23:00:27 +04:00
Andrey Breslav 6dd813aeef Field made final 2013-10-17 18:15:52 +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 08a90ba7d4 Fixing EA-50643 - NPE: PropertyCodegen.generateBackingField
Do not return null as a method/field visitor
2013-10-10 14:06:20 +04:00
Andrey Breslav 94ef5cb19b Rename: SIGNATURES -> LIGHT_CLASSES 2013-10-09 19:16:43 +04:00
Andrey Breslav 1819825e54 "builtins/stubs" mode removed from backend 2013-10-09 19:16:43 +04:00
Evgeny Gerashchenko a1e4ca2871 Not building light class for local class (to fix exception in tests). 2013-10-04 20:40:55 +04:00
Alexander Udalov dbba6c614b Rename JvmClassName.getFqName() and add a warning
All usages of this method as of right now seem wrong, as they don't work in the
case of classes which contain dollars in their names -- dollars get replaced to
dots
2013-10-04 18:32:41 +04:00
Alexander Udalov 8729c88aa2 Refactor CodegenBinding & PsiCodegenPredictor
Use ASM Type to store names of classes, use strings in PsiCodegenPredictor.
Inline some methods, move closer to their usages
2013-10-04 18:32:40 +04:00
Evgeny Gerashchenko eb5455e89f Got rid of "jet" file extension. 2013-10-01 19:32:38 +04:00
Andrey Breslav 98ce0e078c Chaching results of findClasses in JavaElementFinder
Quieries to this method appear very high in the profile when there are many exceptions in the console
2013-10-01 17:15:47 +04:00
Alexander Udalov 8e59e789dc Extract util.runtime module out of util
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.

Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Alexander Udalov 2b9225fdd4 Extract descriptor.loader.java module from frontend.java
Will be used in runtime to load reflected classes
2013-09-04 21:55:11 +04:00