Commit Graph

18579 Commits

Author SHA1 Message Date
Denis Zharkov e768b4e285 stdlib: Introduced filterIsInstance version
without class-literal as a parameter
2014-11-13 20:56:10 +03:00
Denis Zharkov da5164acd8 stdlib: Introduced Array<T>?.orEmpty() in JVM-stdlib 2014-11-13 20:56:10 +03:00
Denis Zharkov 73ca75cc0b Fixed wrong constructor arguments order 2014-11-13 20:56:10 +03:00
Denis Zharkov a8ca39754c Supported creating varargs of reified type parameter 2014-11-13 20:56:10 +03:00
Denis Zharkov 29b4ba9b3d Explicitly specified type of array 2014-11-13 20:56:09 +03:00
Denis Zharkov 28dc84344c Prohibit ''Nothing'' substitution of reified TP 2014-11-13 20:56:09 +03:00
Denis Zharkov b3691b7358 Frontend changes for reified type parameters
Allowing reified only for inline functions and Intrinsics
2014-11-13 20:56:09 +03:00
Denis Zharkov 79c6f2b91b Introduced parametrised markers' set 2014-11-13 20:56:09 +03:00
Denis Zharkov 46f22b5422 Test fixed 2014-11-13 20:56:08 +03:00
Denis Zharkov f00689d7c7 Made closure const instance public
because it's usage may be inlined into different package
2014-11-13 20:56:08 +03:00
Denis Zharkov 21699e1753 Supported reification for anonymous objects and lambdas 2014-11-13 20:56:08 +03:00
Denis Zharkov a689f6d243 Tracking if there is something to reify in members 2014-11-13 20:56:08 +03:00
Denis Zharkov d8e740d7a3 reifyInstructions returns Boolean whether there is something else to reify 2014-11-13 20:56:08 +03:00
Denis Zharkov 0087d861e1 Introduced new reified marker needClassReification
It's not parametrised by index
2014-11-13 20:56:08 +03:00
Denis Zharkov c19c7d0ec7 Store parameters' identifiers in ReifiedTypeParameterMappings 2014-11-13 20:56:07 +03:00
Denis Zharkov c18c67c993 Class signature reification 2014-11-13 20:56:07 +03:00
Denis Zharkov 6d6d6fadc1 Refactoring, unified closures generation 2014-11-13 20:56:07 +03:00
Denis Zharkov 45ca14345f Minor, replaced pattern of ArrayUtil.toStringArray 2014-11-13 20:56:07 +03:00
Denis Zharkov 74ca304931 Extracted buildClassReaderByInternalName into InlineCodegenUtil 2014-11-13 20:56:07 +03:00
Denis Zharkov fc1d8dd9ce javaClass<T> is supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov f3c49c605f Typecheck instructions are supported for reified T 2014-11-13 20:56:06 +03:00
Denis Zharkov 416ac7917b Removed old unused code emitting calls to non-existent methods 2014-11-13 20:56:06 +03:00
Denis Zharkov 4a66ab3627 Support generic array creation for reified inlined 2014-11-13 20:56:06 +03:00
Denis Zharkov 060c30746f Minor, extracted "kotlin/jvm/internal/Intrinsics" into IntrinsicMethods.INTRINSICS_CLASS_NAME 2014-11-13 20:56:06 +03:00
Denis Zharkov 8e3f87abaf Minor, extracted TypeUtils.isTypeParameter 2014-11-13 20:56:05 +03:00
Alexey Sedunov b09684024b Generate light classes for Kotlin inner classes
#KT-6237 Fixed
2014-11-13 17:27:33 +03:00
Alexey Sedunov da915aee7e Call Hierarchy: Do not interrupt caller hierarchy on non-local caller of local root declaration
#KT-6183 Fixed
2014-11-13 17:27:31 +03:00
Alexey Sedunov 558e038ba5 Extract Function: Replace non-denotable parameter types with their super types when possible
#KT-6187 Fixed
2014-11-13 17:27:29 +03:00
Alexey Sedunov 94efdeb3d5 Quick-fix Test: Fix file path which is passed to the FileComparisonException (so that we can update test data using text comparison UI) 2014-11-13 17:27:26 +03:00
Alexey Sedunov c487cc7838 Create From Usage: Do not generate unnecessary/skip necessary empty lines 2014-11-13 17:27:24 +03:00
Alexey Sedunov 2e7cbab453 Create From Usage: Create package by reference expression/type reference 2014-11-13 16:43:12 +03:00
Alexey Sedunov fd4fa9a042 Create Class From Usage: Allow user to choose a target directory when creating class in the specific package 2014-11-13 16:43:06 +03:00
Natalia Ukhorskaya a9f9049223 Evaluate expression: fix exception for breakpoints on object header (for accessor methods) 2014-11-13 09:47:11 +03:00
Natalia Ukhorskaya dab9411c5d Mark line numbers for bridges in closures 2014-11-13 09:47:10 +03:00
Natalia Ukhorskaya 0a97481184 Mark lineNumbers for synthetic accessors 2014-11-13 09:47:10 +03:00
Valentin Kipyatkov eb25e47a51 Temporarily disabled optimization for faster non-imported extensions completion because it causes duplicated items, added test for this problem 2014-11-12 22:23:20 +03:00
Valentin Kipyatkov b13c0f2248 Renamed methods 2014-11-12 21:57:50 +03:00
Valentin Kipyatkov 5f5d2de5e0 Moved KindFilter and DescriptorKindExclude out of JetScope, moved constants as well and renamed them 2014-11-12 21:57:49 +03:00
Valentin Kipyatkov 8e992abe58 Minor 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 25d8db37db Completion optimizations: do not search classes in java package when no SAM-constructors needed or when only singleton classifiers needed 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 95b3885aa5 Refactored filtering by descriptor kind so that no knowledge about SAM-constructors required in core 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 6711567d9a More correct types filtering in code completion 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov 2512962134 Faster completion of non-imported extensions 2014-11-12 21:25:02 +03:00
Valentin Kipyatkov ff4d91d47b Replaced usages of getAllDescriptors() from Kotlin code with getDescriptors() 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 16c7201b34 Memory optimizations 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 5696fef30f Replace HashSet's with LinkedHashSet's for consistent behavior 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 048d34b964 Minor changes after code review 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov bf38da7bb1 Made private things private 2014-11-12 21:25:01 +03:00
valentin 6729a72ef8 Completion optimization to not search classes across all modules for each modules 2014-11-12 21:25:01 +03:00
Valentin Kipyatkov 4ca6c611f8 JetScope.Empty must be public 2014-11-12 21:25:00 +03:00