Commit Graph

46039 Commits

Author SHA1 Message Date
Alexey Tsvetkov f9af48c19e Test Java is up-to-date when Kotlin ABI is unchanged 2018-05-16 21:36:48 +03:00
Alexey Tsvetkov b2d13ac89b Fix Kapt incremental test with Gradle >= 4.3 2018-05-16 21:36:48 +03:00
Alexander Udalov ed2439c905 Minor, move version declaration to the correct place 2018-05-16 19:16:08 +02:00
Alexander Udalov e1a4bd01f5 Add anonymousObjectOriginName/lambdaClassOriginName to kotlinx-metadata
#KT-21320
 #KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov b97379b39b Provide stable JVM names for kotlinx-metadata file facades
#KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov c87218ac6c Use JvmMetadataVersion/JvmBytecodeBinaryVersion in kotlinx-metadata
#KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov ffa6b6233b Minor, make BinaryVersion.numbers private
Use BinaryVersion.toArray instead, as in all other usages
2018-05-16 17:16:22 +02:00
Alexander Udalov 1b15619457 Move BinaryVersion to metadata, JVM versions to metadata.jvm
To be used in kotlinx-metadata
2018-05-16 17:16:22 +02:00
Alexander Udalov e5a5d834ab Add "-verbose" to kotlinp tool, change type parameter name rendering
Only render the actual name of the type parameter in the verbose mode

 #KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov 23d107c11d Support multiple MetadataExtensions instances in kotlinx-metadata
#KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov c42001f550 Refactor flags in kotlinx-metadata
- rename object Flags to Flag and merge it with MetadataFlag
- use typealias Flags instead of Int
- use top level function "flagsOf" instead of "Flags.invoke" to
  construct a bitmask

 #KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov 002310ff6e Add ReadMe for kotlinx-metadata and kotlinx-metadata-jvm
#KT-23198
2018-05-16 17:16:22 +02:00
Alexander Udalov 9dbeb79340 Test kotlinx-metadata and kotlinp on compiler test data
#KT-23198
2018-05-16 17:16:21 +02:00
Alexander Udalov bef759161f Support .kotlin_module files in kotlinx-metadata
#KT-23198
2018-05-16 17:16:21 +02:00
Alexander Udalov a751d02306 Implement writing visitors for kotlinx-metadata
#KT-23198
2018-05-16 17:16:21 +02:00
Alexander Udalov 4b284a4890 Add kotlinp, a tool to print Kotlin metadata in class/module files
At the moment, it's not published anywhere, but that may change soon

 #KT-23198
2018-05-16 17:16:21 +02:00
Alexander Udalov e4062f6447 Add kotlinx-metadata library for handling Kotlin metadata
#KT-23198
2018-05-16 17:16:21 +02:00
Ilya Gorbunov 8ab49a70e9 Make dexMethodCount task incremental unless teamcity output is required
Declare details file as output, circumvent task up-to-date check if teamcity statistics output is required.
2018-05-16 17:48:05 +03:00
Ilya Gorbunov e7b445e4b5 Fix incorrect @returns tag usage and improve padStart/End docs
#KT-24371 Fixed
2018-05-16 17:43:12 +03:00
Ilya Gorbunov 15d21a0532 Remove UnsafeVariance from expected testdata for serialized builtins tests
UnsafeVariance source annotation is no longer serialized as a result of KT-23360
2018-05-16 17:37:02 +03:00
Ilya Gorbunov a69694a5d5 Advance bootstrap to build 1.2.60-dev-58 2018-05-16 17:37:02 +03:00
Yan Zhulanow 20cb4e91b3 Do not retain proxy-based components for compiler plugin settings in project model 2018-05-16 17:04:03 +03:00
Nicolay Mitropolsky 29ef8650f7 182: gson set to 2.8.4 2018-05-16 13:16:26 +03:00
Mikhail Glukhikh 6a1ddd6c70 Lambda to anonymous: report only from left brace to arrow 2018-05-16 13:01:38 +03:00
Mikhail Glukhikh f4acaae364 Lambda to anonymous: use type renderer & shorten references 2018-05-16 13:01:38 +03:00
Mikhail Glukhikh 0f2879aa32 Rename: SOURCE_CODE_SHORT_NAMES_IN_TYPES -> *_SHORT_NAMES_NO_ANNOTATIONS 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 06f7e77006 Introduce new type renderers (no parameters & built-in annotations) 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 1ba99fde56 "lambda to anonymous": add tests for qualified types (KT-7710) 2018-05-16 13:01:37 +03:00
Mikhail Glukhikh 257664cf1b Make "lambda to anonymous" low-priority (KT-7710) 2018-05-16 13:01:36 +03:00
Mikhail Glukhikh bd6fdb743c Lambda to anonymous function: use callable builder (KT-7710) 2018-05-16 13:01:36 +03:00
Toshiaki Kameyama 8a20d1bf01 Add intention to convert lambda to anonymous function #KT-7710 Fixed 2018-05-16 13:01:36 +03:00
Nikolay Krasko 8ef4b9a8e1 Don't show type hierarchy for elements without name 2018-05-16 12:55:09 +03:00
Nikolay Krasko 062a212b61 Don't build light classes for local classes with parse errors (KT-24323, EA-107235)
Also use checks for building light classes in `getLightClassDataHolder`.
2018-05-16 12:55:09 +03:00
Nikolay Krasko 15a704fe36 Use comment directive for not generated case to be valid Java file 2018-05-16 12:55:08 +03:00
Nikolay Krasko f2c642eefb Fight with valid absent, corrupted and missing files in archives (EA-119686)
Inspired by ClassFileViewProvider.
2018-05-16 12:55:08 +03:00
Nikolay Krasko c35f8d621a Use separate dirs in pill for running IDE to avoid test misbehaviour 2018-05-16 12:55:08 +03:00
Ilya Chernikov 612de2e342 Fix the invalid code after "Fix order of jars" commit 2018-05-16 07:24:21 +02:00
Vyacheslav Gerasimov a1c551faaf as32: Make use of createIfNecessaryParameter of AndroidModuleInfoProviderImpl.getApplicationResourceDirectories 2018-05-15 22:32:20 +03:00
Vyacheslav Gerasimov 995352c20f Restore j2k.jar in cidr plugin
Excluding it requires more complex refactoring, wip
2018-05-15 22:11:01 +03:00
Ilya Chernikov b2bda5c017 Enumerate roots for script definitions only if project is initialized
fixes #KT-23805
2018-05-15 19:27:09 +02:00
Ilya Chernikov 4b949ef303 Fix order of jars for the scripting plugin:
if gradle project is being built with JPS, the gradle scripting plugin
is passed in the plugin classpath. Since it is rebased on the embeddable
compiler, it hides expected plugin registrar signature, which leads to
the AbstractMethodError on attempt to load the plugin. Putting incoming
classpath at the end of the resulting one fixes the issue.
Fixes #KT-24448
2018-05-15 19:26:42 +02:00
Alexey Tsvetkov ea1a4f75ba Fix incremental android extensions test
Weirdly merge resource task was failing when run incrementally
if support library is present
2018-05-15 18:40:54 +03:00
Alexey Tsvetkov 6edba56adb Fix Android IC test
Previously some Kotlin files were recompiled, because Java files
were regenerated.
However this is no longer true for some time since
precise Java tracking was implemented.
2018-05-15 18:40:54 +03:00
Mike a038a88bfa More correct NOTHING_TO_INLINE description
Strictly speaking, they are not 'lambda parameters', they are 'functional parameters' or 'parameters of functional types'.
Sorry for my pedantry.
2018-05-15 16:27:45 +02:00
Mikhael Bogdanov f4f01efd1f Avoid descriptors usage in IrFunction flag calculation 2018-05-15 16:07:07 +02:00
Mikhael Bogdanov e9216625f0 Update logic to $default function lowering (don't skip interface members) 2018-05-15 16:06:31 +02:00
Mikhael Bogdanov 9d36367fbd Minor. Code clean: use class kind utils 2018-05-15 16:06:30 +02:00
Mikhael Bogdanov 678b1101cb Add class kind utils 2018-05-15 16:06:28 +02:00
Mikhael Bogdanov 6590666983 Run ir test in parallel 2018-05-15 16:06:00 +02:00
Mikhael Bogdanov 9546c36c3c Get rid of 'descriptor.isInner()' call 2018-05-15 16:06:00 +02:00