Commit Graph

345 Commits

Author SHA1 Message Date
Svetlana Isakova 3bcdbee2bf Removed LabelName class, used Name instead 2014-05-20 14:58:49 +04:00
Alexander Udalov 98f80fe1e0 Increase ABI version after changes to FunctionImpl* classes 2014-05-19 19:50:59 +04:00
Alexander Udalov ccead8e337 Replace some usages of ERROR_CLASS with new instance creation
Because when some class is unresolved, we can still hold some information such
as its FQ name, for debugging purposes and better error messages
2014-05-19 19:50:59 +04:00
Alexander Udalov de8b2b3668 Fix generic signature for SAM adapters and constructors
SAM-related code in codegen was using JavaClassDescriptor directly, which has
an erased signature. Create and use a new abstraction SamType which has a full
generic signature of a type which was used in the SAM construct
2014-05-19 19:50:58 +04:00
Andrey Breslav 5ab979864b Temporarily revert changes that create separate class descriptors for each PSI class 2014-05-16 12:27:14 +04:00
Andrey Breslav 291741754b Guard loading top-level classes with a check that they are not Kotlin binaries 2014-05-14 17:15:01 +04:00
Andrey Breslav 64f0a8d420 Provide access to package fragments generated for static members of Java classes 2014-05-13 19:39:32 +04:00
Andrey Breslav 87750d633c JavaDescriptorResolver supports resolving classes by PSI elements, not by FqNames 2014-05-13 19:39:31 +04:00
Alexander Udalov 42d167d17e Add missing copyrights across the project 2014-05-05 20:43:35 +04:00
Andrey Breslav 775c941f8a hasSynthesizedParameterNames() pulled up into CallableDescriptor 2014-04-30 16:30:17 +04:00
Andrey Breslav c6bd4a22ef Iterators replaced with streams where appropriate 2014-04-29 19:11:47 +04:00
Andrey Breslav 19719f9747 Deprecated _tmp functions replaced by library ones 2014-04-29 19:11:47 +04:00
Andrey Breslav 4181bcc319 JavaCallableMemberDescriptor.hasSynthesizedParameterNames() introduced 2014-04-29 19:11:47 +04:00
Alexander Udalov 61675de305 Optimize PropertyMetadataImpl instance creation
Create all property metadatas in <clinit> and save them to a static array
$propertyMetadata. Getter/setter of each delegated property will then just
obtain the corresponding instance from that array

 #KT-4232 Fixed
2014-04-24 16:10:15 +04:00
Alexander Udalov af421f53da Rename FQNAMES -> FQ_NAMES 2014-04-24 16:10:11 +04:00
Andrey Breslav bb87a6bb59 Only create lazy annotations for descriptors from code 2014-04-18 21:28:21 +04:00
Nikolay Krasko 068c9636fc Refactoring: rename TEXT to FQNAMES_IN_TYPES 2014-04-18 13:25:58 +04:00
Alexander Udalov 4c973b79ee Get rid of poorly named NotInferredVisibilitySink
Also make TraceBasedErrorReporter invoke OverrideResolver to report "cannot
infer visibility", because there's some additional logic there
2014-04-17 19:51:31 +04:00
Tal Man aeb5bae556 Refactoring of CompileTimeConstant, introduce flag to represent a constant being referenced by a variable 2014-04-09 14:47:05 -04:00
zarechenskiy 43b41f6db9 Implement formatMethod in JavaSignatureFormatter without PSI 2014-04-04 17:40:37 +04:00
zarechenskiy fe48051041 Remove acces to JavaPropertyInitializerEvaluator through ServiceLoader by injecting it in GenerateInjectors 2014-04-04 17:40:37 +04:00
zarechenskiy 2e4028ba3a Move method createArrayType to JavaType and drop JavaElementFactory 2014-04-04 17:40:36 +04:00
zarechenskiy 735df2e340 Drop getExternal method from JavaSignatureFormatter 2014-04-04 17:40:36 +04:00
Nikolay Krasko 5606c21f89 Remove synchronous VFS refresh to avoid deadlocks (KT-4584)
#KT-4584 Fixed
2014-04-04 02:10:31 +04:00
Alexander Udalov 750d3e8de7 Drop MutableClassDescriptorLite
Inline it into MutableClassDescriptor
2014-04-03 19:13:11 +04:00
Alexander Udalov a485f24217 Don't serialize signature to string to check against toString/hashCode/equals 2014-04-03 01:24:39 +04:00
Evgeny Gerashchenko 04a6b10f7a Minor. Renamed annotationDeserializer → deserializers. 2014-03-31 22:39:59 +04:00
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