Alexander Udalov
1e611f4df1
Minor refactoring in TypeUtils
...
Move out unneeded things in runtime, fix warnings
2014-03-28 21:56:04 +04:00
Alexander Udalov
59c04f5aff
Module 'util.runtime' doesn't depend on intellij-core anymore
2014-03-28 21:44:07 +04:00
Andrey Breslav
708694a09d
Resolve annotation arguments only once
2014-03-26 21:10:29 +04:00
Evgeny Gerashchenko
9ecd680fd4
Rewritten PackageFragmentDescriptor to Kotlin.
2014-03-26 00:41:54 +04:00
Evgeny Gerashchenko
00c0c1acd1
Introduced base PackageFragmentDescriptorImpl class,
2014-03-26 00:30:56 +04:00
Evgeny Gerashchenko
b736d1602e
Got rid of conustructors zoo in value parameter and getter/setter descriptors.
2014-03-25 21:35:09 +04:00
Evgeny Gerashchenko
cf61446d69
Fixed order of containing and original in property descriptors.
2014-03-25 21:35:09 +04:00
Evgeny Gerashchenko
48f8aa279b
Extracted "preserve original" flag.
2014-03-25 21:34:11 +04:00
Evgeny Gerashchenko
1aaea21f63
Got rid of constructors/initializers zoo in property descriptors
2014-03-25 21:33:15 +04:00
Evgeny Gerashchenko
eaad1f9f50
Got rid of constructors/initializers zoo in simple function descriptors
2014-03-25 21:33:14 +04:00
Evgeny Gerashchenko
8d38e74bd9
Got rid of constructors/initializers zoo in constructor descriptors
2014-03-25 21:33:09 +04:00
Evgeny Gerashchenko
6725b4f1b0
Minor. Unified code.
2014-03-25 14:34:59 +04:00
Evgeny Gerashchenko
a44f0c2f2d
Removed dependency on asm in descriptor.loader.java
...
Conflicts:
compiler/backend/src/org/jetbrains/jet/codegen/JavaSerializerExtension.java
2014-03-25 14:31:45 +04:00
Evgeny Gerashchenko
9e815f8560
Extracted Java signature deserialization logic from BaseDescriptorDeserializer.
...
Java signature deserializer returns asm Method instead of MemberSignature
2014-03-25 14:31:42 +04:00
Evgeny Gerashchenko
d62bc07437
Partial compilation of package (only functions supported).
2014-03-25 14:31:38 +04:00
Alexander Udalov
7d311cdfa0
Support named arguments for Java constructors annotated with KotlinSignature
2014-03-20 12:49:16 +04:00
Alexander Udalov
5fa1774cc1
Support hasStableParameterNames in KotlinSignature and propagation
...
#KT-1924 In Progress
#KT-2830 Fixed
2014-03-19 23:24:28 +04:00
Alexander Udalov
7fcd42f40c
Fix annoying parameter name override warning
...
Some corner cases still remain: KotlinSignature, propagation, deserialized
delegates to Java interfaces
#KT-1239 Obsolete
#KT-1924 In Progress
#KT-2081 Fixed
2014-03-19 23:24:27 +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
Andrey Breslav
ed81102b2f
Minor. Name clash removed (workaround for KT-1)
2014-03-17 21:40:22 +04:00
Alexander Udalov
307f52895a
Refactor KotlinJvmBinaryClass, VirtualFileKotlinClass, etc.
...
VirtualFileKotlinClass now reads its header and name on creation. This is not
lazy enough and may be slower in some circumstances, but has the following
advantage: if anything is wrong in the header, a VirtualFileKotlinClass
instance will not be created at all, making it nearly impossible for the client
code to operate on invalid data causing all kinds of exceptions
2014-03-14 16:00:20 +04:00
Alexander Udalov
9bf0d014d5
Sort out "isSpecialAnnotation" method logic
...
Remove duplicate method, include all needed annotations (seems that some of
them were forgotten in either of the two methods)
2014-03-14 16:00:19 +04:00
Natalia Ukhorskaya
4a8bcc614a
Resolve compileTimeInitializer for variable in lazy resolve
2014-03-13 10:07:18 +04:00
Natalia Ukhorskaya
a80114d720
Use one method to create compile-time value
2014-03-13 10:07:16 +04:00
Natalia Ukhorskaya
000dd4478a
Rename
2014-03-13 10:07:13 +04:00
Natalia Ukhorskaya
df3ed5059c
StorageManager for compile-time initializer
2014-03-13 10:07:12 +04:00
Natalia Ukhorskaya
17259a052e
Write constant initializer for java properties
2014-03-13 10:07:11 +04:00
Natalia Ukhorskaya
9b5050dddd
Serialize compile time constant for property initializer
2014-03-13 10:07:08 +04:00
Natalia Ukhorskaya
a2879f229a
Add serializer for compile-time constant initializer
2014-03-13 10:07:05 +04:00
Natalia Ukhorskaya
073d345841
Extract BaseDeserializer from AnnotationDeserializer. Move storage to separate class
2014-03-13 10:07:04 +04:00
Alexander Udalov
4937812414
Rewrite KotlinClassHeader to Kotlin
2014-03-07 03:43:41 +04:00
Alexander Udalov
0b2c832343
Write KotlinSyntheticClass to anonymous and local classes
2014-03-07 03:08:19 +04:00
Alexander Udalov
cbfb626d50
Write KotlinSyntheticClass to generated classes for functions
...
That is SAM wrappers, callable reference wrappers, local functions and
anonymous functions
2014-03-07 03:08:18 +04:00
Pavel V. Talanov
796386049b
Minor: remove explicit dependency on JavaDescriptorResolver from AnnotationDescriptorDeserializer
2014-03-04 21:19:42 +04:00
Pavel V. Talanov
d647d2abbc
Move caching of kotlin binaries classes to application level
...
Fix code in DecompiledUtils
2014-03-04 21:19:41 +04:00
Alexander Udalov
af2a28c099
Minor, inline only once-used methods
2014-03-04 19:04:58 +04:00
Alexander Udalov
76cc5b301a
Minor, revert unneeded "!!"
2014-03-04 18:19:43 +04:00
Alexander Udalov
e017cf76f2
Minor, delete/inline methods
2014-03-04 18:19:42 +04:00
Alexander Udalov
4c49c39f8d
Minor, delete unnecessary parameter from util method
2014-03-04 18:19:42 +04:00
Alexander Udalov
eb5aba560e
Load class kind in KotlinSyntheticClass annotation
...
Fix some of the usages of KotlinSyntheticClass header where really package
parts were meant (they were committed by mistake).
DescriptorResolverUtils.isCompiledKotlinPackageClass no longer checks for class
being a compiled package part, because PSI classes are not built for package
parts (according to EmptyPackageFragmentClsStubBuilderFactory)
2014-03-04 18:19:42 +04:00
Mikhael Bogdanov
16fbe1d5dd
Abi version increased: inline calls in runtime (otherwise client inlining wouldn't work)
2014-03-03 15:52:25 +04:00
Mikhael Bogdanov
6d1effe981
Inline trait support
2014-03-03 15:43:48 +04:00
Alexander Udalov
d04ee09636
Rename "import jet" to "import kotlin" in Java sources
2014-03-02 21:33:22 +04:00
Alexander Udalov
6eae950812
Increase ABI version after renaming "jet"->"kotlin"
2014-03-02 19:55:29 +04:00
Alexander Udalov
cfe3619db7
Introduce KotlinSyntheticClass annotation
...
Will be used instead of KotlinPackagePart, KotlinTraitImpl and other
hypothetical annotations we were planning to write on our synthesized classes
(lambdas, local functions, etc.)
2014-03-02 19:55:29 +04:00
Alexander Udalov
787b4753c7
Copy KotlinSignature to package "kotlin.jvm"
...
Support both KotlinSignature classes in the compiler and in the IDEA plugin.
The old one will be deprecated later and dropped eventually
2014-03-02 19:55:28 +04:00
Alexander Udalov
33a9f3abd1
Move all annotation FQ names to JvmAnnotationNames
...
Delete reflected usages of annotation classes (JetValueParameter.class,
KotlinSignature.class, etc.). It's wrong: this is a dependency on the old
runtime, whereas the compiler should work with the new one
2014-03-02 19:55:28 +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
Alexander Udalov
aef0fabd53
Move jet.Kotlin* annotations to package "kotlin.jvm.internal"
...
Also rename poorly named KotlinPackageFragment -> KotlinPackagePart
2014-03-02 19:54:58 +04:00
Alexander Udalov
0da92e22a2
Move jet.JetObject -> kotlin.jvm.internal.KObject
...
Don't use JetObject as a marker class in KotlinRuntimeLibraryUtil anymore,
since there are other classes for this purpose (KotlinPackage, Unit)
2014-03-02 19:54:58 +04:00