Commit Graph

12293 Commits

Author SHA1 Message Date
Dmitry Petrov 5fdfe8df3c PackagePartClassUtils converted to Kotlin and refactored 2015-09-07 16:28:53 +03:00
Dmitry Petrov e050ff3271 Generate ex-package parts as file facades.
Support new facade kind in stub building and incremental compilation.
2015-09-07 16:28:52 +03:00
Michael Bogdanov 43af127ce8 new fixes 2015-09-07 16:28:52 +03:00
Michael Bogdanov e83ec1017b Reflection support 2015-09-07 16:28:51 +03:00
Michael Bogdanov 357a6d9902 repl fix 2015-09-07 16:28:51 +03:00
Michael Bogdanov e18c1bb360 propagate proper packageMappingProvider in tests 2015-09-07 16:28:50 +03:00
Michael Bogdanov 5581d4e207 Don't verify mapping files and proper packagemapper propagation 2015-09-07 16:28:49 +03:00
Michael Bogdanov ebb1629285 new scope and deserialization 2015-09-07 16:28:49 +03:00
Michael Bogdanov 7f2973dc7d proto serialization 2015-09-07 16:28:48 +03:00
Michael Bogdanov 1fcacecf93 stubs for new components 2015-09-07 16:28:48 +03:00
Michael Bogdanov 6dcd059009 new kompiler parameter 2015-09-07 16:28:47 +03:00
Michael Bogdanov 65308d6aaf Proper module name: HACK 2015-09-07 16:28:47 +03:00
Michael Bogdanov 42d46853c7 Module mapping generation 2015-09-07 16:28:46 +03:00
Dmitry Petrov 83336553df Use special index to record files corresponding to static facade classes. 2015-09-07 16:28:45 +03:00
Dmitry Petrov ab8b5d05ed Light class generation for new facades/parts.
1st working (naive) implementation.
2015-09-07 16:28:45 +03:00
Dmitry Petrov 47f5b55e65 KotlinLightClassForPackage -> KotlinLightClassForFacade
(with minor changes)
2015-09-07 16:28:44 +03:00
Dmitry Petrov 1c81b00143 Use ASCII capitalization for part class names 2015-09-07 16:28:44 +03:00
Dmitry Petrov cd6ff31129 Update tests depending on part class naming 2015-09-07 16:28:43 +03:00
Dmitry Petrov a47eaa2cb5 Change part class naming scheme
update tests depending on part class naming
2015-09-07 16:28:42 +03:00
Michael Bogdanov 801d10229b Partially removed replaceHashWithStar 2015-09-07 16:28:41 +03:00
Michael Bogdanov 17d9b93790 DelegationClassBuilderFactory class extraction 2015-09-07 16:28:41 +03:00
Michael Bogdanov 35d51a8ea4 Update duplicate diagnostic 2015-09-07 16:28:40 +03:00
Michael Bogdanov 2c2ec508d3 Redeclaration tests patched 2015-09-07 16:28:39 +03:00
Michael Bogdanov 905e74f870 TODO: restore tests: files with same names 2015-09-07 16:28:38 +03:00
Michael Bogdanov 8e8ff860d6 New package part naming 2015-09-07 16:28:37 +03:00
Mikhail Glukhikh 8f7b29f80a Annotation rename: target --> @Target 2015-09-07 13:42:26 +03:00
Alexey Sedunov e03067846f Extract Function: Ignore internal smartcasts
#KT-8458 Fixed
2015-09-06 18:04:37 +03:00
Ilya Ryzhenkov ba5d5cc87b Optimize away boxing in JvmDependenciesIndex 2015-09-06 17:01:32 +03:00
Ilya Ryzhenkov a14d97d8e1 Optimize line mapping initialization. 2015-09-06 17:01:31 +03:00
Ilya Ryzhenkov 970bd46544 Optimize siblings() 2015-09-06 17:01:30 +03:00
Yan Zhulanow 4ca127ecb3 Create custom exception for lateinit 2015-09-05 00:54:20 +03:00
Yan Zhulanow fc3bf3cca4 Implement lateinit in backend 2015-09-05 00:54:19 +03:00
Yan Zhulanow e3967b9fa0 Diagnostic on lateinit 2015-09-05 00:54:19 +03:00
Yan Zhulanow add13cae82 lateinit modifier on property 2015-09-05 00:54:18 +03:00
Alexander Udalov d0a4f82203 Fix NO_KOTLIN_REFLECT directive handling in codegen tests
It was disabling reflection on classpath at compile time, but not at runtime
2015-09-04 20:18:59 +03:00
Mikhail Glukhikh eab288bdd7 annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov 86f35acf9e Fix testBuiltins result 2015-09-04 18:19:32 +03:00
Denis Zharkov 4159c83282 Support decapitilized obsolete annotations in resolve
Annotations like `deprecated`, `jvmStatic`, etc. has been renamed to capitilized themselves.
But we're going to support both versions.
It's hard just to leave both versions of classes as their class-files can clash
when compiled on register-independent file system.

So here is solution (temporary hack):
we just wrap JetScopes for package fragments of `kotlin.*`
to make them search both versions of annotations if their names are contained
in our hardcoded set.
2015-09-04 18:19:32 +03:00
Denis Zharkov 31244edec9 Deprecate deprecated in favor of Deprecated 2015-09-04 18:19:31 +03:00
Denis Zharkov 952d45dc8b Deprecate JVM platform annotations in favor of capitilized themselves 2015-09-04 18:19:31 +03:00
Denis Zharkov 5471a1d18a Add kotlin.external annotation and deprecate kotlin.jvm.native 2015-09-04 18:19:31 +03:00
Denis Zharkov 26f9bd7b63 Deprecate some of JVM flag annotations in favor of capitilized themselves 2015-09-04 18:19:31 +03:00
Denis Zharkov 2b76941733 Deprecate throws annotation in favor of Throws 2015-09-04 17:23:26 +03:00
Denis Zharkov 9254b1b461 Deprecate tailRecursive in favor of tailrec 2015-09-04 17:23:26 +03:00
Denis Zharkov bbc192fda5 Deprecate suppress annotation in favor of Suppress 2015-09-04 17:23:25 +03:00
Denis Zharkov 11fed1674e Deprecate extension annotation in favor of Extension 2015-09-04 17:23:25 +03:00
Michael Nedzelsky a59f14eede warning for access to private top-level declarations from another file 2015-09-04 15:35:28 +03:00
Mikhail Glukhikh 778ac7f25c annotation --> Retention / Repeatable / MustBeDocumented: converting from Java to Kotlin and back.
At this very short moment Kotlin supports both annotation(retention, repeatable, mustBeDocumented) and Retention / Repeatable / MustBeDocumented separately.
2015-09-04 12:49:36 +03:00
Mikhail Glukhikh 4e3bd10cd3 Java annotation with target "TYPE" is now applicable to Kotlin targets "CLASSIFIER" and "FILE" 2015-09-04 12:49:24 +03:00
Mikhail Glukhikh 699f1e0a70 AnnotationTarget.PACKAGE was dropped 2015-09-04 12:49:14 +03:00