Alexander Udalov
5af90c2a83
Extract some methods in codegen
...
Introduce DescriptorUtils#getInnerClasses(), which gets all descriptors from
inner classes scope and asserts that they are classes.
Inner/outer classes attributes are generated in separate methods.
2012-09-20 15:02:54 +04:00
Alexander Udalov
37fd9cea08
Place inner enum into its parent's class object
...
#KT-2771 In Progress
ClassifierCollector now collects all enum declarations inside non-static
classes. After all declarations are done, it processes these enums: creates
a class object if it's not present, reports errors on each enum if a class
object is not allowed, and puts every enum into this class object otherwise,
recording this fact to trace.
2012-09-20 15:02:13 +04:00
Alexander Udalov
c4da7f8eb2
Extract some methods in ClassifierCollector
2012-09-20 15:02:09 +04:00
Alexander Udalov
7ca22acd1f
Extract anonymous class from collectNamespacesAndClassifiers()
2012-09-20 15:02:08 +04:00
Svetlana Isakova
b081615e59
added tests for collections
2012-09-20 14:42:39 +04:00
Svetlana Isakova
45dbf36b53
added tests for kotlin signature for Map.Entry
2012-09-20 14:42:39 +04:00
Alex Tkachman
b022eec0fa
call correct methods String.valueOf/StringBuilder.append in case of byte/short. #KT-2794 fixed
2012-09-20 11:46:40 +03:00
Nikolay Krasko
a37f2e9d2d
Cache constructed scopes for files
2012-09-20 00:30:19 +04:00
Nikolay Krasko
fbe4e9f96e
KT-2710 code completion doesn't work
...
#KT-2710 In Progress
2012-09-20 00:30:18 +04:00
Andrey Breslav
bd0eab5202
Tuple migration quick fix now appears only on tupels shorter than 4
...
Longer tuples exhibit another error message.
Messages adjusted for compiler and IDE
2012-09-19 16:05:32 +04:00
Svetlana Isakova
0ccdf79051
no report 'UNNECESSARY_NOT_NULL_ASSERTION' on error types
2012-09-19 15:31:17 +04:00
Svetlana Isakova
0ff9d95704
made Map covariant on second parameter
2012-09-19 15:31:16 +04:00
Alex Tkachman
3dd9c6ab10
{} replaced by () in data classes toString
2012-09-19 13:50:50 +03:00
Svetlana Isakova
4bdeaffa04
use "JvmClassName.byFqNameWithoutInnerClasses" instead of "replace('.', '/')"
2012-09-19 13:06:25 +04:00
Svetlana Isakova
618f1b377b
added signatureName format to JvmClassName
2012-09-19 13:06:25 +04:00
Svetlana Isakova
47769ed638
tests changed after KT-2745
...
Write exact Kotlin type (if it's mapped) in signature while generating bytecode
#KT-2745 fixed
2012-09-19 13:06:25 +04:00
Svetlana Isakova
290343ed02
refactoring
2012-09-19 13:06:25 +04:00
Svetlana Isakova
d721287db6
write kotlin signature for ambiguous mapped types e.g. jet.List/MutableList for java.util.List
2012-09-19 13:06:25 +04:00
Svetlana Isakova
bfa6cc2f0a
read inner classes types from kotlin signature
2012-09-19 13:06:25 +04:00
Svetlana Isakova
305c42e15d
creation JvmClassName from class descriptor
2012-09-19 13:06:25 +04:00
Svetlana Isakova
c0334094ba
added JavaToKotlinClassMapBuilder
...
to merge the registration of mapped classes
2012-09-19 13:06:24 +04:00
Andrey Breslav
c9e9175a88
EA-37399 - ISE: OverrideResolver.findInvisibleOverriddenDescriptor
...
Each of the duplicated methods in the subclass should get the same set of overridden descriptors
2012-09-18 22:01:39 +04:00
Andrey Breslav
f8cdb7e81e
Test regenrated (data file removed in the previous commit)
2012-09-18 21:57:57 +04:00
Andrey Breslav
4c7b057dea
Cleanup
2012-09-18 21:54:14 +04:00
Andrey Breslav
884b63abac
Missing space added
2012-09-18 21:53:35 +04:00
Andrey Breslav
9c5d032fb1
Obsolete test case removed
2012-09-18 21:36:14 +04:00
Andrey Breslav
b8ef69e044
Tuple support removed from the JVM back-end
...
#KT-2358 In progress
2012-09-18 20:50:02 +04:00
Andrey Breslav
e373663a85
Tuple-related classes are deprecated
...
#KT-2358 In Progress
2012-09-18 20:47:34 +04:00
Andrey Breslav
36b5573f4d
A quick fix to replace tuples (expressions and types) by Unit, Pair and Triple
...
Changes are made to all files in the project
This quick-fix is to be removed in the next milestone
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
5eaa5b396b
Removing usages of tuples from test data
...
(KT-2358 Drop tuples)
#KT-2358 In progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
dee5152f9b
Supporting Unit.VALUE, to replace #()
...
#KT-2358 In Progress
2012-09-18 20:27:09 +04:00
Andrey Breslav
83bc835343
Assert message addded
2012-09-18 20:27:09 +04:00
Nikolay Krasko
4041d4d192
Remove ResolveSession.getResolutionScope() and extend usage of ScopeProvider.getResolutionScopeForDeclaration()
2012-09-18 19:26:57 +04:00
Nikolay Krasko
01141cfb36
Extend logging for EA-35750
2012-09-18 19:26:56 +04:00
Nikolay Krasko
db830c88b4
EA-38787 Exception because of enumeration without name
2012-09-18 19:26:56 +04:00
Nikolay Krasko
7c41ec517f
Better recovery for parameters without type
2012-09-18 19:26:54 +04:00
Nikolay Krasko
f7da4f681c
Don't fall when there's no parent descriptor for expression
...
(Example "class MaxInfo(val a = Int.<caret>)")
2012-09-18 19:26:54 +04:00
Alex Tkachman
7b066faa9f
changed behavior of componentX/toString/hashCode and equals to work naturally with overriden properties
2012-09-18 18:08:16 +03:00
Alex Tkachman
ae93018546
fix for several (unlikely all) closely related problems with handling of byte/short/char on Delvik #KT-2251 fixed
2012-09-18 16:53:55 +03:00
Alex Tkachman
0ffc8f355b
attempt to fix KT-2251
2012-09-18 14:25:09 +03:00
Natalia.Ukhorskaya
20f1ddc9da
EA-36817: add message for assert for clarify cause of exception
2012-09-18 13:16:41 +04:00
Alex Tkachman
d2c4f5c4a5
field access level change to private which it should be
2012-09-18 09:37:50 +03:00
Evgeny Gerashchenko
9cbe853cad
Better rendering for PLATFORM_CLASS_MAPPED_TO_KOTLIN.
2012-09-17 21:00:50 +04:00
Alex Tkachman
8e463ac0ac
equals generation for data classes
2012-09-17 18:48:17 +03:00
Evgeny Gerashchenko
311325883e
++Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko
8f337cbd7c
Removed 'sure' intrinsic method.
2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko
c6a040a380
Removed sure() function from built-ins.
2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko
09502433be
Added custom "sure" function in some diagnostic tests, because it is being removed from builtins.
2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko
5de734c9f3
Replaced sure() invocations with '!!' operator in diagnostic tests.
2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko
6e62212727
Replaced sure() invocations with '!!' operator in codegen tests.
2012-09-17 18:00:21 +04:00