Valentin Kipyatkov
487501a7a4
Fixed test data after changes in parser
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
d84020b1f3
Removed special support for parsing annotations for multi-declaration in for
2015-10-15 19:20:08 +03:00
Valentin Kipyatkov
98dc8f234e
Drop suppport for annotation syntax without '@' from parser
2015-10-15 19:20:07 +03:00
Ilya Gorbunov
d8ba854036
Fixes and cleanup in stdlib generator after builtin renames.
2015-10-15 18:35:11 +03:00
Ilya Gorbunov
a5ccecfc3d
StdLib generator: refactor deprecation DSL to be able to set deprecation level.
2015-10-15 18:30:19 +03:00
Alexander Udalov
66417ed329
Parse type arguments after callable reference as error
...
Is likely to be supported in the future
2015-10-15 18:25:42 +03:00
Alexander Udalov
32a9bddbf9
Increase ABI version after yet another change to binary format
2015-10-15 18:25:42 +03:00
Alexander Udalov
bf4a681589
Deduce receiver type of callable reference from LHS, not from descriptor
2015-10-15 18:25:42 +03:00
Alexander Udalov
2cf437c0e2
Fix type of callable reference to fake override
2015-10-15 18:25:41 +03:00
Alexander Udalov
9eb2e16b94
Support strings directly in JVM string table
...
For small strings it may be beneficial to store them as is in the proto at one
point instead of in a class annotation, because each annotation argument in the
classfile has a constant overhead which may be significant for small strings
2015-10-15 18:25:41 +03:00
Alexander Udalov
4c21142648
Store type parameter names sometimes instead of ids
...
This helps to reuse instances of types when TypeTable is enabled in cases when
a file or a class contains a lot of functions with type parameters with the
same name (like Maps.kt in the stdlib with "Map<K, V>")
2015-10-15 18:25:40 +03:00
Alexander Udalov
fb5d8de84b
Use type table in DescriptorSerializer, add switch to enable/disable, test
2015-10-15 18:25:40 +03:00
Alexander Udalov
82d2e623d3
Support a more optimized way of storing types in metadata
...
Together with almost every type now there's also an id which references a type
from a separate table. Storing such ids instead of Type messages will allow to
reduce the size of the metadata for files where types are used many times over
and over again. Currently only deserialization of such types is supported,
along with the former mechanism
2015-10-15 18:25:39 +03:00
Yan Zhulanow
bff6639e2d
Use stubs in checkParameterInFunctionType
2015-10-15 18:23:58 +03:00
Yan Zhulanow
d52f245cf7
Rename unary plus/minus in builtins and stdlib
2015-10-15 18:23:58 +03:00
Yan Zhulanow
f7ce0c2d20
Add new intrinsic methods: unaryPlus, unaryMinus
2015-10-15 18:23:58 +03:00
Ilya Gorbunov
2fba80168d
Remove usages of Delegates.lazy
2015-10-15 18:20:41 +03:00
Ilya Gorbunov
c4ef4758d2
Remove last two usages of Delegates.blockingLazy
2015-10-15 18:20:39 +03:00
Pavel V. Talanov
053e61a226
file facade index: Fix indexing files without top level members by mistake
2015-10-15 15:49:46 +03:00
Pavel V. Talanov
d9ed79e781
Add test for not generating file facade light class for empty file
2015-10-15 15:49:46 +03:00
Pavel V. Talanov
123c55b6db
IDELightClassGenerationSupport: fix not generating @JvmName annotation for file facade light classes
...
This was a minor inconsistency between compiler and ide light classes
2015-10-15 15:49:45 +03:00
Pavel V. Talanov
9e9f593a7f
Generate tests for ide light classes from the same test data as for compiler light classes
2015-10-15 15:49:45 +03:00
Pavel V. Talanov
35e56993d3
Rename: KotlinLightClassTest -> CompilerLightClassTest
...
In fact we have very different code in compiler and ide but only one test
2015-10-15 15:49:44 +03:00
Pavel V. Talanov
225e5abc92
Test renaming empty file
2015-10-15 15:49:43 +03:00
Pavel V. Talanov
53b21061fd
Don't use StubBasedPsiElementBase#getStubOrPsiParent
...
#KT-9579 Fixed
2015-10-15 15:49:42 +03:00
Pavel V. Talanov
bfcabad148
Don't override StubBasedPsiElementBase.getStub
...
#KT-9575 Fixed
2015-10-15 15:49:42 +03:00
Michael Nedzelsky
890ae3e914
Make single-file classes tolerant to having many main()'s
2015-10-15 15:46:26 +03:00
Dmitry Petrov
416dda95ce
Drop package facades: build reflection in "regular" mode
...
(no multifile package facades).
2015-10-15 10:33:53 +03:00
Dmitry Petrov
8cd624a58a
Drop package facades: code cleanup in Kotlin project.
2015-10-15 10:33:47 +03:00
Dmitry Petrov
57869d85e8
Spread should always copy arrays.
...
Introduce a special (package private) utility class ArraysUtilJVM
to fix Array<T>.asList() issues.
2015-10-15 09:16:21 +03:00
Alexander Udalov
97946feb9a
Minor, rename and adapt test
2015-10-15 00:51:37 +03:00
Alexander Udalov
556a169a5d
Update stdlib usages of PropertyMetadata to KProperty<*>
2015-10-15 00:05:31 +03:00
Ilya Gorbunov
43bb9347c6
Rename Regex.hasMatch to containsMatchIn, and add corresponding contains function to CharSequence.
2015-10-14 22:49:50 +03:00
Ilya Gorbunov
d1d865aa0f
Rename methods in Regex. Add matchEntire method to match entire string against regex.
2015-10-14 22:49:48 +03:00
Ilya Gorbunov
d860f335a3
JS: Make StringBuilder implement CharSequence and introduce secondary constructors.
2015-10-14 22:49:47 +03:00
Ilya Gorbunov
935024db4e
Fix with hack bridge codegen for indexOf and lastIndexOf methods. More sophisticated solution is required.
2015-10-14 22:49:40 +03:00
Alexander Udalov
5017e54022
Fix test broken during merge
2015-10-14 22:02:11 +03:00
Alexander Udalov
bd5f068454
Fix build after subtle change of Enum.name from function to property
2015-10-14 22:00:48 +03:00
Michael Nedzelsky
57205f5721
drop BASE_WITH_NULLABLE_UPPER_BOUND
2015-10-14 20:51:01 +03:00
Alexander Udalov
ced1edcf98
Prohibit callable references to object members
...
To be able to make them more useful in the future, i.e. bound to the object
instance
2015-10-14 20:45:56 +03:00
Alexander Udalov
63dfe13c43
Add some tests on KProperty usage from delegate methods
2015-10-14 20:45:55 +03:00
Alexander Udalov
6a965c9a06
Update IDE tests to use KProperty instead of PropertyMetadata
2015-10-14 20:45:55 +03:00
Alexander Udalov
51bf68ce27
Update compiler tests to use KProperty instead of PropertyMetadata
2015-10-14 20:45:54 +03:00
Alexander Udalov
a6846b3967
Insert KProperty<*> when creating property delegate methods in IDE
2015-10-14 20:45:26 +03:00
Alexander Udalov
ec1b4776fe
Deprecate PropertyMetadata, use KProperty<*> for delegated properties instead
2015-10-14 20:45:25 +03:00
Alexander Udalov
3c74f48f91
Pass KProperty instances to property delegates
...
Inherit KProperty from PropertyMetadata, cache corresponding KProperty objects
instead of PropertyMetadataImpl objects, add support for properties with 2
receivers
2015-10-14 20:45:24 +03:00
Mikhail Glukhikh
4614e74e3f
isFromJavaOrBuiltins() is now public (compilation fix)
2015-10-14 20:40:34 +03:00
Mikhail Glukhikh
8b482a59d9
No inline for MutableMap extensions with JvmName (to prevent stub comparison breaking)
2015-10-14 20:40:31 +03:00
Mikhail Glukhikh
3461837c28
Temporary move std-lib deprecated back to MutableCollections (due to backward compatibility stuff)
2015-10-14 20:40:29 +03:00
Mikhail Glukhikh
4987e095e5
Move some methods to deprecated built-ins
2015-10-14 20:40:26 +03:00