Andrey Breslav
ce18d5ad8c
KotlinClassHeader.read() removed
2014-01-09 20:41:44 +04:00
Andrey Breslav
8f8b85101e
All IDE code uses VirtualFileFinder instead of KotlinClassFinder + proper service discovery
2014-01-09 20:41:43 +04:00
Andrey Breslav
b3f4527bb8
KotlinJvmBinaryClass now has a getClassHeader() method
2014-01-09 20:41:43 +04:00
Andrey Breslav
7fc9772930
Direct instantiations of VirtualFileKotlinClass are replaced by access to caching service
2014-01-09 20:41:43 +04:00
Andrey Breslav
6c1f579c6d
VirtualFileFinder and KotlinClassFinder effectively merged (through inheritance)
...
This is needed to implement caching of KotlinJvmBinaryClass instance inside CliVirtualFileFinder that relies on reading class headers for filtering
2014-01-09 20:41:43 +04:00
Andrey Breslav
8fcaf511dc
Methods renamed to avoid ambiguity
2014-01-09 20:41:43 +04:00
Alexey Sedunov
5fcf9ca448
Fix error message in test data
2014-01-09 19:16:45 +04:00
Alexey Sedunov
446941257b
KT-4392 #Fixed
2014-01-09 15:20:17 +04:00
Pavel V. Talanov
e693820fb4
Auto-imports for operator calls and infix calls
...
#KT-1613 Fixed
#KT-4192 Fixed
Enable auto-import fix for "unresolved reference with wrong receiver" diagnostic
2013-12-31 13:24:38 +04:00
Natalia Ukhorskaya
9fb3a22a39
Prohibit modifiers on initializer #KT-4364 Fixed
2013-12-31 12:41:54 +04:00
Andrey Breslav
161998d2b8
Recursion detection fixed for memoized functions
2013-12-30 19:43:17 +04:00
Alexander Udalov
0a552dbb04
Delete outdated hack
2013-12-30 06:41:13 +04:00
Alexander Udalov
713c6f13ae
Fix primitive override problem in Kotlin-Java inheritance
...
See the comment in JetTypeMapper
2013-12-30 06:41:09 +04:00
Alexander Udalov
2ea62bde23
Add equals/hashCode/toString for JVM signatures
2013-12-30 04:15:30 +04:00
Alexander Udalov
603c207a9c
Minor inline in BothSignatureWriter + toString()
2013-12-30 04:15:29 +04:00
Alexander Udalov
6a6d7bd236
Refactor JvmMethodSignature
...
Rename kotlinParameterTypes -> valueParameters. Inline some other methods
2013-12-30 04:15:28 +04:00
Alexander Udalov
d73b2057e3
Refactor CallableMethod, add convenient methods
...
It no longer exposes its JvmMethodSignature
2013-12-30 04:15:27 +04:00
Alexander Udalov
28d2306aa1
Add a convenient method JvmMethodSignature.getReturnType()
2013-12-30 04:15:26 +04:00
Alexander Udalov
fe96e64bd4
Minor refactoring in JetTypeMapper.mapReturnType
2013-12-30 04:15:25 +04:00
Alexander Udalov
d8c5b0236d
Fix incorrect usage of mapReturnType in param assertions
2013-12-30 04:15:24 +04:00
Alexander Udalov
2553cd1907
Refactor JetTypeMapper.mapToCallableMethod parameters
...
Pass CodegenContext instead of two parameters that are always calculated by it
and instead of the other one which is always OwnerKind.IMPLEMENTATION (except a
single case where it was context.kind, but that case doesn't seem to matter)
2013-12-30 04:15:23 +04:00
Alexander Udalov
49a4abbc9e
Minor renames and refactorings related to JetTypeMapper
2013-12-30 04:15:22 +04:00
Alexander Udalov
ace326f4cf
Remove JetTypeMapper.map{G,S}etterSignature
...
Merge their logic with mapSignature()
2013-12-30 04:15:21 +04:00
Alexander Udalov
e531bebe06
Remove JetTypeMapper.mapConstructorSignature()
...
Move its code to mapSignature with the idea of a future unification of all
signature mapping
2013-12-30 04:15:20 +04:00
Alexander Udalov
fec3030142
Delete different mapSignature() overloads
...
JetTypeMapper now is fully aware of the name it should choose for the mapped
method. The only exception is SAM conversion in ClosureCodegen, where the name
must be replaced
2013-12-30 04:15:19 +04:00
Alexander Udalov
22883374ac
Drop BothSignatureWriter.needGenerics
...
It's OK to always make JVM generic signature since it's already constructed at
the end anyway
2013-12-30 04:15:18 +04:00
Alexander Udalov
135accea1d
Extract and use name-mapping method in JetTypeMapper
...
It doesn't ever make sense to create JVM method signatures with names that come
directly from descriptors; we need to map some of them (<get-?> for property
accessors, <anonymous> for local functions/lambdas)
2013-12-30 04:15:15 +04:00
Alexander Udalov
8e753e6efd
Don't pass useless closure parameter to JetTypeMapper
...
It should always be recorded in BindingContext
2013-12-27 19:00:01 +04:00
Alexander Udalov
a84b984417
Minor, delete useless utilities
2013-12-27 19:00:01 +04:00
Svetlana Isakova
4657a4b271
fixed bug in renderer for violated upper bound error
2013-12-27 16:02:16 +04:00
Svetlana Isakova
c3ff6a2430
fixed exponential building of cf graph
...
if there was en error in chained qualified expression
2013-12-27 16:02:16 +04:00
Svetlana Isakova
7055ce2a1f
added CFPContext to avoid recreating of CFPVisitor all the time;
...
used JetVisitorVoidWithParameter
2013-12-27 16:02:16 +04:00
Svetlana Isakova
4fe9fd20f3
added JetVisitorVoidWithParameter
2013-12-27 16:02:16 +04:00
Svetlana Isakova
66b8fc529f
unified JetVisitor & JetVisitorVoid
2013-12-27 16:02:15 +04:00
Svetlana Isakova
531d337486
changed default positioning strategy:
...
added special handling for JetObjectLiteralExpression
2013-12-27 16:02:15 +04:00
Svetlana Isakova
d4c2a542eb
fixed 'getSliceContents'
...
do not throw an exception when some slices were overwritten
2013-12-27 16:02:15 +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
Mikhael Bogdanov
c9c50e4107
KT-4348: Array access operator overloading doesn't work with vararg's
...
#KT-4348 Fixed
2013-12-26 17:07:58 +04:00
Andrey Breslav
9d6d071cfb
Logic in JetTypeMapper simplified: looking up Java classes directly
2013-12-26 16:36:32 +04:00
Andrey Breslav
4eb6228ce0
Better assertions message
2013-12-26 16:36:31 +04:00
Andrey Breslav
b6c5407aa0
Implementation-specific checks removed from LoadJava test
2013-12-26 16:36:31 +04:00
Andrey Breslav
debacf0554
Instances of ChainedScope should always have a debugMessage
2013-12-26 16:36:31 +04:00
Natalia Ukhorskaya
18f4a20aa5
Regenerate OperationsMapGenerated.kt
2013-12-26 14:04:24 +04:00
Natalia Ukhorskaya
5c88c8c58f
Make CompileTimeConstant abstract class
2013-12-26 13:50:28 +04:00
Natalia Ukhorskaya
292e825fac
Increase timeout for android tests
2013-12-26 13:50:27 +04:00
Natalia Ukhorskaya
f2f1a1313d
Add jdk jars to kotlin classpath
...
#KT-4214 Fixed
2013-12-26 13:50:10 +04:00
Evgeny Gerashchenko
4bc94e86c0
Removed unreachable code.
2013-12-25 21:12:24 +04:00
Evgeny Gerashchenko
513be47544
KT-4349 Make jet.Boolean implement Comparable
...
#KT-4349
2013-12-25 21:07:55 +04:00
Valentin Kipyatkov
906694c49a
Minor refactoring in ResolveSessionUtils
2013-12-25 18:44:07 +04:00