Commit Graph

13391 Commits

Author SHA1 Message Date
Valentin Kipyatkov 24b68e7bdf Completion: better replacement range calculation for both basic and smart completions 2013-12-19 16:07:46 +04:00
Valentin Kipyatkov d28705a5ec Smart completion to ignore context after the caret 2013-12-19 16:07:46 +04:00
Svetlana Isakova dd6940be41 added CHECK_TYPE directive to diagnostic tests 2013-12-19 13:01:05 +04:00
Natalia Ukhorskaya c9a600a405 Fix for varargs as annotation arguments #KT-4326 Fixed 2013-12-18 15:13:53 +04:00
Natalia Ukhorskaya 145c7811a8 Named vararg arguments: don't allow to use array without spread, allow to use one value of vararg type
#KT-3802 Fixed
2013-12-18 15:13:52 +04:00
Alexander Udalov 3a57694ddd Minor, NotNull annotations 2013-12-17 21:49:31 +04:00
Alexander Udalov 11f33c9399 Reorganize JVM intrinsics
Make IntrinsicMethod an abstract class, coerce the resulting value of the
intrinsic to the expected type
2013-12-17 21:49:31 +04:00
Alexander Udalov 24678f189e Make intrinsic method always generate value of expected type on stack
IntrinsicMethod.generate()'s return value is 'StackValue.onStack(returnType)'
and will be dropped
2013-12-17 21:49:30 +04:00
Valentin Kipyatkov 843a005aec Fixed KT-4318 Keyword should be selected in completion if there's exact match
#KT-4318 Fixed
2013-12-17 21:17:56 +04:00
Evgeny Gerashchenko 17cf488cc6 Removed redundant tests for loading builtins. 2013-12-17 20:29:00 +04:00
Evgeny Gerashchenko b7cfd676bf Merged LoadCompiledKotlin test int LoadJavaTest. 2013-12-17 20:28:59 +04:00
Evgeny Gerashchenko 62f44f7ed0 Minor. Reordered test methods. 2013-12-17 20:28:58 +04:00
Evgeny Gerashchenko 1c25c971e0 Corrected test error message. 2013-12-17 20:28:58 +04:00
Evgeny Gerashchenko 790981ba2b Minor. Typo. 2013-12-17 20:28:57 +04:00
Evgeny Gerashchenko 6adec744f1 Migrated kdoc to package views & fragments instead of namespace descriptors. 2013-12-17 20:28:57 +04:00
Evgeny Gerashchenko a49551dd35 Introduced getFqNameSafe method. 2013-12-17 20:28:57 +04:00
Evgeny Gerashchenko 3352d8a954 Minor. Renamed method. 2013-12-17 20:28:56 +04:00
Evgeny Gerashchenko e175ebf60a Rendering package FQ names instead of short names. 2013-12-17 20:28:56 +04:00
Evgeny Gerashchenko 212d303c7b Modified test checking visibility of class objects. 2013-12-17 20:28:55 +04:00
Evgeny Gerashchenko ecd5dc60ad Correctly checking visibility from package view. 2013-12-17 20:28:55 +04:00
Evgeny Gerashchenko 5c22787c15 Simplified API of JetNamespaceHeader and its usages. 2013-12-17 20:28:55 +04:00
Evgeny Gerashchenko df1e92959e Generified subpackages obtaining, fixed it for mixed packages. 2013-12-17 20:28:54 +04:00
Evgeny Gerashchenko 3de7f7646b Better assertion. 2013-12-17 20:28:54 +04:00
Evgeny Gerashchenko 20cafec423 Using default toString(). 2013-12-17 20:28:53 +04:00
Evgeny Gerashchenko de6f25ff1b Removed unused method. 2013-12-17 20:28:53 +04:00
Evgeny Gerashchenko 0f2d9cfbc3 Removed passing of RedeclarationHandler (in code before refactoring it was always DO_NOTHING). 2013-12-17 20:28:53 +04:00
Evgeny Gerashchenko fbd398fd8e Added test for finding subpackages in mixed Java & compiled Kotlin package. 2013-12-17 20:28:52 +04:00
Evgeny Gerashchenko 00f0ad2eda Minor. Removed unused test method. 2013-12-17 20:28:52 +04:00
Evgeny Gerashchenko d198c202e3 Minor. Moved method. 2013-12-17 20:28:51 +04:00
Evgeny Gerashchenko c472cb682f Minor. Moved method. 2013-12-17 20:28:51 +04:00
Evgeny Gerashchenko 1cb13fce12 Minor. Simplified code in KotlinBuiltIns. 2013-12-17 20:28:51 +04:00
Evgeny Gerashchenko 73114d7e9c Fragment providers added on higher level. 2013-12-17 20:28:50 +04:00
Evgeny Gerashchenko 3f790f5f0c Minor. Nullability annotations. 2013-12-17 20:28:49 +04:00
Evgeny Gerashchenko e680567290 Restored test code for deserialized scopes. 2013-12-17 20:28:49 +04:00
Evgeny Gerashchenko d64cfa04e9 Simplified method. 2013-12-17 20:28:49 +04:00
Evgeny Gerashchenko 30e668634c Locking scopes of MutablePackageFragmentDescriptors. 2013-12-17 20:28:48 +04:00
Evgeny Gerashchenko 98ad890b60 Extracted method for finding exactly one fragment. 2013-12-17 20:28:48 +04:00
Evgeny Gerashchenko 1bbe9b0bd4 Removed DescriptorFinder.findPackage. 2013-12-17 20:28:47 +04:00
Evgeny Gerashchenko 557aaf363a Renamed method and got rid of some usages. 2013-12-17 20:28:47 +04:00
Evgeny Gerashchenko ad7044cc6c Fixed resolving references to packages in plugin. 2013-12-17 20:28:46 +04:00
Evgeny Gerashchenko fbdc31790b Allowed "rewriting" unresolvedCache elements.
This is used to fix tests. The fix is pretty dirty, but related code is going to be thrown away anyway.
2013-12-17 20:28:46 +04:00
Evgeny Gerashchenko bf0daf4b20 Minor. Renamed method. 2013-12-17 20:28:46 +04:00
Evgeny Gerashchenko 5d0381f073 Using FqName instead of FqNameUnsafe for package predicate. 2013-12-17 20:28:45 +04:00
Evgeny Gerashchenko 78e40114ca More straightforward caching. 2013-12-17 20:28:45 +04:00
Evgeny Gerashchenko e18173cbac Made scope in JavaPackageFragmentDescriptor final. 2013-12-17 20:28:44 +04:00
Evgeny Gerashchenko 601cd4ce46 Migrated JS backend to package views and fragments. 2013-12-17 20:28:44 +04:00
Evgeny Gerashchenko aa2ff87b47 Simplified intrinsics matching in JS backend. 2013-12-17 20:28:44 +04:00
Evgeny Gerashchenko 28ef7495af Removed obsolete code in codegen for 'var' parameters captured in closure. 'Var' parameters are forbidden now. 2013-12-17 20:28:43 +04:00
Evgeny Gerashchenko e625a3a869 Cleanup of CheckLocalVariablesTableTest 2013-12-17 20:28:43 +04:00
Evgeny Gerashchenko 9d2b79c631 Migrated CliLightClassGenerationSupport to package views. 2013-12-17 20:28:42 +04:00