Michael Bogdanov
758c147835
Analyze inlined declarations in bytecode toolwindow
2015-02-19 10:32:00 +03:00
Pavel V. Talanov
d6a942a574
Remove all deprecated OBJECT$ usages from project code
2015-02-18 19:33:56 +03:00
Evgeny Gerashchenko
48a6fb37f9
Worked around private method. There should be API available, anyway.
2015-02-18 18:53:37 +03:00
Nikolay Krasko
07d58b55eb
Synchronize KotlinJavaPsiFacade with JavaPsiFacadeImpl
2015-02-18 18:51:58 +03:00
Alexander Udalov
042230fefc
Using factory method instead of deprecated constructor.
2015-02-18 18:51:57 +03:00
Nikolay Krasko
45a3b47664
Fix compilation once again
2015-02-18 18:51:56 +03:00
Nikolay Krasko
20b7a55bf2
Add overrides in order to fix compilation errors
2015-02-18 18:51:55 +03:00
Nikolay Krasko
a49a206de3
Get containing file from original method
2015-02-18 18:51:54 +03:00
Nikolay Krasko
5d3d446ea4
Now PsiElementFinderImpl is registered via extension but it hadn't been added to JavaCoreProjectEnvironment
2015-02-18 18:51:53 +03:00
Alexey Kudravtsev
28b7d71ab7
Registering extension points manually in JetCoreEnvironment. They are not registered by IDEA's core environment code anymore.
2015-02-18 18:51:52 +03:00
Natalia Ukhorskaya
43249e928c
Fix tests with annotations: enum constants are now resolved as constants in JavaConstantExpressionEvaluator
2015-02-18 18:51:52 +03:00
Evgeny Gerashchenko
b1840ebd99
Suppressing unused parameter annotation when function is entry point.
2015-02-18 13:37:36 +03:00
Andrey Breslav
ab93b530f1
Don't use annotations after nullability was forced upon a platform type
...
#KT-6762 Fixed
#KT-6763 Fixed
2015-02-17 18:44:46 +03:00
Alexander Udalov
a960d2d785
Fix "No descriptor for enum entry" exception
...
EA-52557, EA-64887
2015-02-17 15:31:45 +03:00
Alexander Udalov
e705ff2517
Write KotlinSyntheticClass annotation on when-by-enum mapping classes
2015-02-16 21:46:22 +03:00
Alexander Udalov
6ce8d6bd2e
Serialize descriptors for local/anonymous classes on JVM
...
Reflection needs this information to work for local classes and anonymous
objects
2015-02-16 21:46:21 +03:00
Alexander Udalov
0d05fca838
Support serialization/deserialization of local classes
...
Most of these changes are aimed to support and correctly transform ClassId for
local classes, no actual bytes are written or read at the moment (see next
commits). See the comment on ClassId for clarification.
A hack in DescriptorSerializer which erased anonymous types to Any (which had
been breaking the consistency between descriptors resolved from sources and
from serialized information) is now gone
2015-02-16 20:19:54 +03:00
Alexander Udalov
5d8ae3ed6a
Minor, refactor some constants in JvmAnnotationNames
...
Declare KotlinClass similarly to KotlinSyntheticClass, this will be used later
2015-02-16 20:19:52 +03:00
Alexander Udalov
fdfe3fd73b
Minor, serialize/deserialize local visibility
...
Also support non-subsequent enum values in Flags
2015-02-16 20:19:51 +03:00
Alexander Udalov
e812c4e67f
Introduce KotlinSyntheticClass.Kind.LOCAL_TRAIT_IMPL
2015-02-16 20:19:50 +03:00
Alexander Udalov
ce26ce0458
Drop "extra visibility" from binary format
...
Descriptors of Kotlin symbols should always have a visibility known to Kotlin
2015-02-16 20:19:49 +03:00
Alexander Udalov
45fec9257a
Minor, move replaceHashWithStar to JetTestUtils
2015-02-16 20:19:48 +03:00
Alexander Udalov
37da154ea2
Minor, move builtins serializer test data
2015-02-16 20:19:47 +03:00
Alexander Udalov
17c930c84f
Use abstract factory for reflection objects on JVM
...
Introduce an abstract factory class ReflectionFactory which is responsible for creating
reflection objects (KClass, KProperty, ...). The meaningful implementation is
located in "reflection.jvm" where KClassImpl/KPropertyImpl/... are accessible
and can be instantiated. The default implementation will be used in the lite
runtime with no reflection and will return nulls / throw exceptions there.
Put all functions, calls to which are generated by JVM back-end, in one place:
the class named Reflection which contains only static methods. Previously these
functions were scattered across different files in module "reflection.jvm".
The code using reflection may now be compiled against either runtime, but
reflection features will work if and only if reflection is accessible at
runtime
2015-02-16 20:19:13 +03:00
Andrey Breslav
54483dbb95
KT-6118 Redundant type cast can be not redundant?
...
#KT-6118 Fixed
2015-02-16 18:50:10 +03:00
Andrey Breslav
c61a29d4f5
KT-6774 Cannot find equals() when comparing with null
...
#KT-6774 Fixed
2015-02-16 18:50:09 +03:00
Pavel V. Talanov
df90f16492
Increase stub version
2015-02-16 15:38:49 +03:00
Pavel V. Talanov
96e54b4872
Test accessing class object from java
2015-02-16 15:38:45 +03:00
Pavel V. Talanov
ed5e2a21d1
Restore some of the tests for deprecated OBJECT$ field
2015-02-16 15:38:45 +03:00
Pavel V. Talanov
2d59791cf2
Improve LazyClassDescriptor#getDefaultObjectDescriptor()
...
To cover the case when default object's name is not unique (redeclaration)
(Calling getClassifier is wrong for this case)
2015-02-16 15:38:44 +03:00
Pavel V. Talanov
b6b83a4683
Minor: Add validation for ClassDescriptor#getDefaultObjectDescriptor() new contract
2015-02-16 15:38:44 +03:00
Pavel V. Talanov
766912c590
Generate additional deprecated "OBJECT$" field for class object
...
To avoid breaking some code for now
It should be removed later
2015-02-16 15:38:43 +03:00
Pavel V. Talanov
7d5c0dc8bf
Refactor: ImplementationBodyCodegen#generateFieldForSingleton()
2015-02-16 15:38:43 +03:00
Pavel V. Talanov
f482768acf
Introduce ClassDescriptor#getDefaultObjectDescriptor()
...
ClassDescriptor#getClassObjectDescriptor (with old semantics) is now a utility
Process usages and replace with calls to a new method where appropriate
2015-02-16 15:38:42 +03:00
Pavel V. Talanov
945072a129
Drop DeserializedResolverUtils and it's usages
2015-02-16 15:38:41 +03:00
Pavel V. Talanov
514a551c04
Update diagnostics test for many class objects
2015-02-16 15:38:38 +03:00
Pavel V. Talanov
0ea69dea95
Update duplicate jvm signature test for class objects
2015-02-16 15:38:37 +03:00
Pavel V. Talanov
1972c2f177
Update test data for various tests
...
Due to slight semantic changes after class object refactor
2015-02-16 15:38:37 +03:00
Pavel V. Talanov
7b837e2631
Updata test data: txt files for diagnostics tests
2015-02-16 15:38:36 +03:00
Pavel V. Talanov
75f55dd99a
Update test data that mentioned old <class-object-for-..> name
2015-02-16 15:38:35 +03:00
Pavel V. Talanov
35b88fb1a5
Update test data for write flags test
2015-02-16 15:38:34 +03:00
Pavel V. Talanov
a1f4c06a49
Update test data that mentioned old JvmAbi constants
2015-02-16 15:38:34 +03:00
Pavel V. Talanov
e4b206726d
Minor: slightly improve positioning strategy for redeclaration on class object
2015-02-16 15:38:32 +03:00
Pavel V. Talanov
4132946be2
Minor: Override getTextOffset() in JetObjectDeclaration
...
Availability of some intentions depends on this
2015-02-16 15:38:32 +03:00
Pavel V. Talanov
d9d3f68a39
Drop JetClassObject element and its usages
...
as class objects are now represented by JetObjectDeclaration element
2015-02-16 15:38:31 +03:00
Pavel V. Talanov
be7f5d01bb
Update JetObjectDeclaration after parser changes to parser
2015-02-16 15:38:31 +03:00
Pavel V. Talanov
f1942b1a74
Parser: do not produce CLASS_OBJECT element
...
"class object" is parsed into OBJECT_DECLARATION instead
2015-02-16 15:38:30 +03:00
Pavel V. Talanov
42d2b97c09
Remove all class object related constants and utils from JvmAbi
2015-02-16 15:38:30 +03:00
Pavel V. Talanov
894c3bceac
Test: add jvm backend test for named class object
2015-02-16 15:38:29 +03:00
Pavel V. Talanov
72f94963ab
Tests: add resolve test for named class object
2015-02-16 15:38:28 +03:00