Commit Graph

13532 Commits

Author SHA1 Message Date
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
Alexander Udalov ece549b4d4 Minor, unindent code 2013-12-24 20:41:19 +04:00
Andrey Breslav 22bc499b96 Check header kind when deserializing from class files 2013-12-24 19:21:53 +04:00
Andrey Breslav 5f20450053 Preserve exception cause in LockBasedStorageManager 2013-12-24 19:21:52 +04:00
Alexey Sedunov d00b17c621 Method rename 2013-12-24 12:10:55 +04:00
Alexey Sedunov fbb03afc0f Remove unjustified assertions 2013-12-24 12:10:54 +04:00
Alexey Sedunov 6a9c535129 Navigate to containing declaration in case of local class 2013-12-24 12:10:53 +04:00
Alexey Sedunov 1e66a346d7 Use unsafe qualified names instead of safe ones in FQNAME_TO_CLASS_DESCRIPTOR slice 2013-12-24 12:10:53 +04:00
Alexey Sedunov c20ee310d0 Add support of local classes/objects declared in class constructor parameters 2013-12-24 12:10:52 +04:00
Alexey Sedunov 34e80056eb Don't create PsiMethod wrapper when it's not necessary 2013-12-24 12:10:51 +04:00
Alexey Sedunov fffddc3e87 Minor: Restructured KotlinLightClassForExplicitDeclaration, removed assertions 2013-12-24 12:10:50 +04:00
Alexey Sedunov f94f391a4e Use scope based on constructor descriptor (rather than class itself) when
resolving class initializers
2013-12-24 12:10:49 +04:00