Commit Graph

55269 Commits

Author SHA1 Message Date
Vyacheslav Gerasimov 637f7a8cab 192: Fix InlayHintTypeTestUtil for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov fac959ba1e 192: Fix FormatSettingsUtil for 192, can't access getProject any more 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov d5b7b520e0 192: Fix completion KotlinConfidenceTest for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov d58df2c107 192: Fix AbstractJavaToKotlinConverterForWebDemoTest for 192 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov f935cfeda2 192: Remove override createAddPropertyActions, no more in JvmElementActionsFactory 2019-05-31 16:32:10 +03:00
Vyacheslav Gerasimov 979df225a7 192: Fix uast-kotlin for 192 platform 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov c2522535d9 192: Fix KotlinMPPGradleProjectTaskRunnerUtil usages of deprecated api 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov cd18d9d534 192: Add property accessor for myModule which is removed in 192 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov cf1e1e3a0c 192: Fix accessors to module & project in tests 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 05a2f5bda5 192: Fix nullability related problems for 192 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 57943768bf Build: Remove bunches for kotlin-compiler build script 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 593e67d47d 192: Add 192 platform IdeCompatibilityDsl 2019-05-31 16:32:09 +03:00
Vyacheslav Gerasimov 2d74560523 192: Build against Idea 192.4205.45 2019-05-31 16:32:08 +03:00
Vyacheslav Gerasimov d740455e9f Build: Update list of redirected repositories 2019-05-31 16:32:08 +03:00
Ilya Chernikov f986856d03 Improve classpath extraction from classloader:
- implement opt-in unpacking/caching of the jar collection archives,
  such as spring boot fat jars and WARs, to the temp dir, and creating
  a valid classpath from extracted archive
- turning it on for the new default jsr223 engine
- fallback to extracting classpath from resource URLs if the classloader
  is not known url-based one
- refactor and optimize extraction
- cache the last retrieved classpath in the default JSR-223 script engine
  factory
2019-05-31 14:06:25 +02:00
Ilya Chernikov e95569a273 Report definition-related error diagnostic on the whole script file
#KT-31452 fixed
2019-05-31 13:34:17 +02:00
Dmitry Gridin 21c10af1a7 Fix tests in quickfix 2019-05-31 18:00:56 +07:00
Dmitry Gridin 605ee041a9 Remove CreateTypeAliasFromUsageFix
Relates to #KT-31519
2019-05-31 18:00:56 +07:00
Alexander Udalov 4c9e9b1f3a Fix KotlinReflectionInternalError on encountering 'clone' in a class
`RuntimeTypeMapper.mapSignature` threw exception because the descriptor
for `clone` was created manually in CloneableClassScope and therefore it
didn't have a JVM signature as in deserialized descriptors, and wasn't
recognized as a Java method either.

 #KT-22923 Fixed
2019-05-31 12:29:20 +02:00
Dmitriy Dolovov 2857c62dba Don't use plugin classloader to get Kotlin plugin info
Issue #KT-31598 Fixed
2019-05-31 13:26:39 +03:00
Roman Artemev c2d118cb75 [JS IR BE] Improve error reporting 2019-05-31 13:14:43 +03:00
Roman Artemev beb1ce55f8 [IR BE] Fix capturing of var-locals inside class/field initializers 2019-05-31 13:14:43 +03:00
Roman Artemev 5686de7e09 [JS IR BE] Make kotlinx.io compile
- Fix expect/actual default arguments
 - Fix dynamic type in inliner
 - Fix external varargs
2019-05-31 13:14:43 +03:00
Denis Zharkov 753a9a1c36 Fix performance regression caused by contracts
Do not obtain all children from KtBlockExpression when you only need
the first one.
It might be crucial for a huge blocks of code
2019-05-31 11:21:15 +03:00
Dmitriy Dolovov 16d05b6129 Get IDE plugin path from KotlinPluginUtil 2019-05-31 10:02:02 +03:00
Dmitriy Dolovov fdf7b0c9fb Convert KotlinPluginUtil to Kotlin 2019-05-31 10:01:54 +03:00
Mikhael Bogdanov 79d855f7a4 Minor. Revert deleted by mistake test directive 2019-05-31 07:09:28 +02:00
Ilya Kirillov 72bedb63fa New J2K: add more string operations conversions 2019-05-31 00:25:53 +03:00
Ilya Kirillov f03965995d New J2K: generate nj2k tests 2019-05-31 00:25:53 +03:00
Ilya Kirillov c136e81427 New J2K: optimize imports in post-processings 2019-05-31 00:25:52 +03:00
Ilya Kirillov 269ca20950 New J2K: add number types conversions to post-processing 2019-05-31 00:25:52 +03:00
Ilya Kirillov 3944a976df New J2K: handle static imports from Java correctly & do not ignore imports in tests 2019-05-31 00:25:52 +03:00
Ilya Kirillov 879abdafc2 Preserve comments in shorten references processor for qualified expressions 2019-05-31 00:25:52 +03:00
Ilya Kirillov 39dfa631bf New J2K: do not ignore long expressions in LiftReturnOrAssignmentInspection in post-processing 2019-05-31 00:25:52 +03:00
Ilya Kirillov 8fa9b9923f Allow removing trivial property accessor body when the accessor can not be fully deleted in redundant getter/setter inspections 2019-05-31 00:25:52 +03:00
Ilya Kirillov 95a6f59c62 New J2K: preserve declarations order & place init sections to the end 2019-05-31 00:25:52 +03:00
Ilya Kirillov ab26061b5e New J2K: fix testData 2019-05-31 00:25:52 +03:00
Ilya Kirillov 3a98b49556 New J2K: fix type in ast conversion name 2019-05-31 00:25:51 +03:00
Ilya Kirillov 621ae80f1d New J2K: rewrite getters and setters conversion in post-processing
KT-31700 fixed
2019-05-31 00:25:51 +03:00
Ilya Kirillov 63434fc46c New J2K: separate inspection like processings from others & remove boilerplate code in processings 2019-05-31 00:25:51 +03:00
Ilya Kirillov d6e07ca693 New J2K: calculate type correctly for vararg parameter in nullability analysis 2019-05-31 00:25:51 +03:00
Ilya Kirillov 419f6c80de New J2K: filter out noinspection comments in resulted code 2019-05-31 00:25:51 +03:00
Ilya Kirillov e04c984e48 New J2K: move all literal conversion stuff to LiteralConversion & add octal literals conversion 2019-05-31 00:25:51 +03:00
Ilya Kirillov 60b2b81e9c New J2K: preserve comments in DefaultArgumentsConversion 2019-05-31 00:25:51 +03:00
Ilya Kirillov eed55a11ca New J2K: preserve comments in BuiltinMembersConversion 2019-05-31 00:25:51 +03:00
Alexander Udalov ceecbfdcea Minor, fix kapt test data on comments
ClassFileToSourceStubConverter relies on JvmDeclarationOrigin which is
used in the codegen, and that origin has slightly changed for the
synthetic '$annotations' method (see
`MemberCodegen.generateSyntheticAnnotationsMethod`) in e9b50157
2019-05-30 19:30:46 +02:00
Ting-Yuan Huang 74e8c7c1c5 JVM_IR: generate default constructor
Quoted from https://kotlinlang.org/docs/reference/classes.html

"On the JVM, if all of the parameters of the primary constructor have
 default values, the compiler will generate an additional parameterless
 constructor which will use the default values. This makes it easier to
 use Kotlin with libraries such as Jackson or JPA that create class
 instances through parameterless constructors."
2019-05-30 18:53:27 +02:00
Georgy Bronnikov 440f327e74 JVM_IR: fix a typo in EnumWhenLowering 2019-05-30 19:04:31 +03:00
Georgy Bronnikov d7dacef9af JVM_IR: correct RetentionPolicy annotation generation 2019-05-30 19:04:31 +03:00
Dmitry Savvinov 4f6d0ca1d1 Update missed tesdata
Was missed after 7daf12fa6d
2019-05-30 18:58:12 +03:00