Valentin Kipyatkov
1e39021bd3
Java to Kotlin convertor: making code more "Kolin-like" + numerous micro refactorings
2014-06-03 17:29:00 +04:00
Pavel V. Talanov
7973c9bfca
Do not load Icon in LightVariableBuilder constructor
2014-05-30 14:58:50 +04:00
Alexey Sedunov
4678a5866a
Light Classes: Track original declaration for Kotlin light fields
...
#KT-4902 Fixed
2014-05-28 21:06:01 +04:00
Alexander Udalov
9e325b3ebe
Remove heuristic from PackageCodegen
...
Implement the logic in a more straightforward way, move the heuristic to
JavaElementFinder where it was also used
2014-05-26 16:48:19 +04:00
Pavel V. Talanov
7046168868
Add isLocal() to JetClassOrObject, use it where appropriate
2014-05-21 15:39:14 +04:00
Pavel V. Talanov
b5374584bb
Add and use JetClassOrObject#isTopLevel()
2014-05-21 15:38:59 +04:00
Alexander Udalov
357fe5cb17
Pass module to GenerationState
...
- get rid of a hack there which was used to obtain any module, to be used in
ReflectionTypes
- delete unused getError() in LightClassConstructionContext which was always
null
- fix some minor warnings
2014-05-19 19:50:56 +04:00
Alexander Udalov
16daeb9544
Misc refactorings in KotlinBuiltIns
...
- delete fields which were supposed to be used for caching, but mistakenly were
never used
- delete/inline unused methods and constants
- delete useless logic related to root package fragment: package fragment
providers are only supposed to find packages they're aware of
2014-05-05 20:42:35 +04:00
Andrey Breslav
19719f9747
Deprecated _tmp functions replaced by library ones
2014-04-29 19:11:47 +04:00
Andrey Breslav
767eb04930
JetElement.getContainingJetFile() introduced
2014-04-21 21:55:00 +04:00
Pavel V. Talanov
3fdb548a9d
Introduce JetModifierKeywordToken to mark keywords which can be used as modifiers
...
Change JetModifierList and JetModifierListOwner api to accept only those tokens
2014-04-02 13:37:15 +04:00
Nikolay Krasko
95fd870988
Update to idea 135.666 EAP with asm5 library
2014-04-01 02:55:00 +04:00
Pavel V. Talanov
a1dbf221b3
Use instance methods instead of JetPsiUtil for getting fq names
...
Remove unnecessary usages of JetFile#getPackageDirective where only FqName is needed
Make JetFile#getPackageFqName not nullable to avoid confusion on call sites
Remove getPackageName usages
Move getFqName(JetNamedDeclaration) to a separate util class
2014-03-24 17:51:49 +04:00
Mikhael Bogdanov
35174b459a
Enable Inline flag for light classes
2014-03-20 17:50:54 +04:00
Ilya Ryzhenkov
a3b45b919c
Temporarily replace usages of extension on iterators in compiler by _tmp() calls
2014-03-19 20:25:16 +04:00
Alexey Sedunov
abcba89ad3
Move top-level declarations: Implement refactoring processor
2014-03-19 15:31:29 +04:00
Alexey Sedunov
1edaa877dc
Fix search scope of Kotlin light methods
...
#KT-4638 Fixed
2014-03-04 19:45:35 +04:00
Mikhael Bogdanov
e695f0a516
Extracting class builder interface
2014-03-03 15:43:44 +04:00
Alexander Udalov
ac71911720
Get rid of "jet" in comments, assertions, READMEs, etc.
...
Replace with "kotlin"
#KT-2896 Fixed
2014-03-02 19:55:11 +04:00
Nikolay Krasko
592969bad1
Rewrite utils method for qualified names to Kotlin
2014-02-20 16:17:51 +04:00
Nikolay Krasko
ac4fe93774
Add ability to filter out some particular classes from generator
2014-02-20 16:17:38 +04:00
Nikolay Krasko
e13d568a34
Refactoring: Simplify subclass graph
2014-02-20 16:08:09 +04:00
Nikolay Krasko
e946f1abba
Refactoring: remove LightClassStubWithData, use generics for KotlinJavaFileStubProvider
2014-02-20 16:08:09 +04:00
Andrey Breslav
623b169d71
When building light classes don't resolve irrelevant declarations in the same package
2014-02-20 16:08:08 +04:00
Nikolay Krasko
9a8a8364dd
KT-4344 "Overridden method parameters are not annotated" warnings from Java
...
#KT-4344 Fixed
2014-02-18 14:49:34 +04:00
Pavel V. Talanov
f06cef684e
Refactor: introduce JetReference, rename: JetPsiReference -> AbstractJetReference
...
Add resolveToDescriptors() to JetReference trait
Rewrite JetPsiReference to kotlin
2014-02-04 17:09:43 +04:00
Nikolay Krasko
9aac846798
Refactoring: remove unused jvmInternalName from KotlinPackageLightClassData
2014-02-04 12:31:37 +04:00
Alexey Sedunov
7f74ea5081
Translate KotlinSafeDeleteProcessor to Kotlin
2014-02-03 13:47:02 +04:00
Alexey Sedunov
a6697a52ef
Support getOrigin() for class constructor parameters
2014-02-03 13:47:00 +04:00
Nikolay Krasko
9a6ac60a5f
Minor: formatting and warnings
2014-01-31 14:52:14 +04:00
Andrey Breslav
210827b1d5
ExceptionUtils rewritten in Kotlin
2014-01-30 21:03:53 +04:00
Alexander Udalov
61ad9fba4a
Remove duplicated sources of built-ins
...
BuiltInsSerializer now serializes built-ins found in two source roots:
core/builtins/native and core/builtins/src
Add return types to some declarations in core/builtins/src, because now that
BuiltInsSerializer processes them, it launches lazy resolution which can't
always deduce the return type
2014-01-27 18:33:48 +04:00
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