Commit Graph

66577 Commits

Author SHA1 Message Date
simon.ogorodnik 27537f71df [FIR] Use constructed class type parameters refs in java symbol provider 2020-04-13 20:26:16 +03:00
simon.ogorodnik 1d249ad279 [FIR] Use constructed class type parameters refs in deserialization 2020-04-13 20:26:16 +03:00
simon.ogorodnik ec39cd3d31 [FIR] Use captured, constructed class type parameters in RawFirBuilder 2020-04-13 20:26:16 +03:00
simon.ogorodnik f174893009 [FIR] Add kotlinx-collections-immutable to raw fir builders 2020-04-13 20:26:15 +03:00
simon.ogorodnik 49d361b6eb [FIR] Improve type-parameter rendering in html dump 2020-04-13 20:26:15 +03:00
simon.ogorodnik cb00a4c136 [FIR] Update type parameter use-sites to use type parameter refs 2020-04-13 20:26:15 +03:00
simon.ogorodnik 7c56209cef [FIR] Introduce type parameter ref in generated tree 2020-04-13 20:26:15 +03:00
Nikolay Krasko 0f7a9c44b4 Minor: sort excluded files and dirs in conformance test 2020-04-13 19:50:59 +03:00
Nikolay Krasko dbbb81c78d 201: Minor: remove author to fix conformance test 2020-04-13 19:50:59 +03:00
Igor Chevdar 626c94c54d [IR] Fixed bug with redundant creation of Ref<> in inline lambdas 2020-04-13 21:11:59 +05:00
Anton Yalyshev c8fe842508 Add FUS collector for Migration tool 2020-04-13 18:21:03 +03:00
Sergey Rostov fd9bec81cf JPS: provide SourcesPreprocessor extension point 2020-04-13 18:02:08 +03:00
Mikhail Glukhikh b6cf08d097 [FIR2IR] Extract createIrSyntheticFunction/Parameter from data class gen 2020-04-13 17:30:06 +03:00
Mikhail Glukhikh 4f1caf24a1 [FIR2IR] Minor: eliminate warning about list under the hood 2020-04-13 17:30:05 +03:00
Mikhail Glukhikh 6827280521 [FIR2IR] Reuse declareThisReceiverParameter in DataClassMembersGenerator 2020-04-13 17:30:05 +03:00
Jinseong Jeon c370b86141 IR: consolidate generation of synthetic members for data class 2020-04-13 17:30:05 +03:00
Mikhail Glukhikh 1500131eb0 [FIR2IR] Re-use applyCallArguments for IrDelegatedConstructorCall 2020-04-13 17:09:05 +03:00
Mikhail Glukhikh 1ba160b3de [FIR] Apply argument mapping to delegated constructor calls 2020-04-13 17:09:04 +03:00
Mikhail Glukhikh 734ddc0369 [FIR] Rename: selectCandidateFrom... -> selectDelegatingConstructorCall 2020-04-13 17:09:04 +03:00
Juan Chen e954aea4cc [FIR2IR] Support argument reordering of constructor calls 2020-04-13 17:09:04 +03:00
Juan Chen bae41ddf6d [FIR2IR] Introduce IrBlock for reordering arguments if needed 2020-04-13 17:09:03 +03:00
Ilya Chernikov acc5633811 [NI] Fix inference of lambda with receiver when wrapped...
in when/if or another lambda.
#KT-37419 fixed
2020-04-13 14:50:49 +02:00
Vladimir Dolzhenko 6494a2d902 Invalidate ResolveElementCache on project roots change
#KT-38206 Fixed
#EA-221073 Fixed
2020-04-13 12:03:17 +00:00
Ilya Chernikov 1672ed687b Add more tests to the maven resolver lib 2020-04-13 13:49:34 +02:00
Ilya Chernikov 5deb759e78 Rewrite new scripting maven resolver directly to eclipse aether 2020-04-13 13:49:34 +02:00
Ilya Chernikov 195a90d333 Cleanup warnings in scripting code 2020-04-13 13:49:34 +02:00
Ilya Chernikov d863dc04e6 Move compiler scripting tests to scripting plugin, remove unused funs
also remove some tests that are covered in the scripting-compiler
tests now.
Part of the cleanup to rewrite scripting to the new infrastructure.
2020-04-13 13:49:34 +02:00
Ilya Chernikov cf387ffad1 Remove obsolete source-sections plugin 2020-04-13 13:49:33 +02:00
Ilya Chernikov f84fd810f0 Simplify and fix classloaders handling on script evaluation
#KT-37558 fixed
2020-04-13 13:49:33 +02:00
Ilya Chernikov 138efda19f Refactor scripting - get rid of unused type parameter in CompiledScript 2020-04-13 13:49:33 +02:00
Ilya Chernikov c64ba50655 Abstract script compiled module implementation used in saving/caching
removes classloading problem when main-kts is loaded from a CL
without scripting compiler.
Also relax dependencies collection on saving to a jar and hide redundant
logging.
Running main.kts script via a run configuration works now.
#KT-37765 fixed
2020-04-13 13:49:32 +02:00
Ilya Chernikov 278f77713d Fix default base classloader initialization for scripting hosts
also refactor runner functions
#KT-37823 fixed
2020-04-13 13:49:32 +02:00
Ilya Chernikov 15d76ae887 [minor] fix findCompiler logic in runner for debuggung 2020-04-13 13:49:32 +02:00
Ilya Chernikov 6a24268db1 Fix scripting discovery file recognition for directory dependencies 2020-04-13 13:49:32 +02:00
Georgy Bronnikov 9ccda31189 IR: deal with conflicting variances in computeSubstitutedSyntheticAccessor 2020-04-13 14:34:57 +03:00
Georgy Bronnikov 5700da2bae IR: type parameter context for return values in InsertImplicitCasts 2020-04-13 14:34:57 +03:00
Georgy Bronnikov 166b506f63 IR: only require all type parameter references to be local with new inference 2020-04-13 14:34:57 +03:00
Abduqodiri Qurbonzoda 08ff52bee4 Introduce StringBuilder.appendLine in stdlib-common #KT-37839 2020-04-13 14:27:53 +03:00
Roman Golyshev d7667209b2 KT-37144 Respect quotes in package name during decompilation
- Odd package names (for example `try` in `arrow-core`) were pasted
as-is to the decompiled text
- Because of this, stub checks were failing, forcing completion to start
over and over again, as if something changed in the files
- See EA-5572315 for the error
- ^KT-37144 Fixed
2020-04-13 07:34:28 +00:00
Ilya Gorbunov ec9c7c98cd Use stubs in reduced js-ir runtime instead of new throwable extensions
To avoid bringing a lot of API required for their full implementation
to reduced runtime.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 38b1e6beab Make Throwable.printStackTrace() common
#KT-38044
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 408b441a71 Rename extension toStringWithTrace to stackTraceToString
#KT-37603
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 4cc9909a70 Support Firefox stack format
It doesn't include the exception type and message.
2020-04-13 09:32:42 +03:00
Ilya Gorbunov 641f1a55cb Omit common stack frames in JS full stack trace
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 5fe8071d71 Prevent infinite recursion in case of circular suppressed chains
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 552bcdb31b Introduce Throwable.toStringWithTrace
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov 7b7263c5bf Implement common Throwable.addSuppressed/suppressed extensions
Instead of `suppressed` Array we provide `suppressedExceptions` List

#KT-23737
2020-04-13 09:32:41 +03:00
Andrey Uskov e8a54d6c75 Fix import of MPP projects in IDEA 2020.1 2020-04-13 09:19:56 +03:00
Ilya Kirillov 22a6cdcc16 Wizard: fix tests 2020-04-11 13:22:49 +03:00
Ilya Kirillov 679ad4ca67 Wizard: fix small ui problems 2020-04-11 13:22:48 +03:00