Commit Graph

64666 Commits

Author SHA1 Message Date
Mikhail Glukhikh 10cda4b54f [FIR] Minor: regenerate diagnostic tests 2020-04-27 19:42:47 +03:00
Yuku Kotani de28a41caa KT-32163: Open Quick Documentation when cursor inside function / constructor brackets (#2502)
* Show function docs when cursor is in args of the function call

* Show constructor docs when cursor is in args of the constructor call

* Show function docs when cursor is in args of the kt function call

* Add some tests

* Use JavaDocumentationProvider to fetch java method document

* Support caret in params

#KT-32163 fixed
2020-04-27 18:15:24 +03:00
Ilya Goncharov 6b5b23f37b [Gradle, JS] Remove propagation moduleName from legacy to ir target
#KT-38614 fixed
2020-04-27 18:01:29 +03:00
Natalia Selezneva 8e93ac0df7 Merge pull request #3331 from gharrma/fix-script-change-listener
Move vFile.isValid() check inside read action
2020-04-27 17:59:13 +03:00
Anton Bannykh 442331acc9 IR JS: support findAssociatedObject feature (KT-37418 fixed) 2020-04-27 17:23:19 +03:00
Vladimir Dolzhenko f4b6e1bff6 Reworked deprecated fileTypeFactory EP usage
Relates to #KT-38571
2020-04-27 14:08:17 +00:00
Vladimir Dolzhenko 639cc69920 Reworked deprecated defaultLiveTemplatesProvider EP usage
Relates to #KT-38571
2020-04-27 14:08:16 +00:00
Konstantin Tskhovrebov 6d7e428d89 Get first platform from platformCompilations instead host platform.
Fixed #KMM-234
2020-04-27 16:54:29 +03:00
Mikhail Glukhikh 90fd2c6c4c FirCallResolver: perform int literal approximation also for var access
Partial fix of KT-38473
2020-04-27 16:04:05 +03:00
Mikhail Glukhikh 5446795d12 FirCallResolver: reuse collectCandidates for variable access 2020-04-27 16:04:04 +03:00
Nikolay Krasko 4230a17427 Revert "Force bootstrap stdlib in modules that used in composite build"
This reverts commit ad76562c
2020-04-27 15:58:38 +03:00
Nikolay Krasko ad76562cbc Force bootstrap stdlib in modules that used in composite build 2020-04-27 15:36:49 +03:00
rapturemain 49593d308c [FIR] Add EXPOSED_SUPER_(CLASS/INTERFACE) checker 2020-04-27 13:00:49 +03:00
Jinseong Jeon ef09850df8 FIR2IR: set superQualifierSymbol for super call 2020-04-27 11:50:26 +03:00
Jinseong Jeon 57fe01c375 FIR2IR: populate overriddenSymbols for overriding functions
#KT-38416 Fixed
2020-04-27 11:50:24 +03:00
Andrey Uskov b51649dcc6 Fix tests compilation in 201 2020-04-27 10:00:32 +03:00
Mikhail Zarechenskiy 11390d9de3 Add test for obsolete issue
#KT-38420 Obsolete
2020-04-27 01:55:39 +03:00
Andrey Uskov 27384d29d4 Move inspection checks in EDT thread 2020-04-27 00:21:17 +03:00
Andrey Uskov d2a10cbb2d Merge changes in ExternalSystemTestCase into KotlinGradleTests 2020-04-27 00:21:12 +03:00
Denis Zharkov 45481b214a Use kotlin.Throws in NativeThrowsChecker
KT-35468
2020-04-26 23:08:45 +03:00
Denis Zharkov d0f4631192 Resolve ambiguity between kotlin.Throws and kotlin.native.Throws
KT-35468
2020-04-26 23:08:40 +03:00
Denis Zharkov d3f541a715 Overcome ambiguity between kotlin.Throws and kotlin.jvm.Throws
^KT-35468 In Progress
2020-04-26 23:08:22 +03:00
Denis Zharkov 534ff58d9c Minor. Introduce constant JVM_THROWS_ANNOTATION_FQ_NAME
KT-35468
2020-04-26 23:08:18 +03:00
Vladimir Dolzhenko 1565fc0211 Call expression changes in property initializer are OCB
#KT-38443 Fixed
2020-04-25 20:57:14 +00:00
Vladimir Dolzhenko 1cc58518c0 Compatify KotlinCodeBlockModificationListener p.2
Relates to #KT-38443
2020-04-25 20:57:14 +00:00
Vladimir Dolzhenko 5a36da90b6 Compatify KotlinCodeBlockModificationListener p.1
Relates to #KT-38443
2020-04-25 20:57:13 +00:00
Vladimir Ilmov 38622d8d92 (CoroutineDebugger) SkipCoroutineStackFrameProxy logic added 2020-04-24 21:02:18 +02:00
pyos 887165a23b JVM_IR: avoid copying when optimizing ?:/?. 2020-04-24 21:00:07 +03:00
Abduqodiri Qurbonzoda 2307692064 Remove String.format with non-null locale
Introducing new overloads with @SinceKotlin(1.4) annotation
and marking the old ones @LowPriorityInOverloadResolution breaks
all code that uses the format(locale, args) overload with
-api-version 1.3. Because the low priority of the non-1.4 version makes
format(args) preferable in all cases.
For example, "%02X".format(Locale.ROOT, 1) throws
IllegalFormatConversionException: x != java.util.Locale.
2020-04-24 18:00:37 +03:00
Anton Yalyshev f356ff36b4 Update group id for refactoring fus collector in 201 bunch 2020-04-24 17:38:27 +03:00
Dmitry Gridin 1e69e89f41 update misc.xml 2020-04-24 21:12:14 +07:00
Nick 96238cbe1f [FIR] Support diagnostic QUALIFIED_SUPERTYPE_EXTENDED_BY_OTHER_SUPERTYPE 2020-04-24 16:48:28 +03:00
Ilya Goncharov 7a928dfed2 [Gradle, JS] Build gradle node module with only package.json content 2020-04-24 16:32:54 +03:00
Ilya Goncharov c64a80d132 [Gradle, JS] Move suppress gson null issue for particular fields
[Gradle, JS] Fix package json creation from existed package json w/o version

[Gradle, JS] Add task for publishing package json

[Gradle, JS] Add skip on empty npm dependencies

[Gradle, JS] Publishing package json with installed modules

[Gradle, JS] Add publishingPackageJson for compilation npm resolution

[Gradle, JS] Add publishingPackageJson to jar task

[Gradle, JS] PublishingPackageJsonTask now in jar

[Gradle, JS] Actual skipping of package json creation

[Gradle, JS] jar task depends only on main publishing package json

[Gradle, JS] Move calculation of packageJson

[Gradle, JS] Filter file dependencies
2020-04-24 16:32:54 +03:00
Dmitry Gridin c91089be59 AddJvmNameAnnotationFix: fix case with top-level functions
#KT-17209 Fixed
2020-04-24 18:53:11 +07:00
Toshiaki Kameyama f494b4ce11 Add 'Add JvmName annotation' quick fix for CONFLICTING_JVM_DECLARATIONS
#KT-17209
2020-04-24 18:53:10 +07:00
Dmitry Gridin 9bc51be287 i18n, MoveKotlinTopLevelDeclarationsDialog: replace RefactoringBundle with KotlinBundle 2020-04-24 17:10:22 +07:00
Dmitry Savvinov b07f89864e Allow dependencies to see internals from main module as well
^KT-38338 Fixed
2020-04-24 12:54:39 +03:00
Sergey Igushkin af09cb0e57 fix testLanguageSettingsApplied 2020-04-24 12:54:39 +03:00
Sergey Igushkin 60c49d26e3 Add Gradle integration tests running the IDE HMPP highlighting tests 2020-04-24 12:54:38 +03:00
Sergey Igushkin 4b0da0688a Fix expect discrimination with actual typealias in deserialization
* For types encountered during deserialization, search for a classifier,
  not necessarily a class, across module dependencies (i.e. accept type
  aliases, returned when actual type alias discriminates an expect
  class).

* When the referenced type is a type alias, expand it, so that when
  the descriptor is compared to the expansion in other places,
  they match.

* Also, when resolving an abbreviation, don't expand the type aliases,
  as there are assumptions in the code base that an abbreviation is a
  type alias.
2020-04-24 12:54:38 +03:00
Sergey Igushkin d4a0844a77 Support additional module descriptor dependencies in klib descriptors 2020-04-24 12:54:37 +03:00
Sergey Igushkin a9dd194383 Fix wrong assumption in getHostSpecificSourceSets (KMM-225)
The assumption that each source set is already registered in at least
one compilation would break Android targets which are configured later
on the execution path, and also fail when there are unused source sets.

Issue #KMM-225 Fixed
2020-04-24 12:54:37 +03:00
Sergey Igushkin 67f4b7e2b0 Add a dependency from all klib-originated modules to the main module
This is required, for instance, to properly resolve supertypes across
the modules.

Issue #KT-37832 Fixed
2020-04-24 12:54:36 +03:00
Vladimir Dolzhenko 8979b98fc0 Dropping components cleanup
#KT-38407 Fixed
2020-04-24 09:39:49 +00:00
Vladimir Dolzhenko d2a26e9049 Fix memory leakage via Library in KotlinMavenImporter
Relates to #KT-38407
2020-04-24 09:39:48 +00:00
Vladimir Dolzhenko 4908d7a78c Convert KotlinImporterComponent into a module service
Relates to #KT-38407
2020-04-24 09:39:47 +00:00
Vladimir Dolzhenko c2c8d81b49 Convert MavenImportListener into an application service
Relates to #KT-38407
2020-04-24 09:39:47 +00:00
Vladimir Dolzhenko 6e5b288500 Compatify maven.xml p.1
Relates to #KT-38407
2020-04-24 09:39:46 +00:00
Vladimir Dolzhenko 951215e606 Convert ScratchFileModuleInfoProvider into a startup activity
Relates to #KT-38407
2020-04-24 09:39:45 +00:00