Zalim Bashorov
a36e4abf4d
Move visibility check for toplevel private declarations to Visibilities.PRIVATE and fix it.
2015-10-01 14:57:26 +03:00
Zalim Bashorov
94b110936e
Add the ability to get containing source file from SourceElement
2015-10-01 14:37:25 +03:00
Michael Nedzelsky
c7e5eb9ab8
fix AbstractBytecodeTextTest: read expected file with UTF-8 encoding
2015-10-01 12:16:48 +03:00
Alexander Udalov
1e6f230d69
Fix "ant compiler-quick", add conditional-preprocessor
2015-10-01 02:14:25 +03:00
Alexander Udalov
34d14939f9
Fix build after change in property accessor names
2015-10-01 02:14:25 +03:00
Valentin Kipyatkov
5afa91d4ec
Restored back temporarily renamed properties
2015-09-30 22:50:27 +03:00
Michael Nedzelsky
6466facffa
force UTF-8 encoding in CodegenTestCase.loadFileByFullPath
2015-09-30 22:35:38 +03:00
Mikhail Glukhikh
361448de8b
Rename: private / final property in trait --> in interface
2015-09-30 19:38:19 +03:00
Mikhail Glukhikh
7256a546df
Visibility modifiers are no longer allowed on local classes
2015-09-30 19:38:16 +03:00
Mikhail Glukhikh
6f7d9459fa
Completion for sealed class inheritors and a pair of tests
2015-09-30 19:38:14 +03:00
Mikhail Glukhikh
7a99b3872b
Forbid private functions with no body and private properties in traits which are abstract by default
2015-09-30 19:38:02 +03:00
Mikhail Glukhikh
930402d910
Incorrect 'inner' usage is diagnosed by parent, not by target
2015-09-30 17:54:47 +03:00
Dmitry Jemerov
2109a6b760
advance until-build to branch 144
2015-09-30 15:40:19 +02:00
Dmitry Petrov
91214c50a6
Unify containing classes mapping for deserialized callable members.
2015-09-30 09:56:06 +03:00
Dmitry Petrov
c17326841a
Inlining package members should use facade class for SMAP.
2015-09-30 09:56:05 +03:00
Dmitry Petrov
9a41ee41d7
Migrate to new storage API.
...
Remove IncrementalPackageFragment::getMultifileFacade.
2015-09-30 09:56:05 +03:00
Dmitry Petrov
3dfe9951ef
Incremental compilation support for multifile classes.
2015-09-30 09:56:05 +03:00
Denis Zharkov
ea8ada4664
Fix accessor naming test: count only method declarations
2015-09-30 08:19:52 +03:00
Denis Zharkov
22d58239e3
Support DefaultImpls in light-classes and indices
...
#KT-4647 Fixed
2015-09-30 08:19:52 +03:00
Denis Zharkov
8b8fa40348
Drop tests with obsolete assumption
...
DefaultImpls classes are not visible in IDE no more because they are inner.
2015-09-30 08:19:52 +03:00
Denis Zharkov
fd0c92e307
Record inner class info for interface and DefaultImpls
2015-09-30 08:19:51 +03:00
Denis Zharkov
c1bed7efc7
Move generation of non-local interface DefaultImpls
...
`DefaultImpls` should be inner class of it's interface,
so for proper light classes building it should be built
before original interface has been done, i.e. `done` method called.
Everything is complicated with local interfaces, so they are just left untouched
2015-09-30 08:19:51 +03:00
Denis Zharkov
a101fffd9a
Change INTERFACE_IMPL_CLASS_NAME: $TImpl -> DefaultImpls
2015-09-30 08:19:51 +03:00
Denis Zharkov
cabf0df5d1
Minor. Rename mapTraitImpl -> mapDefaultImpls
2015-09-30 08:19:51 +03:00
Denis Zharkov
b2d4bdc802
Minor. Rename isTrait -> isInterface
2015-09-30 08:19:51 +03:00
Denis Zharkov
6061528f7f
Minor. Rename isInterface -> isJvmInterface
2015-09-30 08:19:51 +03:00
Denis Zharkov
cb1bdfde52
Minor. TraitImplBodyCodegen -> InterfaceImplBodyCodegen
2015-09-30 08:19:51 +03:00
Denis Zharkov
27bc62bd8e
Minor. Rename constants: TRAIT_IMPL* -> DEFAULT_IMPLS*
2015-09-30 08:19:50 +03:00
Yan Zhulanow
32e2a550b4
'infix' modifier
2015-09-30 04:03:27 +03:00
Alexander Udalov
1fbfff97fa
Delete NoInternalVisibilityInStdLibTest
...
'internal' is not a default visibility anymore and thus makes sense in stdlib
2015-09-29 21:42:58 +03:00
Zalim Bashorov
90915f2432
Backup project's system dir when create backup for debugging Kotlin incremental compilation
2015-09-29 19:42:30 +03:00
Zalim Bashorov
0eac238f9b
KotlinBuilder: improve logging
2015-09-29 19:42:29 +03:00
Valentin Kipyatkov
2d0c1cd77d
Advanced ABI version after accessor naming change
2015-09-29 18:38:42 +03:00
Valentin Kipyatkov
94d8e3f4b6
"is" getter naming allowed for non-booleans too
2015-09-29 18:32:25 +03:00
Valentin Kipyatkov
20bddce18d
No synthetic property for false get-method like "issue()"
2015-09-29 18:32:25 +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
Valentin Kipyatkov
219fc46a36
Renamed property to avoid name clash
2015-09-29 18:32:24 +03:00
Valentin Kipyatkov
420c6856be
Changed naming algorithm of accessor name generation: "isXXX" and "kClass" cases affected
2015-09-29 18:32:24 +03:00
Valentin Kipyatkov
98da621ab3
Temporary rename of properties starting with "is" and used from java code (will revert back after changing accessor naming policy)
2015-09-29 18:32:23 +03:00
Mikhail Glukhikh
1941827780
Typo fixed
2015-09-29 17:14:06 +03:00
Alexander Udalov
3b018e9eb0
Minor, move serialization-related stuff in codegen to separate package
2015-09-29 16:31:21 +03:00
Alexander Udalov
ba80a2404f
Minor, improve signature of AsmUtil#writeAnnotationData
2015-09-29 16:26:29 +03:00
Alexander Udalov
3b9d90429b
Simplify local class name serialization, don't go through extension
...
Also fix it for the case of a class in a non-default package
2015-09-29 16:26:28 +03:00
Alexander Udalov
1036506b25
Introduce new string table optimized for JVM class files
...
This format of the string table allows to reduce the size of the Kotlin
metadata in JVM class files by reusing constants already present in the
constant pool. Currently the string table produced by JvmStringTable is not
fully optimized in serialization (in particular, the 'substring' operation
which will be used to extract type names out of generic signature, is not used
at all), but the format and its complete support in the deserialization
(JvmNameResolver) allows future improvement without changing the binary version
2015-09-29 16:26:28 +03:00
Alexander Udalov
542bfab96f
Don't write unnecessary information to ValueParameter proto
...
Flags can have a default value and the index can be trivially computed almost
all the time
2015-09-29 16:26:28 +03:00
Alexander Udalov
ccf72668e0
Don't write default upper bound for type parameters in protobuf
2015-09-29 16:26:27 +03:00
Alexander Udalov
6a8d0fbd75
Introduce infrastructure to separate string table from metadata on JVM
...
Nothing especially helpful happens here, this is only a big refactoring
introducing a separate string array for the string table, which is currently
always empty, but will contain actual strings soon
2015-09-29 16:26:27 +03:00
Alexander Udalov
5fe958f034
Add target TYPE to JVM metadata annotations
2015-09-29 16:26:26 +03:00
Alexander Udalov
89fe54c951
Remove NameResolver#getFqName, replace with getClassId
2015-09-29 16:26:26 +03:00