Commit Graph

572 Commits

Author SHA1 Message Date
Natalia Ukhorskaya c66af565f6 Make LineNumberTest auto-generated 2014-12-23 14:40:25 +03:00
Pavel V. Talanov 6362336208 Test stubs for compiled Kotlin files 2014-12-21 14:23:26 +03:00
Valentin Kipyatkov 8e1af2b720 Fixed occasional insertions of fq-names by completion and similar effects
#KT-6182 Fixed
 #KT-6111 Fixed
2014-12-18 15:48:26 +03:00
Michael Nedzelsky 9f0f930e26 JS backend: tests for KT-6323 KotlinJS library modules 2014-12-18 02:08:52 +03:00
Svetlana Isakova cd359a046c Added captured types and approximation
CapturedType captures type projection while solving the constraint system.
During the substitution type containing captured types is approximated
to get rid of captured types and (for simple cases) replace them with corresponding type projections.

Note that Array<Array< CapturedType(out Int) >> is (over)approximated by Array<out<Array<out Int>>

See 'Mixed-site variance' by Ross Tate for details.

 #KT-2570 Fixed
 #KT-2872 Fixed
 #KT-3213 Fixed
2014-12-12 23:08:27 +03:00
Michael Nedzelsky 5f57605b81 add tests for js-maven projects 2014-12-12 03:04:07 +03:00
Zalim Bashorov af82e69214 JS tests: added tests for dynamic. 2014-12-11 13:17:49 +03:00
Zalim Bashorov 65ef7525ce Allow to use dynamic types for JS projects in IDEA. 2014-12-10 22:48:00 +03:00
Dmitry Jemerov 0512b8ce1a add test to verify output files; correctly handle lambdas 2014-12-08 12:51:08 +01:00
Alexander Udalov 07cfc173f9 Add ProtoBufConsistencyTest
This test checks that indices of all extensions on the same message type are
unique across different extension points (JVM, built-ins, ...)
2014-12-03 16:10:20 +03:00
Alexander Udalov 9a86318908 Introduce extension for built-ins serialization, drop .kotlin_class_names 2014-12-03 15:58:14 +03:00
Andrey Breslav 6efa0032e5 GenerateInjectors cleaned up 2014-12-03 15:39:12 +03:00
Andrey Breslav c21dd366e0 Checks for primitive types and arrays made static in KotlinBuiltIns 2014-12-03 15:39:11 +03:00
Nikolay Krasko 75c887048e Drop AbstractLazyResolveRecursiveComparingTest test
Test data from compiler/testData/lazyResolve/ was moved to diagnostics tests
2014-12-03 14:08:23 +03:00
Nikolay Krasko dd79fd9a98 Remove tests - same is tested in AbstractLoadJavaTest 2014-12-03 14:08:22 +03:00
Nikolay Krasko a0a292cbf5 Drop AbstractLazyResolveDescriptorRendererTest with DescriptorRendererTest refactoring 2014-12-03 14:08:21 +03:00
Nikolay Krasko 44aba2d761 Drop lazy tests: test data is used in ResolveTestGenerated.Imports 2014-12-03 14:08:20 +03:00
Natalia Ukhorskaya b056fd7e2e Add test for completion with runtime type cast 2014-12-03 12:49:38 +03:00
Stanislav Erokhin a5c0dda10f Add TypeBinding. 2014-12-02 13:48:44 +03:00
Denis Zharkov 0d03253f4e DependencyInjectorGenerator: reified extensions
1. Introduced reified extensions
2. Replaced extensions accepting varargs with ones
that accept single reified argument (it's looks more concise)
2014-12-01 22:31:53 +03:00
Andrey Breslav 6187a0e9e0 Fix for UNSUPPORTED diagnostic for dynamic types in local classes 2014-12-01 20:43:46 +03:00
Andrey Breslav 20513abe04 Allow dynamic types only in some contexts 2014-12-01 20:43:38 +03:00
Zalim Bashorov 31d4a8c226 JS frontend: added tests for nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:38 +03:00
Zalim Bashorov c06d70d190 JS frontend: added checkers for nativeInvoke, nativeGetter, nativeSetter. 2014-12-01 15:27:36 +03:00
Nikolay Krasko ce45108fe9 LTDA: Add addition scope provider component for lazy resolve and create additional injector for REPL 2014-11-28 17:18:47 +03:00
Nikolay Krasko 4342740195 Refactoring: move common code for ResolveSession init to method 2014-11-28 17:18:46 +03:00
Nikolay Krasko d15ff6da45 LTDA: Make resolve session field non-public in JS injector 2014-11-28 17:18:45 +03:00
Nikolay Krasko 571f3c8524 LTDA: Initialize project components with resolve session after injector construction is finished 2014-11-28 17:18:39 +03:00
Nikolay Krasko 53b699d745 LTDA: Injector with Lazy TDA for JS target 2014-11-28 17:18:38 +03:00
Nikolay Krasko 994c8886bc LTDA: Initialize built-ins reference resolver with lazy tda 2014-11-28 17:18:37 +03:00
Nikolay Krasko 23c6498e1e LTDA: Injector with lazy TDA for JVM target
- REPL is broken
 - Tests for Kotlin - Java - Kotlin hierarchy may fail
2014-11-28 17:18:36 +03:00
Alexander Udalov 8dae1b62dd Add CharSequence.subSequence
This is done primarily for JVM interoperability, otherwise it's impossible to
inherit from CharSequence there. On JS subSequence at the moment just invokes
substring.

 #KT-5956 Fixed
2014-11-27 20:38:19 +03:00
Evgeny Gerashchenko 19ad2406ff Moved test data into common directory. 2014-11-26 14:32:12 +03:00
Alexander Udalov 7d43f39c80 Fix disappearing exceptions in GenerateProtoBuf.kt
Any exception caught during the generation (e.g. about an incompatible version)
is lost because of 'System.exit(0)' in 'finally'
2014-11-25 23:16:28 +03:00
Alexander Udalov e1a1c06c3e Rename deserialization context for Java to "components"
Simplify its injection to DeserializedDescriptorResolver
2014-11-25 23:15:49 +03:00
Valentin Kipyatkov c5afc219b9 Added assert + removed qualified names 2014-11-24 20:11:29 +03:00
Valentin Kipyatkov ddc60ac5dd Better injecting of partial body resolve filter 2014-11-24 20:11:28 +03:00
Valentin Kipyatkov a675b5ba38 Basic implementation of partial body resolve 2014-11-24 20:11:23 +03:00
Svetlana Isakova b71260f54e Moved tests
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00
Svetlana Isakova 8ad017c071 Extracted 'deparenthesizeArgument', used it where necessary
#KT-6176 Fixed
2014-11-21 14:02:41 +03:00
Nikolay Krasko ad05b5a709 Injector for additional body resolve with lazy analyzer
Fix resolve JS modules with JVM resolver
2014-11-18 17:10:21 +03:00
Valentin Kipyatkov 3ebc681eec Behavior on typing chars with code completion lookup is completely defined by our own handler + added tests for this handler + fixed a few bugs related to this behavior 2014-11-17 22:06:15 +03:00
Nikolay Krasko cb2a9168a7 Dropped redundant interface 2014-11-17 16:15:23 +03:00
Alexander Udalov 93696ff9bd Make Array.indices extension property, move to stdlib
This is not something that needs to be intrinsified. Note that compiler
optimizations are still possible and the fact whether 'indices' is a member or
an extension is irrelevant to the optimizer
2014-11-17 15:20:44 +03:00
Alexander Udalov 128c938965 Make Array.size() a function instead of a property
Also add a deprecated extension property to help migration. This is done to
unify getting size of arrays and collections
2014-11-17 15:02:38 +03:00
Valentin Kipyatkov ff4d91d47b Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors() 2014-11-12 21:25:01 +03:00
Nikolay Krasko ccb6aec5ee Fix changing files after running Generated Test configuration 2014-11-12 20:35:01 +03:00
Alexander Udalov d3f210f73c Move SAM resolution to frontend.java 2014-11-11 18:10:42 +03:00
Alexander Udalov 4350da5f24 Extract SAM constructor resolution logic to a component 2014-11-11 18:10:40 +03:00
Andrey Breslav 7d9be42969 LazinessTokens introduced to enable/disable building lazy types 2014-11-08 15:51:41 +02:00