Michael Bogdanov
84dbdf2ccb
Get rid of ValueParameterDescriptor in 'afterParameterPut' fun
2016-01-20 17:33:49 +03:00
Dmitry Jemerov
aacf2ad68c
proguard: keep all JNA methods (some of them are accessed from native code)
2016-01-20 14:34:50 +01:00
Dmitry Jemerov
f88f38f7d2
Android Studio adds Android-Gradle facet to all modules, so we need to check for Android facet and Gradle module instead
...
#KT-9600 Fixed
2016-01-20 14:32:10 +01:00
Dmitry Jemerov
4ab6436f93
avoid index access in KtFile.getClasses() when the file isn't part of a multi-file class (helps with KT-10684)
2016-01-20 13:45:42 +01:00
Denis Zharkov
ede4b61980
Add tests for obsolete issue
...
#KT-7412 Obsolete
2016-01-20 14:27:53 +03:00
Denis Zharkov
06fbc9bdd3
Support reification of arrays containing reified parameters
...
#KT-10555 Fixed
2016-01-20 14:27:53 +03:00
Valentin Kipyatkov
28331bca9f
KT-9418 Suggest name for new declaration basing on unresolved names in code
...
#KT-9418 Fixed
2016-01-20 13:55:56 +03:00
Valentin Kipyatkov
83ca4b84f9
Minor optimization
2016-01-20 13:55:55 +03:00
Alexander Udalov
17e8eafe33
Pass -Xallow-kotlin-package to compiler in project
...
To compile the 'builtins' module
2016-01-20 00:55:43 +03:00
Valentin Kipyatkov
59fb90a5ee
Dropped KtTypedef
2016-01-19 19:31:44 +03:00
Valentin Kipyatkov
808c7453a4
Added test for 'typealias' being keyword
2016-01-19 19:31:44 +03:00
Valentin Kipyatkov
68853fecc3
Removed support for "typealias" declarations from the parser
...
#KT-10683 Fixed
2016-01-19 19:31:44 +03:00
Valentin Kipyatkov
38d374d4b9
Added test for nested class
2016-01-19 19:30:19 +03:00
Valentin Kipyatkov
2791d99f9d
Direct implementation of ImportingScope
2016-01-19 19:30:19 +03:00
Valentin Kipyatkov
d337dff5fa
Minor
2016-01-19 19:30:18 +03:00
Valentin Kipyatkov
d749f85a60
Inaccessible classes from the current package to not conflict with visible classes from somewhere else
2016-01-19 19:30:18 +03:00
Valentin Kipyatkov
bfe728526a
Alias imports to hide symbols by original name from the current package too
2016-01-19 19:30:18 +03:00
Valentin Kipyatkov
e83bd759e6
Minor
2016-01-19 19:30:18 +03:00
Alexander Udalov
e2f49536f5
Move OldPackageFacadeClassUtils to module light-classes
2016-01-19 18:54:08 +03:00
Alexander Udalov
c78bf6c807
Set bytecode version to 1.0.0
...
It was 1.0.2 only because it was introduced as a clone of the metadata version,
which is 1.0.2 at the moment
2016-01-19 18:43:07 +03:00
Alexander Udalov
27dbfc7aef
Rethrow InvalidProtocolBufferException with class file location info
2016-01-19 18:39:59 +03:00
Alexander Udalov
4d93d18af7
J2K DeserializedDescriptorResolver: prettify
2016-01-19 18:39:59 +03:00
Alexander Udalov
3efa51af40
J2K DeserializedDescriptorResolver: convert
2016-01-19 18:39:59 +03:00
Alexander Udalov
432d458c02
J2K DeserializedDescriptorResolver: rename .java -> .kt
2016-01-19 18:39:59 +03:00
Alexander Udalov
b216ed99b4
Simplify UTF-8 decoding, just trivially convert bytes to 16-bit Unicode
...
ASM will do the rest (see ByteVector#encodeUTF8)
2016-01-19 18:39:59 +03:00
Alexander Udalov
9620893fa4
Drop synthetic class kind Function, drop Metadata#xi
2016-01-19 18:39:59 +03:00
Alexander Udalov
aef6d49b48
Drop isLocalClass, do not write KotlinLocalClass
2016-01-19 18:39:59 +03:00
Alexander Udalov
e17cd12c3c
Report error on generating calls to binary incompatible classes
2016-01-19 18:39:59 +03:00
Alexander Udalov
4bd1d064bb
Do not load built-ins in old format, drop class_name extension
2016-01-19 18:39:59 +03:00
Alexander Udalov
625c46d568
Delete obsolete and unused class_annotation JVM proto extension
2016-01-19 18:39:59 +03:00
Alexander Udalov
6dbd29e6a4
Support decoding of both old and new encoded metadata
2016-01-19 18:39:59 +03:00
Alexander Udalov
5585c7da7f
Minor, simplify utfEncoding, add option to force using 8to7 encoding
2016-01-19 18:39:59 +03:00
Andrey Breslav
fe15984a59
Direct encoding into UTF-8 bytes, without the 8-to-7-bit conversion
2016-01-19 18:39:59 +03:00
Alexander Udalov
693a9c9453
Write new flags to proto messages for callables
...
This is needed to get rid of two unused bits: Flags.RESERVED_1 and
Flags.RESERVED_2. The old flags are still there temporarily because of the
bootstrap dependency on built-ins. Soon the old flags will be dropped and the
current flags will be transformed to the new format
2016-01-19 18:39:59 +03:00
Alexander Udalov
86bbc9f15b
Read new Metadata annotation in check-library-abi-version.kts
2016-01-19 18:39:59 +03:00
Alexander Udalov
a4daa08e5c
Write module name as proto extension instead of another annotation argument
2016-01-19 18:39:59 +03:00
Alexander Udalov
d4c4515944
Refactor BinaryVersion and subclasses, get rid of static factories
2016-01-19 18:39:59 +03:00
Alexander Udalov
e37bd4eba6
Do not write and read KotlinInterfaceDefaultImpls
...
This was only used in InlineTestUtil.kt and had no effect in the condition
2016-01-19 18:39:59 +03:00
Alexander Udalov
7906ac63b5
Read Metadata annotation, support option to ignore old annotations
2016-01-19 18:39:59 +03:00
Alexander Udalov
59dab0a558
Combine all metadata annotations into one kotlin/Metadata
2016-01-19 18:39:59 +03:00
Alexander Udalov
661af854fa
Drop KotlinClassHeader#filePartClassNames, use 'data' instead
2016-01-19 18:39:59 +03:00
Alexander Udalov
b587d3a78d
Use JvmMetadataVersion where appropriate instead of bytecode version
2016-01-19 18:39:59 +03:00
Alexander Udalov
bd47e9d47b
Split JVM binary version into two: metadata and bytecode interface
...
Currently all code only uses the first one (JvmMetadataVersion), later the
bytecode interface version (JvmBytecodeBinaryVersion) will be used only in
codegen and reflection to avoid compiling against or calling methods with
unsupported conventions like default method naming and signature,
getters/setters naming etc.
2016-01-19 18:39:59 +03:00
Alexander Udalov
fc88a0186f
Drop obsolete synthetic class kind in KotlinClassHeader
2016-01-19 18:39:59 +03:00
Alexander Udalov
9552accaec
Introduce BinaryVersion.isCompatible()
...
To decrease the chance to mix up the receiver and the first argument when
checking version compatibility
2016-01-19 18:39:59 +03:00
Alexander Udalov
04d335db15
Move version constants to corresponding BinaryVersion subclasses
2016-01-19 18:39:59 +03:00
Alexander Udalov
2f64680b63
Add several subclasses of BinaryVersion
...
To simplify comparison of expected vs actual versions in the future
2016-01-19 18:39:59 +03:00
Yan Zhulanow
4cd2ff040d
J2K: convert hex Java literal to hex Kotlin literal
2016-01-19 23:29:58 +09:00
Zalim Bashorov
bd9b2f9f06
Restore logging changes when process them using lookups and add assert to avoid getting parent from root FqName
2016-01-19 16:33:44 +03:00
Mikhail Glukhikh
9360bd49a6
Data flow info: correct disjunction of a type with Nothing: Type U Nothing = Type #KT-9578 Fixed
2016-01-19 16:01:10 +03:00