Alexander Udalov
baaa3ef50a
Remove KotlinSignature annotations from project code
2015-10-13 20:29:16 +03:00
Yan Zhulanow
1f2b4e20fe
Replace get() and set() to getValue() and setValue() (property delegates)
2015-10-09 22:49:16 +03:00
Alexey Sedunov
730cc7b551
Code insight: "Generate..." actions for test framework support methods
...
#KT-9355 Fixed
2015-10-08 13:15:18 +03:00
Ilya Gorbunov
b50c106648
Replace reverse with reversed or asReversed.
2015-10-07 22:36:18 +03:00
Denis Zharkov
e52e6cf869
Temporary make SmartSet less smart
...
SmartSet is compiled both with bootstrap and new compiler, so it can't
implement both old and new Set interfaces (with 'size' as function and as property).
This commit should be reverted after bootstraping
2015-10-07 08:46:33 +03:00
Denis Zharkov
547aa2cda6
Load special java methods as properites
...
Currently only those that override special builtin properties (e.g. `Collection.size`)
Their modality is defined by method's modality
2015-10-06 23:56:17 +03:00
Dmitry Petrov
6cb0e5151c
KT-9377 Support is-checks for read-only collections
...
Intrinsics for is/as/as? with mutable Kotlin collections and related types.
2015-10-02 15:17:00 +03:00
Valentin Kipyatkov
8f1a3043de
Synthetic properties made locale-independant too
2015-09-29 18:32:25 +03:00
Valentin Kipyatkov
069ce12604
Accessor naming should be locale-independant
2015-09-29 18:32:24 +03:00
Denis Zharkov
9c4564a5a6
Get rid of deprecated annotations and modifiers in project code
2015-09-18 09:34:27 +03:00
Alexander Udalov
4bc257bd73
Minor refactoring in LazyJavaPackageScope
2015-09-16 01:44:27 +03:00
Alexander Udalov
c3cb6b62f4
Introduce SmartSet, an optimized Set implementation
...
Using it instead of LinkedHashSet for overridden descriptors optimizes memory
retained between analysis and codegen by ~5%
2015-09-10 01:18:22 +03:00
Denis Zharkov
4a3fbcc16e
Make project compilable after fixes about generic nullability
2015-08-28 18:50:26 +03:00
Alexander Udalov
d7b1e5d7a8
Improve toReadOnlyList(), consider the case when size = 1
2015-08-07 23:01:26 +03:00
Dmitry Jemerov
aa1f6f2252
code cleanup: core modules
2015-07-21 16:21:45 +02:00
Alexander Udalov
0e69ebb288
Improve stack traces of exceptions thrown by LockBasedStorageManager
...
Drop leading frames which only contain memoized functions' and lazy values'
invokes, so that the first frame corresponds to the meaningful place in the
code
2015-07-21 13:32:26 +03:00
Alexander Udalov
670565b251
Wrap property reference instance before storing to static field
2015-07-10 20:10:14 +03:00
Denis Zharkov
e13f34a8a0
Minor. Use getOrElse from stdlib
2015-07-09 16:36:43 +03:00
Denis Zharkov
1469a0aa6f
Make computation of indexed JavaTypeQualifiers eager
2015-07-09 16:36:42 +03:00
Andrey Breslav
9644eeb047
Propagating annotations into type arguments
2015-07-09 16:32:24 +03:00
Ilya Gorbunov
86f4a1b6e4
Compiler&plugin deprecations cleanup: replace streams with sequences.
2015-06-29 17:06:40 +03:00
Valentin Kipyatkov
8210d3091f
Initial implementation of KT-6427 Completion to use Java name suggestion to complete function parameters
...
(+ filtered out synthetic Kotlin classes from completion)
2015-06-25 21:57:11 +02:00
Valentin Kipyatkov
483da9607c
KT-4893 Code completion should not show multiple functions with the same signature
...
#KT-4893 Fixed
2015-06-15 18:27:21 +03:00
Alexander Udalov
48b18f18d3
Restore explicit imports of Kotlin function types in Java
...
This is a follow-up to 738a84e259 and
d4965a4f3e . Optimize imports in all files
affected in those commits, drop temporary _.kt
2015-05-26 18:46:27 +03:00
Alexander Udalov
738a84e259
Temporary hack to migrate functions to package kotlin.jvm.functions
...
Add a file in package 'kotlin.jvm.functions' to the project and replace
explicit imports of functions 'kotlin.Function{n}' to two imports 'kotlin.*'
and 'kotlin.jvm.functions.*', so that the codebase can be compiled both by the
old and by the new compiler
2015-05-26 15:04:34 +03:00
Alexander Udalov
44e35cad29
Make 'sure' an inline function with a lazy parameter
...
Also replace some other non-lazy stdlib function usages with the new lazy
'sure'
2015-04-16 13:55:06 +03:00
Valentin Kipyatkov
7a414336c1
Do not run partial body resolve if full body resolve already cached
2015-04-01 23:21:21 +03:00
Denis Zharkov
111a138a2a
Serialize secondary constructors
2015-03-11 17:45:27 +03:00
Alexander Udalov
ed022f892b
Drop JavaTypeParameter#getIndex
2015-03-07 02:32:14 +03:00
Ilya Ryzhenkov
95d4accda7
stdlib: add flatten()
2015-01-20 22:39:24 +03:00
Alexander Udalov
f447a860b1
Rename package jet -> kotlin in util.runtime (StorageManager)
...
org.jetbrains.jet.storage -> org.jetbrains.kotlin.storage
2015-01-08 23:32:08 +03:00
Alexander Udalov
f37e2f173d
Rename package jet -> kotlin in util, util-runtime
...
org.jetbrains.jet.config -> org.jetbrains.kotlin.config
org.jetbrains.jet.utils -> org.jetbrains.kotlin.utils
Also move coreLib.kt to package 'org.jetbrains.kotlin.utils'
2015-01-08 23:32:08 +03:00
Stanislav Erokhin
a5c0dda10f
Add TypeBinding.
2014-12-02 13:48:44 +03:00
Nikolay Krasko
a456f9d22e
Add ability to create memoized functions with custom maps
...
- Remove cast in ResolveSession class
2014-11-24 19:19:14 +03:00
Andrey Breslav
1b8c7aaf3d
Memory optimization. Do not put sets into caches
2014-11-05 08:30:32 +02:00
Nikolay Krasko
7e1546d3e7
Merge stored empty lists and sets to singe object
2014-11-02 14:55:00 +03:00
Andrey Breslav
87d372aad5
Memory optimization: Fewer ConcurrentHashMap.Segment instances
2014-11-01 13:40:13 +02:00
Andrey Breslav
9bd3ac26e3
toString() for easier debugging
2014-10-22 00:41:19 +04:00
Alexander Udalov
bc9aa9e34f
Don't output trailing spaces in Printer
...
Also don't output trailing empty lines in TestGenerator
2014-10-21 00:16:07 +04:00
Nikolay Krasko
555119f59a
Exceptions during 'compute' in storage manager must be processed with exception strategy
...
#KT-5134 Fixed
2014-10-02 23:37:49 +04:00
Pavel V. Talanov
8d89ac897a
Create composite exception tracker when delegating ModuleResolverProvider
...
Avoid dropping delegate caches when exception (i.e. ProcessCancelled) is thrown in delegating provider
2014-09-23 15:56:36 +04:00
Alexander Udalov
e9ae06a53e
Straighten out MemberIndex calculation in LazyJavaStaticScope
...
Also delete confusing "inn" function
2014-09-15 19:30:50 +04:00
Alexander Udalov
2055d4d72c
Remove dependency of "descriptors" on Maps/Sets
2014-08-19 12:10:28 +04:00
Alexander Udalov
aff7619206
Remove dependency of "descriptors" on StringUtil
2014-08-19 12:10:25 +04:00
Alexander Udalov
df554e7c53
Remove dependency of "descriptors" on Function/Condition/Processor
2014-08-19 12:10:24 +04:00
Pavel V. Talanov
6588310736
Add missing public modifiers in project code
2014-08-12 21:13:46 +04:00
Alexey Sedunov
96557e6d3f
DFS: Terminate traversal if node handler returns false
2014-06-23 19:32:36 +04:00
Alexey Sedunov
5e2c2b4eca
Pseudocode: Implement computation of expected type predicates
2014-06-23 19:32:25 +04:00
Andrey Breslav
42aa9e2378
Minor. Utility moved to a common place
2014-06-19 22:10:56 +04:00
Alexey Sedunov
5fc1725b33
Extract Function: Type parameters inference
2014-05-12 12:55:02 +04:00