Yan Zhulanow
bc727a170b
Add 'operator' keyword
2015-09-23 21:25:51 +03:00
Michael Nedzelsky
2c952dcc22
Revert "add isKotlinSourceElement method to Source interface in order to recognize kotlin source elements during compilation"
...
This reverts commit c342f6870a .
2015-09-23 17:45:47 +03:00
Dmitry Petrov
5cdbdfc2cc
- Annotate package facades with java.lang.Deprecated.
...
- Provide KotlinDelegatedMethod annotation on package facade members.
2015-09-23 17:41:12 +03:00
Denis Zharkov
8d13f08271
Load static final fields of appropriate types from Java as const
2015-09-23 08:20:57 +03:00
Denis Zharkov
bde58d6eb8
Introduce interface method: VariableDescriptor.isConst
...
And several default implementations
Also take it into account in renderer
2015-09-23 08:20:56 +03:00
Michael Nedzelsky
c342f6870a
add isKotlinSourceElement method to Source interface in order to recognize kotlin source elements during compilation
2015-09-23 07:49:21 +03:00
Michael Nedzelsky
bcd85aa30d
changes some internal modifiers to public for elements which are used outside their modules
2015-09-23 07:49:17 +03:00
Alexander Udalov
e52a9b9fb8
Rename ClassDataProvider -> ClassDataWithSource
2015-09-22 18:22:58 +03:00
Alexander Udalov
f9ba7f6880
Minor, inline ClassData#read & PackageData#read to single usage
2015-09-22 18:22:56 +03:00
Alexander Udalov
7cc416ed12
Minor, rename TRAIT -> INTERFACE, CLASS_OBJECT -> COMPANION_OBJECT
2015-09-22 18:22:54 +03:00
Stanislav Erokhin
5786e620e8
Minor. remove import package usages from sources
2015-09-18 21:00:16 +03:00
Denis Zharkov
f518348565
Revert "Support decapitilized obsolete annotations in resolve"
...
This reverts commit 4159c83282 .
2015-09-18 10:14:37 +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
d98b3433eb
Fix ABI version diagnostic for old package facades
...
Restore the test data that was erroneously replaced in 84649e4
2015-09-16 01:44:27 +03:00
Alexander Udalov
4bc257bd73
Minor refactoring in LazyJavaPackageScope
2015-09-16 01:44:27 +03:00
Alexander Udalov
949144e0c0
Report incomplete hierarchy error for deserialized types
...
#KT-5129 Fixed
Delete a JPS test that was specifically testing that we would not fail in this
situation; now there's a compilation error
2015-09-15 13:11:17 +03:00
Dmitry Petrov
b63eed44fe
Advance ABI version (due to stdlib binary layout changes)
2015-09-14 21:58:01 +03:00
Dmitry Petrov
1586a2df8e
Make stdlib work with -Xmultifile-package-facades.
...
Fixed wrong owner mapping in presence of -Xmultifile-package-facades.
Fixed backing field mapping issue.
Added more tests.
2015-09-14 11:26:29 +03:00
Dmitry Petrov
838433ba8a
- call multifile class members (compiling against binaries)
...
- inline multifile class members
HACK? scope-based part/facade resolution
2015-09-14 11:25:42 +03:00
Dmitry Petrov
50f83da6da
- call multifile class members (compiling against binaries)
...
- inline multifile class members
2015-09-14 11:25:42 +03:00
Alexander Udalov
6cecc66d10
Improve ABI version from one number to "major.minor.patch"
2015-09-11 19:28:46 +03:00
Mikhail Glukhikh
3770e7f49f
Introduction of AnnotationTarget.CLASS as a replacement for CLASSIFIER (first step)
2015-09-11 17:59:40 +03:00
Dmitry Petrov
cd341e957e
Cleanup after review
...
+ stub builder test for multifile class
2015-09-09 19:08:19 +03:00
Dmitry Petrov
0c951b2ed3
Decompilation support
...
- class header reader for KotlinMultifileClass, KotlinMultifileClassPart
- proper implClassName for multifile class members
2015-09-09 19:08:18 +03:00
Dmitry Petrov
a00346a141
MultifileClassCodegen
...
- initial implementation
- new Kotlin file kinds + stub builder
2015-09-09 19:08:17 +03:00
Mikhail Glukhikh
aabf579454
java.lang.annotation.Documented is now special meta annotation + a few unused fields dropped
2015-09-09 14:58:44 +03:00
Michael Bogdanov
5805c42305
Write abi version to mapping file
2015-09-07 16:29:16 +03:00
Michael Bogdanov
d1964f5ff2
Abi version increased
2015-09-07 16:29:16 +03:00
Michael Bogdanov
0de83b6f4c
Default module name extraction
2015-09-07 16:29:15 +03:00
Michael Bogdanov
b58479a169
TEST_MODULE_NAME extraction
2015-09-07 16:29:15 +03:00
Michael Bogdanov
466b535ba9
Get rid of DeserializedNewPackageMemberScope.kt
2015-09-07 16:29:13 +03:00
Michael Bogdanov
bbf63aa38c
lazy -> storageManager.createLazyValue
2015-09-07 16:29:12 +03:00
Michael Bogdanov
606b39698c
Kotlin module name extraction
2015-09-07 16:29:11 +03:00
Michael Bogdanov
2ca9b3ae0e
Code clean
2015-09-07 16:29:10 +03:00
Michael Bogdanov
13ca5faa80
Code clean
2015-09-07 16:29:06 +03:00
Michael Bogdanov
f1c091e897
Serialize mappings via proto
2015-09-07 16:29:03 +03:00
Michael Bogdanov
672d25e7e0
PackagePartProvider refactoring
2015-09-07 16:29:02 +03:00
Michael Bogdanov
84649e4b26
Wrong abi test fix
2015-09-07 16:28:57 +03:00
Michael Bogdanov
9f0662468f
Lazy module name propagation
2015-09-07 16:28:56 +03:00
Michael Bogdanov
c274ceffe8
PackageFacadeProvider refactoring
2015-09-07 16:28:55 +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
ebb1629285
new scope and deserialization
2015-09-07 16:28:49 +03:00
Michael Bogdanov
1fcacecf93
stubs for new components
2015-09-07 16:28:48 +03:00
Michael Bogdanov
42d46853c7
Module mapping generation
2015-09-07 16:28:46 +03:00
Mikhail Glukhikh
8f7b29f80a
Annotation rename: target --> @Target
2015-09-07 13:42:26 +03:00
Yan Zhulanow
add13cae82
lateinit modifier on property
2015-09-05 00:54:18 +03:00
Alexander Udalov
308d24eeb4
Don't throw exceptions on unexpected annotation arguments in class file reader
2015-09-04 19:51:26 +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
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