Commit Graph

13543 Commits

Author SHA1 Message Date
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 e0f13da108 Refactoring: rename method 2013-12-27 15:03:59 +04:00
Nikolay Krasko b8ce52b995 Refactoring: remove warning 2013-12-27 15:03:58 +04:00
Jon Renner e99a90b1c2 KT-4343 getStackTrace() for Throwables 2013-12-27 12:37:48 +04:00
Andrey Breslav 5d0c267fdf Merge pull request #334 from jrenner/gen-readme
add Readme to kotlin-stdlib-gen explaining how to run code generation
2013-12-26 23:40:42 -08:00
Jon Renner 9544624755 add Readme to kotlin-stdlib-gen explaining how to run code generation 2013-12-27 15:06:19 +08:00
Alexander Udalov 453b01bbbc Fix wrong assertion in KotlinSignature line markers
Since "memberScope" comes from JavaDescriptorResolver and the latter can return
Kotlin descriptors (built-in or deserialized from another module), "container"
must not always be JavaClassDescriptor.

This assertion was reproducible on Kotlin project by opening "IntProgression"
class from runtime module
2013-12-26 22:43:23 +04:00
Valentin Kipyatkov 259d9fb891 Smart completion handlers tests made generated 2013-12-26 17:29:39 +04:00
Valentin Kipyatkov 39f07b8354 Smart completion: imports insertion + fixed both behaviour and presentation of qualified members in lookup 2013-12-26 17:29:38 +04:00
Valentin Kipyatkov f303b6dae5 Reference shortening: simplified code for getting resolve session 2013-12-26 17:28:21 +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 2daf6961b2 Do not add subpackages that are not found 2013-12-26 16:36:32 +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
Andrey Breslav 9353bfc449 Merge pull request #333 from jrenner/readme
update README - instructions for code generation
2013-12-26 04:32:36 -08:00
Jon Renner a2ba7d74d5 update README - instructions for code generation 2013-12-26 20:25:19 +08: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
Evgeny Gerashchenko c616b4baa0 Striking out deprecated functions in parameter info. 2013-12-25 20:16:13 +04:00
Evgeny Gerashchenko 56d7f2a2d5 Checking for highlighted parameter in test. 2013-12-25 20:16:13 +04:00
Valentin Kipyatkov ee62d318ee Fixed bug in reference shortening 2013-12-25 20:01:07 +04:00
Valentin Kipyatkov 906694c49a Minor refactoring in ResolveSessionUtils 2013-12-25 18:44:07 +04:00
Valentin Kipyatkov b71020efc5 Refactored reference shortening utility (added expression references shortening and rewritten to Kotlin) 2013-12-25 18:40:16 +04:00
Andrey Breslav fa8127d1a0 Merge pull request #329 from jrenner/patch-1
fix typo
2013-12-25 00:54:34 -08:00
Jon Renner afde10093f fix typo 2013-12-25 13:37:23 +08:00
Evgeny Gerashchenko bd4073932b Generating inner suites when dir is not empty, but has not files related to current test. 2013-12-24 23:15:28 +04:00
Evgeny Gerashchenko 90ad65bff8 Made rename refactoring inplace for loop, catch and function literal parameters.
#KT-1296 fixed
2013-12-24 22:30:28 +04:00
Nikolay Krasko 600bb49894 Use actions instead of commands 2013-12-24 22:00:59 +04:00
Nikolay Krasko 9dfe399bf1 Fix infinite analyze in Java files after opening Kotlin view in Kotlin file 2013-12-24 22:00:58 +04:00
Nikolay Krasko fdeee587b7 Refactoring: extract common code with infinite cycled long running task 2013-12-24 22:00:58 +04:00
Alexander Udalov 571adf3acc Support references to local extensions in codegen 2013-12-24 20:41:20 +04:00
Alexander Udalov d3a811aa7e Support closures in codegen for callable references 2013-12-24 20:41:20 +04:00
Alexander Udalov 596b1622a3 Add tests on callable references
Object members and accessors for private class members
2013-12-24 20:41:20 +04:00
Alexander Udalov 363fe607fc Support local function references in codegen
#KT-3704 In Progress
 #KT-1183 In Progress
2013-12-24 20:41:19 +04:00
Alexander Udalov 07648583ed Minor refactoring in callable reference codegen
Don't store an extra field for functionDescriptor, since it's available from
the superclass as "callableDescriptor". Store a referenced function descriptor
instead
2013-12-24 20:41:19 +04:00
Alexander Udalov 00cad9df91 Include error type in error message
Everything besides it is almost always useless: descriptor is usually
ERROR_CLASS, declarations are usually nulls because they come from a different
module
2013-12-24 20:41:19 +04:00
Alexander Udalov 8695a0e283 Minor, FieldInfo.toString() 2013-12-24 20:41:19 +04:00
Alexander Udalov 0e9c530567 Simplify function invocation in ExpressionCodegen
Callee is now generated only when it could be non-trivial, which is only the
case when generating function call in invokeFunction()
2013-12-24 20:41:19 +04:00
Alexander Udalov 351aa30141 Simplify code in StackValue$CollectionElement 2013-12-24 20:41:19 +04:00