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
Mikhail Glukhikh
5d3186ac49
DelegatingDataFlowInfo: converted to Kotlin
2016-01-19 16:01:08 +03:00
Mikhail Glukhikh
4cc2450b37
DelegatingDataFlowInfo.java --> DelegatingDataFlowInfo.kt
2016-01-19 16:01:05 +03:00
Valentin Kipyatkov
a1d760fc36
KT-10631 Consider creating a synthetic property even when the setter returns 'this'
...
#KT-10631 Fixed
2016-01-19 15:57:20 +03:00
Dmitry Petrov
eef68e0a94
J2K: PatternMatchingTypingVisitor.kt: convert to Kotlin and cleanup
2016-01-19 15:02:45 +03:00
Dmitry Petrov
3e2d9a6a27
J2K: PatternMatchingTypingVisitor.java -> PatternMatchingTypingVisitor.kt
2016-01-19 14:24:09 +03:00
Pavel V. Talanov
ce42d47383
Resolve lambda argument types when failing to resolve call
2016-01-19 14:14:33 +03:00
Nikolay Krasko
adbf098166
Store information is file was compiled with Kotlin in attributes (KT-10312)
...
- Add boolean attribute for all binary files in the project
- Stop using JarUserDataManager for full file indexing
- Store full header of files compiled with Kotlin in file UserData
2016-01-19 13:33:51 +03:00
Nikolay Krasko
5431c6937f
Allow to configure print accuracy and fetch temprory results from profiler
2016-01-19 13:33:51 +03:00
Nikolay Krasko
61bd0e7265
Refactoring: Remove unused class
2016-01-19 13:33:51 +03:00
Nikolay Krasko
803bd55f70
Minor: refactoring
2016-01-19 13:33:51 +03:00
Dmitry Jemerov
f85c4dd458
cleanup KotlinProjectViewProvider
2016-01-19 11:04:10 +01:00
Dmitry Jemerov
52acd34a61
fix Maven build
2016-01-19 10:54:04 +01:00
Dmitry Jemerov
b60621c428
tests fixed
2016-01-19 10:53:53 +01:00
Dmitry Jemerov
39c6e3712b
add test to check that "Only the Kotlin standard library is allowed to use the 'kotlin' package" is reported in JPS builds
2016-01-19 10:53:49 +01:00
Dmitry Jemerov
39ad2b2378
return correct exit code when script execution fails
2016-01-19 10:53:48 +01:00
Dmitry Jemerov
f3faa10fcc
forbid compiling code in packages with names starting with 'kotlin' unless the -Xallow-kotlin-package command line option is specified
2016-01-19 10:53:47 +01:00
Dmitry Jemerov
6b354748ba
KotlinToJVMBytecodeCompiler: cleanup after J2K
2016-01-19 10:53:45 +01:00
Dmitry Jemerov
bccd64de19
KotlinToJVMBytecodeCompiler: J2K
2016-01-19 10:53:44 +01:00
Dmitry Jemerov
0d88595baf
KotlinToJVMBytecodeCompiler: rename to .kt
2016-01-19 10:53:43 +01:00
Dmitry Jemerov
e4903c1a47
proguard: don't exclude native libraries when repackaging jna.jar (IDEA core code now accesses FileSystemUtil which uses JNA)
2016-01-19 10:51:21 +01:00
Mikhail Glukhikh
7f2624c9a1
Handling of annotations on delegated property in descriptor loader & stub builder
2016-01-19 11:38:58 +03:00
Mikhail Glukhikh
e4f7446bec
JvmSynthetic forbidden for delegated properties (and searched for different use-site targets)
2016-01-19 11:38:53 +03:00